Skip to content

Commit

Permalink
0D array for maximum again
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Jan 13, 2025
1 parent ff1e043 commit 533dad0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pycbc/events/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,8 +1450,9 @@ def single(self, trigs):
singles["benchmark_logvol"] = self.benchmark_logvol[self.curr_tnum]

# Save info about the best-case scenario for use later:
max_sigsq = numpy.max(singles["sigmasq"])
self.max_sigmasq = max(max_sigsq, self.max_sigmasq)
if singles["sigmasq"].size:
max_sigsq = numpy.max(singles["sigmasq"])
self.max_sigmasq = max(max_sigsq, self.max_sigmasq)

if self.kwargs["chirp_mass"]:
from pycbc.conversions import mchirp_from_mass1_mass2
Expand Down

0 comments on commit 533dad0

Please sign in to comment.