Skip to content

Commit

Permalink
Apply GCD suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies authored Apr 5, 2024
1 parent 173835d commit 7a0a0b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pycbc/events/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,10 @@ def find_fits(self, trigs):
The thresh fit value(s)
"""
try:
# Exists where trigs is a class with the template num attribute
tnum = trigs.template_num
except AttributeError:
# Exists where trigs is dict-like
tnum = trigs['template_id']

try:
Expand Down Expand Up @@ -1546,13 +1548,13 @@ def rank_stat_coinc(self, s, slide, step, to_shift,
"""

sngl_rates = {sngl[0]: sngl[1]['snglstat'] for sngl in s}
# Find total volume of phase-time-amplitude space occupied by
# noise coincs
if 'dets' in kwargs:
ln_noise_rate = coinc_rate.combination_noise_lograte(
sngl_rates, kwargs['time_addition'],
kwargs['dets'])

# Find total volume of phase-time-amplitude space occupied by
# noise coincs

# Extent of time-difference space occupied
noise_twindow = coinc_rate.multiifo_noise_coincident_area(
self.hist_ifos, kwargs['time_addition'],
Expand Down

0 comments on commit 7a0a0b0

Please sign in to comment.