Skip to content

Commit 7a43d29

Browse files
committed
proc file key fixes
1 parent 85667bc commit 7a43d29

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

workflow/rules/dsp.smk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ from legenddataflow.methods import ParsKeyResolve, ParsCatalog
88
from pathlib import Path
99
from legenddataflow.methods import patterns as patt
1010
from legenddataflowscripts.workflow import execenv_pyexe
11+
from legenddataflow.methods.paths import config_path
12+
1113

1214
build_merge_rules("dsp", lh5_merge=True)
1315

workflow/rules/dsp_pars_geds.smk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ rule build_pars_dsp_svm_geds:
417417
runtime=300,
418418
shell:
419419
execenv_pyexe(config, "par-geds-dsp-svm") + "--log {log} "
420-
# "--input-file {input.dsp_pars} "
420+
#"--input-file {input.svm} "
421421
"--output-file {output.dsp_pars} "
422422
"--svm-file {input.svm_file}"
423423

workflow/src/legenddataflow/methods/FileKey.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ def get_path_from_filekey(self, pattern, **kwargs):
222222
return self.expand(pattern, **kwargs)
223223

224224

225-
class ChannelProcKey(FileKey):
225+
class ChannelProcKey(ProcessingFileKey):
226226
re_pattern = "all(-(?P<experiment>[^-]+)(\\-(?P<period>[^-]+)(\\-(?P<run>[^-]+)(\\-(?P<datatype>[^-]+)(\\-(?P<timestamp>[^-]+)(\\-(?P<channel>[^-]+))?)?)?)?)?)?$"
227227
key_pattern = full_channel_pattern_with_extension()
228-
_fields = (*FileKey._fields, "channel")
228+
_fields = (*ProcessingFileKey._fields, "channel")
229229

230-
def __new__(cls, experiment, period, run, datatype, timestamp, channel):
231-
self = super().__new__(cls, experiment, period, run, datatype, timestamp)
230+
def __new__(cls, experiment, period, run, datatype, timestamp, channel, processing_step):
231+
self = super().__new__(cls, experiment, period, run, datatype, timestamp, processing_step)
232232
self.channel = channel
233233
return self
234234

@@ -239,6 +239,7 @@ def name(self):
239239
def _asdict(self):
240240
dic = super()._asdict()
241241
dic["channel"] = self.channel
242+
dic["processing_step"] = self.processing_step
242243
return dic
243244

244245
@staticmethod

0 commit comments

Comments
 (0)