From 192a7fd2ee394fad843f84e44fbd4e14d119cb81 Mon Sep 17 00:00:00 2001 From: Hsin-Fang Chiang Date: Fri, 21 Jun 2024 09:57:36 -0700 Subject: [PATCH] Ignore salIndex=3 events that's not LSSTComCamSim For OR4 AOS blocks, the camera has no way to know if it's in the simulation mode, so it sets the instrument field to LSSTComCam despite that it has salIndex=3 and has LSSTComCamSim in its raw file headers. Before DM-44717, we simply ignore them to reduce noise for OR4. --- src/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.py b/src/main.py index bd30b71..2722eb8 100644 --- a/src/main.py +++ b/src/main.py @@ -336,6 +336,12 @@ async def main() -> None: knative_serving_url = latiss_knative_serving_url in_process_requests_gauge = latiss_in_process_requests_gauge case 3: # LSSTComCamSim + if next_visit_message_updated.instrument != "LSSTComCamSim": + logging.warning( + "Expect LSSTComCamSim for salIndex 3 but got %s. Ignore", + next_visit_message_updated.instrument, + ) + continue lsstcomcamsim_gauge.inc() fan_out_message_list = ( next_visit_message_updated.add_detectors(