labscript-suite-temp-2 / lyse

lyse is an analysis framework. It coordinates the running of python analysis scripts on experiment data as it becomes availiable, updating plots in real time.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Specify formatting/existence of print statement in save_results #37

Open philipstarkey opened 6 years ago

philipstarkey commented 6 years ago

Original report (archived issue) by Russell Anderson (Bitbucket: rpanderson, GitHub: rpanderson).


When saving analysis results to the shot file, save_results prints the name and value without formatting, e.g.

saving MOT_load_rate = 509343215.257
saving MOT_number = 2574843222.31
saving MOT_beam_power = 118.185460376
saving u_MOT_beam_power = 0.799789946506

This enhancement would permit the value to be formatted using a format-string (perhaps honouring uncertainties), or permit the print statement to be omitted altogether. For example:

saving MOT_load_rate = 5.09e8
saving MOT_number = 2.575e9
saving MOT_beam_power = 118.2(8)