Skip to content

Commit d439e8f

Browse files
committed
Allow to use a name different from tailcutXY as dl1_prod_id
1 parent 8811cdf commit d439e8f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/osa/configs/sequencer.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ PROD_ID: v0.1.0
4444
# Change this to produce a different DL1b or DL2 sub-productions.
4545
# Otherwise, keep it empty to use the common PROD-ID
4646
DL1_PROD_ID: tailcut84
47+
DL1_PROD_ID_PREFIX: tailcut
4748
DL2_PROD_ID: model2
4849

4950
[lstchain]

src/osa/paths.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,12 @@ def get_dl1_prod_id(config_filename):
433433

434434
picture_thresh = data["tailcuts_clean_with_pedestal_threshold"]["picture_thresh"]
435435
boundary_thresh = data["tailcuts_clean_with_pedestal_threshold"]["boundary_thresh"]
436+
dl1_prod_id_prefix = cfg.get("LST1", "DL1_PROD_ID_PREFIX")
436437

437438
if boundary_thresh == 4:
438-
return f"tailcut{picture_thresh}{boundary_thresh}"
439+
return f"{dl1_prod_id_prefix}{picture_thresh}{boundary_thresh}"
439440
else:
440-
return f"tailcut{picture_thresh}{boundary_thresh:02d}"
441+
return f"{dl1_prod_id_prefix}{picture_thresh}{boundary_thresh:02d}"
441442

442443

443444
def get_dl2_nsb_prod_id(rf_model: Path) -> str:

0 commit comments

Comments
 (0)