How to use the astromodels.model.Model function in astromodels

To help you get started, we’ve selected a few astromodels examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github threeML / threeML / test / test_gbm.py View on Github external
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
github threeML / threeML / test / test_gbm.py View on Github external
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