Skip to content

Commit

Permalink
transform run numbers to string in cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
marialainez committed Nov 26, 2024
1 parent 4c81add commit f865da4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/osa/scripts/calibration_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f865da4

Please sign in to comment.