From 13d3239500c5af873935c81d079c928f4cdf0b1d Mon Sep 17 00:00:00 2001 From: Dustin Lang Date: Mon, 19 Mar 2018 17:01:14 -0400 Subject: [PATCH] oops, fix cdInverseAtPixel to ConstantFitsWcs --- tractor/wcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tractor/wcs.py b/tractor/wcs.py index f0679aef..0545dbf2 100644 --- a/tractor/wcs.py +++ b/tractor/wcs.py @@ -155,7 +155,7 @@ def __init__(self, wcs): cd = self.wcs.get_cd() self.cd = np.array([[cd[0], cd[1]], [cd[2], cd[3]]]) - self.cd_inverse = np.linalg.inv(cd) + self.cd_inverse = np.linalg.inv(self.cd) self.pixscale = self.wcs.pixel_scale() def hashkey(self):