From f865da4776650d8c9486263405a701d8446f371e Mon Sep 17 00:00:00 2001 From: Maria Lainez <98marialainez@gmail.com> Date: Tue, 26 Nov 2024 20:07:55 +0100 Subject: [PATCH] transform run numbers to string in cmd --- src/osa/scripts/calibration_pipeline.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/osa/scripts/calibration_pipeline.py b/src/osa/scripts/calibration_pipeline.py index c18508a0..893f7eab 100644 --- a/src/osa/scripts/calibration_pipeline.py +++ b/src/osa/scripts/calibration_pipeline.py @@ -47,20 +47,19 @@ def drs4_pedestal_command(drs4_pedestal_run_id: int) -> list: command = cfg.get("lstchain", "drs4_baseline") return [ command, - "-r", drs4_pedestal_run_id, + "-r", str(drs4_pedestal_run_id), "-b", base_dir, "--no-progress", ] - def calibration_file_command(drs4_pedestal_run_id: int, pedcal_run_id: int) -> list: """Build the create_calibration_file command.""" base_dir = Path(cfg.get("LST1", "BASE")).resolve() command = cfg.get("lstchain", "charge_calibration") cmd = [ command, - "-p", drs4_pedestal_run_id, - "-r", pedcal_run_id, + "-p", str(drs4_pedestal_run_id), + "-r", str(pedcal_run_id), "-b", base_dir, ] # In case of problems with trigger tagging: