Skip to content

Commit e15d92d

Browse files
authored
Merge pull request #18 from schwarzmario/fixes
Fixes for making legend-dataflow work
2 parents b08e656 + 03c48dd commit e15d92d

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/legenddataflowscripts/par/geds/dsp/evtsel.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import argparse
44
import json
5+
import sys
56
import time
67
import warnings
78
from bisect import bisect_left
@@ -99,6 +100,12 @@ def par_geds_dsp_evtsel() -> None:
99100
required=False,
100101
)
101102

103+
argparser.add_argument(
104+
"--channel",
105+
type=str,
106+
help="Channel to process; required if --raw-cal-curve is set",
107+
required="--raw-cal-curve" in sys.argv,
108+
)
102109
argparser.add_argument("--log", help="log_file", type=str)
103110

104111
argparser.add_argument(

src/legenddataflowscripts/tier/dsp.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def build_tier_dsp() -> None:
9595
# check if the raw tables are all existing
9696
if len(lh5.ls(args.input, input_tbl_name)) > 0:
9797
dsp_cfg_tbl_dict[input_tbl_name] = Props.read_from(file)
98+
msg = f"found table {input_tbl_name} in {args.input}"
99+
log.debug(msg)
98100
else:
99101
msg = f"table {input_tbl_name} not found in {args.input} skipping"
100102
log.info(msg)
@@ -147,6 +149,8 @@ def build_tier_dsp() -> None:
147149
kwargs = {
148150
"raw_in": args.input,
149151
"dsp_out": dsp_files[i],
152+
"lh5_tables": list(config.keys()),
153+
"base_group": "",
150154
"chan_config": config,
151155
"database": database_dict,
152156
"write_mode": "r",
@@ -173,6 +177,8 @@ def build_tier_dsp() -> None:
173177
build_dsp(
174178
raw_in=args.input,
175179
dsp_out=args.output,
180+
lh5_tables=list(dsp_cfg_tbl_dict.keys()),
181+
base_group="",
176182
database=database_dict,
177183
chan_config=dsp_cfg_tbl_dict,
178184
write_mode="r",

0 commit comments

Comments
 (0)