Skip to content

Commit

Permalink
browser: file/class info in tooltip
Browse files Browse the repository at this point in the history
jordens committed May 25, 2016
1 parent f9ab3ee commit 7f39db9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions artiq/browser/files.py
Original file line number Diff line number Diff line change
@@ -99,11 +99,12 @@ def data(self, idx, role):
if h5 is not None:
try:
expid = pyon.decode(h5["expid"].value)
rid = h5["rid"].value
start_time = datetime.fromtimestamp(h5["start_time"].value)
artiq_version = h5["artiq_version"].value
v = "artiq: {}\nrepo: {}\nrid: {}\nstart: {}".format(
artiq_version, expid["repo_rev"], rid, start_time)
v = ("artiq: {}\nrepo: {}\nfile: {}\nclass_name: {}\n"
"rid: {}\nstart: {}").format(
h5["artiq_version"].value, expid["repo_rev"],
expid["file"], expid["class_name"],
h5["rid"].value, start_time)
return v
except:
logger.warning("unable to read metadata from %s",

0 comments on commit 7f39db9

Please sign in to comment.