File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ DL2_PROD_ID: model2
4444# Calibration steps in calibration pipeline script
4545drs4_baseline: onsite_create_drs4_pedestal_file
4646charge_calibration: onsite_create_calibration_file
47+ catB_calibration: onsite_create_cat_B_calibration_file
4748use_ff_heuristic_id: False
4849
4950# Data processing steps in datasequence script
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ def historylevel(history_file: Path, data_type: str):
188188 # into account not only the last history line but also the others.
189189
190190 if data_type == "DATA" :
191- level = 4
191+ level = 5
192192 elif data_type == "PEDCALIB" :
193193 level = 2
194194 else :
@@ -214,6 +214,8 @@ def historylevel(history_file: Path, data_type: str):
214214 level = 0 if exit_status == 0 else 1
215215 # Data sequence
216216 elif program == cfg .get ("lstchain" , "r0_to_dl1" ):
217+ level = 4 if exit_status == 0 else 5
218+ elif program == cfg .get ("lstchain" , "catB_calibration" ):
217219 level = 3 if exit_status == 0 else 4
218220 elif program == cfg .get ("lstchain" , "dl1ab" ):
219221 if (exit_status == 0 ) and (prod_id == options .dl1_prod_id ):
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def get_catB_calibration_filename(run_id: int) -> Path:
148148 """Return the Category-B calibration filename of a given run."""
149149 date = utils .date_to_dir (options .date )
150150 calib_prod_id = utils .get_lstchain_version ()
151- catB_calib_dir = Path (cfg .get ("LST1" , "CAT_B_CALIB_BASE" )) / date / calib_prod_id
151+ catB_calib_dir = Path (cfg .get ("LST1" , "CAT_B_CALIB_BASE" )) / "calibration" / date / calib_prod_id
152152 filters = utils .get_calib_filters (run_id )
153153 return catB_calib_dir / f"cat_B_calibration_filters_{ filters } .Run{ run_id :05d} .h5"
154154
Original file line number Diff line number Diff line change @@ -202,12 +202,13 @@ def catB_calibration(run_str: str) -> int:
202202 n += 1
203203 return 0
204204
205+ command = cfg .get ("lstchain" , "catB_calibration" )
205206 options .filters = get_calib_filters (int (run_str [:5 ]))
206207 base_dir = Path (cfg .get ("LST1" , "BASE" )).resolve ()
207208 r0_dir = Path (cfg .get ("LST1" , "R0_DIR" )).resolve ()
208209 catA_calib_run = get_last_pedcalib (options .date )
209210 cmd = [
210- "onsite_create_cat_B_calibration_file" ,
211+ command ,
211212 f"--run_number={ run_str [:5 ]} " ,
212213 f"--catA_calibration_run={ catA_calib_run } " ,
213214 f"--base_dir={ base_dir } " ,
You can’t perform that action at this time.
0 commit comments