Skip to content

Commit

Permalink
cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnitz committed Sep 5, 2024
1 parent 76d81d3 commit 5f6bf9c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pycbc/events/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def get_hist(self, ifos=None):

# renormalise to PDF
self.weights[ifo] = \
(weights[ifo] / (weights[ifo].sum() * bin_volume)).astype(numpy.float32)
(weights[ifo] / (weights[ifo].sum() * bin_volume))
self.weights[ifo] = self.weights[ifo].astype(numpy.float32)

if param[ifo].dtype == numpy.int8:
# Older style, incorrectly sorted histogram file
Expand Down Expand Up @@ -641,13 +642,17 @@ def logsignalrate(self, stats, shift, to_shift):

# Get reference ifo information
rate = numpy.zeros(len(shift), dtype=numpy.float32)
ps = {ifo: numpy.array(stats[ifo]['coa_phase'], dtype=numpy.float32, ndmin=1)
ps = {ifo: numpy.array(stats[ifo]['coa_phase'],
dtype=numpy.float32, ndmin=1)
for ifo in self.ifos}
ts = {ifo: numpy.array(stats[ifo]['end_time'], dtype=numpy.float64, ndmin=1)
ts = {ifo: numpy.array(stats[ifo]['end_time'],
dtype=numpy.float64, ndmin=1)
for ifo in self.ifos}
ss = {ifo: numpy.array(stats[ifo]['snr'], dtype=numpy.float32, ndmin=1)
ss = {ifo: numpy.array(stats[ifo]['snr'],
dtype=numpy.float32, ndmin=1)
for ifo in self.ifos}
sigs = {ifo: numpy.array(stats[ifo]['sigmasq'], dtype=numpy.float32, ndmin=1)
sigs = {ifo: numpy.array(stats[ifo]['sigmasq'],
dtype=numpy.float32, ndmin=1)
for ifo in self.ifos}
for ref_ifo in self.ifos:
rtype = rtypes[ref_ifo]
Expand Down

0 comments on commit 5f6bf9c

Please sign in to comment.