Esempio n. 1
0
    def setUp(self):
        super().setUp()
        self.order1 = 3
        self.inverseMaxDiff1 = 2e-5
        self.model1 = astrometryModels.SimpleAstrometryModel(
            self.associations.getCcdImageList(),
            self.projectionHandler,
            True,
            order=self.order1)

        self.order2 = 5
        # NOTE: because assertPairListsAlmostEqual tests an absolute
        # difference, we need this to be relatively high to avoid spurious
        # incorrect values.
        # Alternately, further increasing the order of the inverse polynomial
        # in astrometryTransform.toAstMap() can improve the quality of the
        # SkyWcs inverse, but that may not be wise for the more general use
        # case due to the inverse then having too many wiggles.
        self.inverseMaxDiff2 = 2e-3
        self.model2 = astrometryModels.SimpleAstrometryModel(
            self.associations.getCcdImageList(),
            self.projectionHandler,
            False,
            order=self.order2)
        self._prepModels()
    def setUp(self):
        super().setUp()
        self.order1 = 3
        self.inverseMaxDiff1 = 2e-5
        self.model1 = astrometryModels.SimpleAstrometryModel(self.associations.getCcdImageList(),
                                                             self.projectionHandler,
                                                             True,
                                                             order=self.order1)

        self.order2 = 5
        self.inverseMaxDiff2 = 5e-4
        self.model2 = astrometryModels.SimpleAstrometryModel(self.associations.getCcdImageList(),
                                                             self.projectionHandler,
                                                             False,
                                                             order=self.order2)
        self._prepModels()