Skip to content

Commit a5bda2c

Browse files
committed
fix to also blind aux chans
1 parent 8d2dcac commit a5bda2c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

scripts/build_raw_blind.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@
6767
spms_channels = (
6868
legendmetadata.channelmap(args.timestamp).map("system", unique=False)["spms"].map("daq.rawid")
6969
)
70+
auxs_channels = (
71+
legendmetadata.channelmap(args.timestamp).map("system", unique=False)["auxs"].map("daq.rawid")
72+
)
73+
blsn_channels = (
74+
legendmetadata.channelmap(args.timestamp).map("system", unique=False)["bsln"].map("daq.rawid")
75+
)
76+
puls_channels = (
77+
legendmetadata.channelmap(args.timestamp).map("system", unique=False)["puls"].map("daq.rawid")
78+
)
7079

7180
store = lh5.LH5Store()
7281

@@ -125,7 +134,13 @@
125134
)
126135
continue
127136

128-
if (chnum not in list(ged_channels)) and (chnum not in list(spms_channels)):
137+
if (
138+
(chnum not in list(ged_channels))
139+
and (chnum not in list(spms_channels))
140+
and (chnum not in list(auxs_channels))
141+
and (chnum not in list(blsn_channels))
142+
and (chnum not in list(puls_channels))
143+
):
129144
# if this is a PMT or not included for some reason, just copy it to the output file
130145
chobj, _ = store.read_object(channel + "/raw", args.input, decompress=False)
131146
store.write_object(

0 commit comments

Comments
 (0)