fiaisis / run-detection

The way we detect when our system for reduction should automatically perform a reduction and with what arguments we should do that.
GNU General Public License v3.0
1 stars 1 forks source link

Automate finding vanadium for MARI #321

Open Pasarus opened 1 month ago

Pasarus commented 1 month ago

Having had a discussion with our contact on MARI, we came to the conclusion that it may be possible to go find the latest vanadium run, by checking the title for "van", "30mev", and "50hz". The latest run with those in the title should be our vanadium run to use for processing data. Maintain a default using the current value that is set manually. This would have worked for the following:

cycle_24_1: 29526 cycle_24_2: 29680 cycle_24_3: 29895

Example psuedo/python code:

if "van" in title.lower() and "30mev" in title.lower() and "50hz" in title.lower() and experiment_number is None:
    # Is latest vanadium run