Skip to content

Commit

Permalink
Ignore loc-only detectors for rank > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
titodalcanton committed Feb 19, 2024
1 parent 774013c commit 12a6a91
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/pycbc_live
Original file line number Diff line number Diff line change
Expand Up @@ -1124,12 +1124,16 @@ with ctx:
args.round_start_time
logging.info('Starting from: %s', args.start_time)

# initialize the data readers for all detectors
# Initialize the data readers for all detectors. For rank 0, we need data
# from all detectors, including the localization-only ones. For higher
# ranks, we only need the detectors that can generate candidates.
if args.max_length is not None:
maxlen = args.max_length
maxlen = int(maxlen)
data_reader = {ifo: StrainBuffer.from_cli(ifo, args, maxlen)
for ifo in evnt.ifos}
data_reader = {
ifo: StrainBuffer.from_cli(ifo, args, maxlen)
for ifo in (evnt.ifos if evnt.rank == 0 else evnt.trigg_ifos)
}
evnt.data_readers = data_reader

# create single-detector background "estimators"
Expand Down

0 comments on commit 12a6a91

Please sign in to comment.