Skip to content

Commit

Permalink
fix to also blind aux chans
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmarshall committed Jan 21, 2024
1 parent 8d2dcac commit a5bda2c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion scripts/build_raw_blind.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@
spms_channels = (
legendmetadata.channelmap(args.timestamp).map("system", unique=False)["spms"].map("daq.rawid")
)
auxs_channels = (
legendmetadata.channelmap(args.timestamp).map("system", unique=False)["auxs"].map("daq.rawid")
)
blsn_channels = (
legendmetadata.channelmap(args.timestamp).map("system", unique=False)["bsln"].map("daq.rawid")
)
puls_channels = (
legendmetadata.channelmap(args.timestamp).map("system", unique=False)["puls"].map("daq.rawid")
)

store = lh5.LH5Store()

Expand Down Expand Up @@ -125,7 +134,13 @@
)
continue

if (chnum not in list(ged_channels)) and (chnum not in list(spms_channels)):
if (
(chnum not in list(ged_channels))
and (chnum not in list(spms_channels))
and (chnum not in list(auxs_channels))
and (chnum not in list(blsn_channels))
and (chnum not in list(puls_channels))
):
# if this is a PMT or not included for some reason, just copy it to the output file
chobj, _ = store.read_object(channel + "/raw", args.input, decompress=False)
store.write_object(
Expand Down

0 comments on commit a5bda2c

Please sign in to comment.