From 1ff55efc26533d4ebe21fc714e186185b246f939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rist=C3=A8?= Date: Wed, 2 Oct 2019 11:37:15 -0400 Subject: [PATCH] Print all digits --- QGL/ChannelLibraries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QGL/ChannelLibraries.py b/QGL/ChannelLibraries.py index 6be29006..032bd748 100644 --- a/QGL/ChannelLibraries.py +++ b/QGL/ChannelLibraries.py @@ -150,12 +150,12 @@ 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).all() + c = self.session.query(caldb.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() sample = self.session.query(bbndb.calibration.Sample).filter_by(id=sample_id).first() - table_code += f"{id}{d}{t.split('.')[0]}{sample.name}{name}{round(value,5)}" + table_code += f"{id}{d}{t.split('.')[0]}{sample.name}{name}{round(value,9)}" display(HTML(f"{table_code}
idDateTimeSampleNameValue
")) def ent_by_type(self, obj_type, show=False):