Commit 5c6a4388 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix errors in injectSources implementation

parent d894aa89
......@@ -281,7 +281,7 @@ class ComputeFstat(object):
FstatOAs.prevInput = lalpulsar.FstatOptionalArgsDefaults.prevInput
FstatOAs.collectTiming = lalpulsar.FstatOptionalArgsDefaults.collectTiming
if type(self.injectSources) == dict:
if hasattr(self, 'injectSource') and type(self.injectSources) == dict:
logging.info('Injecting source with params: {}'.format(
self.injectSources))
PPV = lalpulsar.CreatePulsarParamsVector(1)
......@@ -688,7 +688,7 @@ class MCMCSearch(BaseSearchClass):
log10temperature_min=-5, theta_initial=None, scatter_val=1e-10,
binary=False, BSGL=False, minCoverFreq=None,
maxCoverFreq=None, detector=None, earth_ephem=None,
sun_ephem=None, injectSource=None):
sun_ephem=None, injectSources=None):
"""
Parameters
label, outdir: str
......
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