Ejemplo n.º 1
0
def test_fitcontour(setup_contour):
    dc = sherpa.DataContour()
    dc.prepare(setup_contour.data)

    mc = sherpa.ModelContour()
    mc.prepare(setup_contour.data, setup_contour.g1, setup_contour.f.stat)

    fc = sherpa.FitContour()
    fc.prepare(dc, mc)
Ejemplo n.º 2
0
    def test_splitcontour(self):
        dc = sherpa.DataContour()
        dc.levels = self.levels
        dc.prepare(self.data)

        mc = sherpa.ModelContour()
        mc.levels = self.levels
        mc.prepare(self.data, self.g1, self.f.stat)

        fc = sherpa.FitContour()
        fc.prepare(dc, mc)

        rc = sherpa.ResidContour()
        rc.prepare(self.data, self.g1, self.f.stat)
        rc.levels = self.levels

        sp = sherpa.SplitPlot(2,2)
Ejemplo n.º 3
0
def test_splitcontour(setup_contour):
    dc = sherpa.DataContour()
    dc.levels = setup_contour.levels
    dc.prepare(setup_contour.data)

    mc = sherpa.ModelContour()
    mc.levels = setup_contour.levels
    mc.prepare(setup_contour.data, setup_contour.g1, setup_contour.f.stat)

    fc = sherpa.FitContour()
    fc.prepare(dc, mc)

    rc = sherpa.ResidContour()
    rc.prepare(setup_contour.data, setup_contour.g1, setup_contour.f.stat)
    rc.levels = setup_contour.levels

    # TODO: without calling addcontour this is hust the same as test_splitplot
    sp = sherpa.SplitPlot(2, 2)