Run numbers for local runs
Description
Keeping track of local runs is tricky at the moment. No run number is assigned (i.e. run 0) which leads to files being overwritten. Additionally, the scans that do not require a run are not even using the run folder.
Implementing a robust run numbering scheme would significantly help operations.
Possible fixes
- Add a configuration option to the
GEMApplicationspecifying whether the run number is locally/globally assigned - Forward this information from the
GEMSupervisorto the managed applications - Build a run name with the above information, e.g.
G000123456orL4212258945. It may also contain the run type. - Create a local run number if the run number is to be locally assigned. A typical numbering can be
YYYYMMDDMMSSXXif that would work with the TCDS application. Edit: a run number of0can be sent to the TCDS. The return of thestd::filesystem::create_directoriesfunction can be used to check for uniqueness. - Ensure the whole code uses the functions developed above. The treatment of the non-calibration scans is not obvious at the moment due to the separation between the
GEMSupervisorand theCalibrationapplications. - Present the current run number to the user (in the
GEMSupervisorweb application?)
Edited by Laurent Petre