@@ -21,6 +21,7 @@ import logging
21
21
from dbetto import AttrsDict
22
22
from legendmeta import LegendMetadata
23
23
from legenddataflow import CalGrouping , execenv , utils
24
+ from legenddataflow .patterns import get_pattern_tier
24
25
25
26
utils .subst_vars_in_snakemake_config (workflow , config )
26
27
config = AttrsDict (config )
@@ -89,7 +90,7 @@ onstart:
89
90
hit_par_cat_file .unlink ()
90
91
try :
91
92
Path (hit_par_cat_file ).parent .mkdir (parents = True , exist_ok = True )
92
- ParsKeyResolve . write_to_yaml ( hit_par_catalog , hit_par_cat_file )
93
+ hit_par_catalog . write_to ( hit_par_cat_file )
93
94
except NameError :
94
95
print ("No hit parameter catalog found" )
95
96
@@ -98,7 +99,7 @@ onstart:
98
99
pht_par_cat_file .unlink ()
99
100
try :
100
101
Path (pht_par_cat_file ).parent .mkdir (parents = True , exist_ok = True )
101
- ParsKeyResolve . write_to_yaml ( pht_par_catalog , pht_par_cat_file )
102
+ pht_par_catalog . write_to ( pht_par_cat_file )
102
103
except NameError :
103
104
print ("No pht parameter catalog found" )
104
105
@@ -107,7 +108,7 @@ onstart:
107
108
dsp_par_cat_file .unlink ()
108
109
try :
109
110
Path (dsp_par_cat_file ).parent .mkdir (parents = True , exist_ok = True )
110
- ParsKeyResolve . write_to_yaml ( dsp_par_catalog , dsp_par_cat_file )
111
+ dsp_par_catalog . write_to ( dsp_par_cat_file )
111
112
except NameError :
112
113
print ("No dsp parameter catalog found" )
113
114
@@ -116,7 +117,7 @@ onstart:
116
117
psp_par_cat_file .unlink ()
117
118
try :
118
119
Path (psp_par_cat_file ).parent .mkdir (parents = True , exist_ok = True )
119
- ParsKeyResolve . write_to_yaml ( psp_par_catalog , psp_par_cat_file )
120
+ psp_par_catalog . write_to ( psp_par_cat_file )
120
121
except NameError :
121
122
print ("No psp parameter catalog found" )
122
123
@@ -165,7 +166,7 @@ rule gen_filelist:
165
166
lambda wildcards : get_filelist (
166
167
wildcards ,
167
168
config ,
168
- get_search_pattern ( wildcards . tier ),
169
+ get_pattern_tier ( config , "raw" , check_in_cycle = False ),
169
170
ignore_keys_file = Path (det_status ) / "ignored_daq_cycles.yaml" ,
170
171
analysis_runs_file = Path (det_status ) / "runlists.yaml" ,
171
172
),
0 commit comments