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
GEMApplication
specifying whether the run number is locally/globally assigned - Forward this information from the
GEMSupervisor
to the managed applications - Build a run name with the above information, e.g.
G000123456
orL4212258945
. 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
YYYYMMDDMMSSXX
if that would work with the TCDS application. Edit: a run number of0
can be sent to the TCDS. The return of thestd::filesystem::create_directories
function 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
GEMSupervisor
and theCalibration
applications. - Present the current run number to the user (in the
GEMSupervisor
web application?)
Edited by Laurent Petre