Skip to content

Commit 3829fec

Browse files
committed
no need for keying magic in raw_fcio after simon's dev in daq2lh5
1 parent 6f6d187 commit 3829fec

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

workflow/src/legenddataflow/scripts/tier/raw_fcio.py

-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import argparse
2-
from copy import deepcopy
32
from pathlib import Path
43

54
from daq2lh5 import build_raw
@@ -35,24 +34,11 @@ def build_tier_raw_fcio() -> None:
3534
channel_dict = channel_dict.out_spec
3635
all_config = Props.read_from(channel_dict.gen_config)
3736

38-
chmap = (
39-
TextDB(args.chan_maps, lazy=True).channelmaps.on(args.timestamp).group("system")
40-
)
41-
4237
if "geds_config" in channel_dict:
4338
raise NotImplementedError()
4439

4540
if "spms_config" in channel_dict:
4641
spm_config = Props.read_from(channel_dict.spms_config)
47-
spm_channels = chmap.spms.map("daq.rawid")
48-
49-
for rawid, chinfo in spm_channels.items():
50-
cfg_block = deepcopy(spm_config["FCEventDecoder"]["__output_table_name__"])
51-
cfg_block["key_list"] = [chinfo.daq.fc_channel]
52-
spm_config["FCEventDecoder"][f"ch{rawid:07d}/raw"] = cfg_block
53-
54-
spm_config["FCEventDecoder"].pop("__output_table_name__")
55-
5642
Props.add_to(all_config, spm_config)
5743

5844
if "auxs_config" in channel_dict:

0 commit comments

Comments
 (0)