Commit 779a39bc authored by Ryan Michael Magee's avatar Ryan Michael Magee

inspiral_lr.py: changed handling of None for dtdphi_files

parent 02c1d970
Pipeline #77660 passed with stages
in 24 minutes and 26 seconds
......@@ -309,8 +309,7 @@ class LnSignalDensity(LnLRDensity):
# source population model
# FIXME: introduce a mechanism for selecting the file
self.population_model = inspiral_intrinsics.SourcePopulationModel(self.template_ids, filename = self.population_model_file)
if self.dtdphi_file is not None:
self.InspiralExtrinsics = inspiral_extrinsics.InspiralExtrinsics(self.min_instruments, self.dtdphi_file)
self.InspiralExtrinsics = inspiral_extrinsics.InspiralExtrinsics(self.min_instruments, filename = self.dtdphi_file)
def set_horizon_factors(self, horizon_factors):
self.horizon_factors = horizon_factors
......@@ -571,8 +570,7 @@ class LnSignalDensity(LnLRDensity):
self.horizon_factors = dict((int(k), v) for k, v in self.horizon_factors.items())
assert set(self.template_ids) == set(self.horizon_factors)
self.population_model = inspiral_intrinsics.SourcePopulationModel(self.template_ids, filename = self.population_model_file)
if self.dtdphi_file is not None:
self.InspiralExtrinsics = inspiral_extrinsics.InspiralExtrinsics(self.min_instruments, self.dtdphi_file)
self.InspiralExtrinsics = inspiral_extrinsics.InspiralExtrinsics(self.min_instruments, filename = self.dtdphi_file)
return self
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment