slaclab / pysmurf

Other
2 stars 9 forks source link

Adds data_path_id to the tune_dir #721

Closed jlashner closed 1 year ago

jlashner commented 2 years ago

Adds data_path_id to the tune_dir to make sure different slots have unique paths.

Description

We just noticed tune data from different slots are all being saved to the same directory. This can be problematic when operating multiple slots simultaneously, as it's possible that different slots have the same timestamp associated with the tune, in which case the tune-files will be overwritten. Additionally, attempting to pull the latest tune_file using S.load_tune() will pull the most recent one out of all slots.

We added data_path_id before to make sure output and plot directories don't conflict across slots, so it makes sense to extend this to the tune directory as well.

Tests done on this branch

None yet but it seems straight-forward

Function interfaces that changed

None