From 7f39db9c8e9c4fda1263842d06c628e5609fa1cb Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 25 May 2016 18:55:39 +0200 Subject: [PATCH] browser: file/class info in tooltip --- artiq/browser/files.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/artiq/browser/files.py b/artiq/browser/files.py index 66c032215..c56a9a259 100644 --- a/artiq/browser/files.py +++ b/artiq/browser/files.py @@ -99,11 +99,12 @@ class Hdf5FileSystemModel(QtWidgets.QFileSystemModel): 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",