def setUp(self): self.data = sherpa.read_data(self.make_path('gauss2d.dat'), ncols=3, sep='\t', dstype=sherpa.Data2D) self.g1 = sherpa.Gauss2D('g1') self.g1.ellip.freeze() self.g1.theta.freeze() self.f = sherpa.Fit(self.data, self.g1) self.levels = numpy.array([0.5, 2, 5, 10, 20])
def setup_contour(make_data_path): data = sherpa.read_data(make_data_path('gauss2d.dat'), ncols=3, sep='\t', dstype=sherpa.Data2D) g1 = sherpa.Gauss2D('g1') g1.ellip.freeze() g1.theta.freeze() f = sherpa.Fit(data, g1) levels = numpy.array([0.5, 2, 5, 10, 20]) return SetupContour(data, g1, f, levels)