def testZogyDiffim(self): """Compute Zogy diffims using Fourier- and Real-space methods. Compare the images. They are not identical but should be similar (within ~2%). """ self._setUpImages() config = ZogyConfig() task = ZogyTask(templateExposure=self.im2ex, scienceExposure=self.im1ex, config=config) D_F = task.computeDiffim(inImageSpace=False) D_R = task.computeDiffim(inImageSpace=True) self._compareExposures(D_F, D_R)
def testZogyDiffim(self): """Compute Zogy diffims using Fourier- and Real-space methods. Compare the images. They are not identical but should be similar (within ~2%). """ self._setUpImages() config = ZogyConfig() task = ZogyTask(templateExposure=self.im2ex, scienceExposure=self.im1ex, config=config) D_F = task.computeDiffim(inImageSpace=False) D_R = task.computeDiffim(inImageSpace=True) # Fourier-space and image-space versions are not identical, so up the tolerance. # This is a known issue with the image-space version. self._compareExposures(D_F.D, D_R.D, tol=0.03)