def validate(self, workDir=".", **kwargs): cameraInfo = getCameraInfo(self.camera) butler = hscCamera.getButler(self.camera, rerun=self.rerun, root=os.path.join(workDir, cameraInfo.addDir)) self.validateCcd(butler, self.dataId)
def validate(self, workDir=".", **kwargs): self.validatePbs() cameraInfo = getCameraInfo(self.camera) butler = hscCamera.getButler(self.camera, rerun=self.rerun, root=os.path.join(workDir, cameraInfo.addDir)) numCcds = hscCamera.getNumCcds(self.camera) for dataId in self.dataIdList: self.validateCcd(butler, dataId)
def validate(self, workDir=".", **kwargs): target = self.getTargetDir(workDir) registry = os.path.join(target, "calibRegistry.sqlite3") self.assertTrue("Registry created", os.path.isfile(registry)) cameraInfo = getCameraInfo(self.camera) butler = hscCamera.getButler(self.camera, root=os.path.join(workDir, cameraInfo.addDir)) for dataId in self.dataIdList: self.validateDataset(butler, dataId, self.detrend) return True
def validate(self, workDir=".", **kwargs): found = set() for dirpath, dirnames, filenames in os.walk(os.path.join(workDir, self.registryDir)): for f in filenames: if f.endswith('.fits'): found.add(f) self.assertEqual("Number of FITS files", len(found), len(self.fitsFiles)) registry = os.path.join(workDir, self.registryDir, "registry.sqlite3") self.assertTrue("Registry created", os.path.isfile(registry)) cameraInfo = getCameraInfo(self.camera) butler = hscCamera.getButler(self.camera, root=os.path.join(workDir, cameraInfo.addDir)) for dataId in self.dataIdList: self.validateDataset(butler, dataId, self.datasetType) return True
def validate(self, workDir=".", **kwargs): found = set() for dirpath, dirnames, filenames in os.walk( os.path.join(workDir, self.registryDir)): for f in filenames: if f.endswith('.fits'): found.add(f) self.assertEqual("Number of FITS files", len(found), len(self.fitsFiles)) registry = os.path.join(workDir, self.registryDir, "registry.sqlite3") self.assertTrue("Registry created", os.path.isfile(registry)) cameraInfo = getCameraInfo(self.camera) butler = hscCamera.getButler(self.camera, root=os.path.join(workDir, cameraInfo.addDir)) for dataId in self.dataIdList: self.validateDataset(butler, dataId, self.datasetType) return True
def validate(self, workDir=".", **kwargs): self.validatePbs() cameraInfo = getCameraInfo(self.camera) butler = hscCamera.getButler(self.camera, rerun=self.rerun, root=os.path.join(workDir, cameraInfo.addDir))