2020from osa .utils .cliopts import calibration_pipeline_cliparsing
2121from osa .utils .logging import myLogger
2222from osa .workflow .stages import DRS4PedestalStage , ChargeCalibrationStage
23+ from osa .utils .utils import get_lstchain_version
2324
2425__all__ = [
2526 "calibration_sequence" ,
@@ -46,25 +47,30 @@ def drs4_pedestal_command(drs4_pedestal_run_id: int) -> list:
4647 base_dir = Path (cfg .get ("LST1" , "BASE" )).resolve ()
4748 r0_dir = Path (cfg .get ("LST1" , "R0_DIR" )).resolve ()
4849 command = cfg .get ("lstchain" , "drs4_baseline" )
50+ prod_id = get_lstchain_version ()
4951 return [
5052 command ,
5153 "-r" , str (drs4_pedestal_run_id ),
5254 "-b" , base_dir ,
5355 f"--r0-dir={ r0_dir } " ,
5456 "--no-progress" ,
57+ "-v" ,prod_id ,
5558 ]
5659
5760def calibration_file_command (drs4_pedestal_run_id : int , pedcal_run_id : int ) -> list :
5861 """Build the create_calibration_file command."""
5962 base_dir = Path (cfg .get ("LST1" , "BASE" )).resolve ()
6063 r0_dir = Path (cfg .get ("LST1" , "R0_DIR" )).resolve ()
6164 command = cfg .get ("lstchain" , "charge_calibration" )
65+ prod_id = get_lstchain_version ()
6266 cmd = [
6367 command ,
6468 "-p" , str (drs4_pedestal_run_id ),
6569 "-r" , str (pedcal_run_id ),
6670 "-b" , base_dir ,
6771 f"--r0-dir={ r0_dir } " ,
72+ "-v" ,prod_id ,
73+
6874 ]
6975 # In case of problems with trigger tagging:
7076 if cfg .getboolean ("lstchain" , "use_ff_heuristic_id" ):
0 commit comments