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)
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)
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)
def setUp(self): self.astWcsSol = AstWcsSol()
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())
def __init__(self): """Construct an WEP calculation of ComCam object.""" super(WEPCalculationOfComCam, self).__init__(AstWcsSol())
def setUp(self): self.wepCalculation = WEPCalculation(AstWcsSol())