achuang2718 / enrico

the Fermi1 lab assistant
0 stars 3 forks source link

Alter vacuum_sentinel logging to handle changing instruments #129

Closed ewolf20 closed 3 years ago

ewolf20 commented 3 years ago

Presently the logging of vacuum_monitor is set up to not reload the .csv for each log event. This is normally optimal for speed, but it leads to the log becoming disrupted when new dictionaries with different instruments are appended to an old log. Should add logic which auto-detects if instruments have changed and reloads.

ewolf20 commented 3 years ago

Temporarily fixed problem by adding a flag in vacuum_sentinel to reload dataframes during testing periods. Checked that this does not give a perceptible speed hit, even with months worth of data.