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):