forked from M-Labs/artiq
browser: file/class info in tooltip
This commit is contained in:
parent
f9ab3eeb36
commit
7f39db9c8e
|
@ -99,11 +99,12 @@ class Hdf5FileSystemModel(QtWidgets.QFileSystemModel):
|
||||||
if h5 is not None:
|
if h5 is not None:
|
||||||
try:
|
try:
|
||||||
expid = pyon.decode(h5["expid"].value)
|
expid = pyon.decode(h5["expid"].value)
|
||||||
rid = h5["rid"].value
|
|
||||||
start_time = datetime.fromtimestamp(h5["start_time"].value)
|
start_time = datetime.fromtimestamp(h5["start_time"].value)
|
||||||
artiq_version = h5["artiq_version"].value
|
v = ("artiq: {}\nrepo: {}\nfile: {}\nclass_name: {}\n"
|
||||||
v = "artiq: {}\nrepo: {}\nrid: {}\nstart: {}".format(
|
"rid: {}\nstart: {}").format(
|
||||||
artiq_version, expid["repo_rev"], rid, start_time)
|
h5["artiq_version"].value, expid["repo_rev"],
|
||||||
|
expid["file"], expid["class_name"],
|
||||||
|
h5["rid"].value, start_time)
|
||||||
return v
|
return v
|
||||||
except:
|
except:
|
||||||
logger.warning("unable to read metadata from %s",
|
logger.warning("unable to read metadata from %s",
|
||||||
|
|
Loading…
Reference in New Issue