From a9ec6f5a75ba6aec00b2ebe440d34ebc2aeae278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rist=C3=A8?= Date: Thu, 3 Oct 2019 16:24:30 -0400 Subject: [PATCH] Query sample_id In my interpretation sample is the qubit/parameter name --- QGL/ChannelLibraries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QGL/ChannelLibraries.py b/QGL/ChannelLibraries.py index 032bd748..ddda81e3 100644 --- a/QGL/ChannelLibraries.py +++ b/QGL/ChannelLibraries.py @@ -150,7 +150,7 @@ def ls(self): def cal_ls(self): ''' List of auspex.pulse_calibration results ''' caldb = bbndb.calibration.Calibration - c = self.session.query(caldb.id, caldb.name, caldb.value, caldb.date).order_by(-Channels.ChannelDatabase.id).all() + c = self.session.query(caldb.sample_id, caldb.name, caldb.value, caldb.date).order_by(-Channels.ChannelDatabase.id).all() table_code = "" for i, (id, sample_id, name, value, time) in enumerate(c): d,t = str(time).split()