From 51f36f7e43a4364bbb0e6256c576a832cbf7781d Mon Sep 17 00:00:00 2001 From: dhavvval Date: Thu, 5 Mar 2026 13:21:03 -0600 Subject: [PATCH] Added new runtype IDs for beam and LED_lowThresh --- lib/helper_script.py | 3 ++- scripts/check_run_status.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/helper_script.py b/lib/helper_script.py index 22eba3d..b46e0c8 100644 --- a/lib/helper_script.py +++ b/lib/helper_script.py @@ -93,6 +93,7 @@ def read_SQL(SQL_file, runs): chicago_timezone = pytz.timezone('America/Chicago') # define daylight savings periods (THIS IS SO CONFUSING) + ### Note: We have to upddate the dst_periods manually each year based on the Day Light Saving Time as per the Chicago Time Zone. ###### dst_periods = { 2021: (datetime(2021, 3, 14, 2, 0, 0), datetime(2021, 11, 7, 1, 0, 0)), 2022: (datetime(2022, 3, 13, 2, 0, 0), datetime(2022, 11, 6, 1, 0, 0)), @@ -141,7 +142,7 @@ def read_SQL(SQL_file, runs): runconfigs = [data['runconfig'] for data in run_data.values() if data['runconfig'] is not None] unique_runconfigs = set(runconfigs) - beam_run_types = {39, 34, 3} + beam_run_types = {39, 34, 3, 45} # Check for consistent run configurations: we dont want to process beam runs with the same grid resources if len(unique_runconfigs) > 1: diff --git a/scripts/check_run_status.py b/scripts/check_run_status.py index 4e2b806..cdc88b3 100644 --- a/scripts/check_run_status.py +++ b/scripts/check_run_status.py @@ -53,11 +53,11 @@ # from run type name, get number def get_run_type(run_type): if run_type == 'beam': - return ['3', '34', '39'] + return ['3', '34', '39', '45'] elif run_type == 'cosmic': return ['7', '37'] elif run_type == 'LED': - return ['1', '35'] + return ['1', '35', '46'] elif run_type == 'AmBe': return ['4', '43', '42', '41', '36'] # TODO: check which ones are relevant elif run_type == 'laser':