예제 #1
0
class TestAstWcsSol(unittest.TestCase):
    """Test the AstWcsSol class."""

    def setUp(self):

        self.astWcsSol = AstWcsSol()

    def testSetWcsData(self):

        wcsCoef = np.arange(4)
        wcsData = WcsData(wcsCoef)
        self.astWcsSol.setWcsData(wcsData)

        self.assertTrue(isinstance(self.astWcsSol.wcsData, WcsData))
        self.assertEqual(self.astWcsSol.wcsData, wcsData)
예제 #2
0
    def __init__(self, isrDir):
        """Construct an WEP calculation of LSST FAM camera object.

        Parameters
        ----------
        isrDir : str
            Instrument signature remocal (ISR) directory. This directory will
            have the input and output that the data butler needs.
        """
        super(WEPCalculationOfLsstFamCam,
              self).__init__(AstWcsSol(), CamType.LsstFamCam, isrDir)
예제 #3
0
    def setUp(self):

        self.modulePath = getModulePath()

        testDir = os.path.join(self.modulePath, "tests")
        self.testDataDir = os.path.join(testDir, "testData")

        self.dataDir = tempfile.TemporaryDirectory(dir=testDir)
        self.isrDir = tempfile.TemporaryDirectory(dir=self.dataDir.name)

        self.wepCalculation = WEPCalculation(AstWcsSol(), CamType.ComCam,
                                             self.isrDir.name)
예제 #4
0
    def setUp(self):

        self.astWcsSol = AstWcsSol()
예제 #5
0
    def setUp(self):

        self.wepCalculationOfPiston = WEPCalculationOfPiston(
            AstWcsSol(), CamType.ComCam, "")
 def __init__(self):
     """Construct an WEP calculation of LSST FAM camera object."""
     super(WEPCalculationOfLsstFamCam, self).__init__(AstWcsSol())
예제 #7
0
 def __init__(self):
     """Construct an WEP calculation of ComCam object."""
     super(WEPCalculationOfComCam, self).__init__(AstWcsSol())
예제 #8
0
    def setUp(self):

        self.wepCalculation = WEPCalculation(AstWcsSol())