Skip to content
Snippets Groups Projects
Commit 61582e04 authored by Cody Messick's avatar Cody Messick
Browse files

inspiral_lr.py: Fix thinko that was causing snr chi densities to be

dropped in online ranking statistic code
parent 12b270e8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -544,7 +544,7 @@ class OnlineFrakensteinLnSignalDensity(LnSignalDensity):
@classmethod
def splice(cls, src, Dh_donor):
self = cls(src.template_ids, src.instruments, src.delta_t, src.min_instruments)
for key, lnpdf in self.densities.items():
for key, lnpdf in src.densities.items():
self.densities[key] = lnpdf.copy()
# NOTE: not a copy. we hold a reference to the donor's
# data so that as it is updated, we get the updates.
......@@ -915,7 +915,7 @@ class OnlineFrakensteinLnNoiseDensity(LnNoiseDensity):
@classmethod
def splice(cls, src, rates_donor):
self = cls(src.template_ids, src.instruments, src.delta_t, src.min_instruments)
for key, lnpdf in self.densities.items():
for key, lnpdf in src.densities.items():
self.densities[key] = lnpdf.copy()
# NOTE: not a copy. we hold a reference to the donor's
# data so that as it is updated, we get the updates.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment