diff --git a/artiq/browser/files.py b/artiq/browser/files.py index 4e3dd581a..a714cb696 100644 --- a/artiq/browser/files.py +++ b/artiq/browser/files.py @@ -106,7 +106,7 @@ class Hdf5FileSystemModel(QtWidgets.QFileSystemModel): start_time = datetime.fromtimestamp(h5["start_time"][()]) if "start_time" in h5 else "" v = ("artiq_version: {}\nrepo_rev: {}\nfile: {}\n" "class_name: {}\nrid: {}\nstart_time: {}").format( - h5["artiq_version"][()] if "artiq_version" in h5 else "", + h5["artiq_version"].asstr()[()] if "artiq_version" in h5 else "", expid.get("repo_rev", ""), expid.get("file", ""), expid.get("class_name", ""), h5["rid"][()] if "rid" in h5 else "", start_time) @@ -178,7 +178,7 @@ class FilesDock(QtWidgets.QDockWidget): expid = pyon.decode(f["expid"][()]) if "expid" in f else dict() start_time = datetime.fromtimestamp(f["start_time"][()]) if "start_time" in f else "" v = { - "artiq_version": f["artiq_version"][()] if "artiq_version" in f else "", + "artiq_version": f["artiq_version"].asstr()[()] if "artiq_version" in f else "", "repo_rev": expid.get("repo_rev", ""), "file": expid.get("file", ""), "class_name": expid.get("class_name", ""),