Skip to content

Commit bbfba3a

Browse files
gipertclaude
andcommitted
fix: route build_per_energy_calibration CTC dict via pht_intier
The rule was passing dsp_par_catalog with tier=intier to ParsCatalog.get_par_file, producing inconsistent paths like par/psp/.../par_dsp.yaml (catalog filenames from dsp, directory from psp) that no rule produces. Select the catalog matching intier so partition mode reads CTC from par_psp and single-run mode reads from par_dsp. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent a500fae commit bbfba3a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

workflow/rules/pht_pars_geds.smk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ from legenddataflow.methods.patterns import (
2222
from legenddataflowscripts.workflow import execenv_pyexe, set_last_rule_name
2323

2424
intier = config.get("pht_intier", "psp")
25+
intier_par_catalog = psp_par_catalog if intier == "psp" else dsp_par_catalog
2526

2627
qc_pht_rules = {}
2728
partcal_pht_rules = {}
@@ -512,7 +513,7 @@ rule build_per_energy_calibration:
512513
inplots=rules.build_pht_qc.output.plot_file,
513514
ctc_dict=ancient(
514515
lambda wildcards: ParsCatalog.get_par_file(
515-
dsp_par_catalog,
516+
intier_par_catalog,
516517
config,
517518
wildcards.timestamp,
518519
intier,

0 commit comments

Comments
 (0)