McDermott-Group / servers

Public repo that stores LabRAD servers and other non-measurement related code
0 stars 2 forks source link

[ADR Controller] Backfill available data when opening #104

Open iamed18 opened 7 years ago

iamed18 commented 7 years ago

In both the Python desktop application and the web browser version of the ADR controller, closing and re-opening the application/webpage will result in the T vs. t plot completely renewing. It would be useful in many instances for the backfilled data to survive a refresh/restart event on the displayed plot.

roboguy222 commented 7 years ago

One idea being floated right now is that we have a "Start Cooldown" and "Stop Cooldown" button to create a new log file. I am worried that most people, when they are finally done with their measurement, will press stop compressor, and forget about the fridge. It is often the next person using the fridge who even takes their sample out. This leads me to think maybe we should just have a "Start New Cooldown" button that we can press to create a new file, but that leads to files with a chunk of data, several days of missing time where the ADR is warm, and then just a few points at the end before the user presses Start New Cooldown. This doesn't seem great either. We could link the file with the start and stop of the compressor, but then we don't get the warm up data, and everything goes nuts when someone wants to briefly stop the compressor to warm the fridge a few Kelvin, as Joey occasionally does. Any ideas, @iamed18 @amopremcak @patzinak ?

iamed18 commented 7 years ago

Perhaps a better way to do the cooldown linking would be to have a generated cooldown ID vis a vis what @amopremcak has in mind for doing hashed IDs for the database that we'll some day work on. When you open up the ADR monitor program, it will ask if you want to use an old ID or generate a new one. If you click "old," it will look through the most recent IDs and let you pick the correct one. If you click "generate" it will create a new ID for use and associate the logfile with it.

This doesn't seem that sleek, but I think it would take care of most of the issues you mentioned in your comment, @roboguy222