Skip to content

Commit

Permalink
re-adding bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurTolley committed Jul 11, 2023
1 parent 71bc23c commit 46ba8ab
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bin/pycbc_live
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ class LiveEventManager(object):
if self.run_snr_optimization:
# preestimate the number of CPU cores that we can afford giving
# to followup processes without slowing down the main search
available_cores = len(os.sched_getaffinity(0))
bg_cores = len(tuple(itertools.combinations(ifos, 2)))
analysis_cores = 1 + bg_cores
if platform.system() != 'Darwin':
Expand Down Expand Up @@ -1120,14 +1119,6 @@ with ctx:
args.max_psd_abort_distance
)

if data_reader[ifo].psd is not None:
dist = data_reader[ifo].psd.dist
if dist < args.min_psd_abort_distance or dist > args.max_psd_abort_distance:
logging.info("%s PSD dist %s outside acceptable range [%s, %s]",
ifo, dist, args.min_psd_abort_distance,
args.max_psd_abort_distance)
status = False

if status is True:
if ifo not in evnt.skymap_only_ifos:
evnt.live_detectors.add(ifo)
Expand Down

0 comments on commit 46ba8ab

Please sign in to comment.