Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def build_point_source_jl(self):
data_list = DataList(self._plugin)
jls = {}
for key in self._shapes.keys():
ps = PointSource('test',0,0,spectral_shape=self._shapes[key])
model = Model(ps)
jls[key] = JointLikelihood(model,data_list)
return jls
def build_point_source_bayes(self):
data_list = DataList(self._plugin)
jls = {}
for key in self._shapes.keys():
ps = PointSource('test', 0, 0, spectral_shape=self._shapes[key])
model = Model(ps)
jls[key] = JointLikelihood(model, data_list)
return jls