New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tickets/DM-13808 #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few small things, then good to merge
python/lsst/synpipe/matchFakes.py
Outdated
@@ -279,10 +279,17 @@ def getFakeSources(butler, dataId, tol=1.0, | |||
|
|||
if ('pixelScale' in extraCols) or ('thetaNorth' in extraCols): | |||
wcs = cal.getWcs() | |||
availExtras['pixelScale']['value'] = wcs.pixelScale().asArcseconds() | |||
availExtras['pixelScale']['value'] = wcs.getPixelScale().asArcseconds() | |||
xMid = cal.getWidth() // 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment block here describing why all the below is happening, it may not be obvious to future readers
@@ -103,6 +101,9 @@ def run(self, exposure, background): | |||
except KeyError: | |||
raise KeyError("No RA/DEC column in {} table".format(self.config.galList)) | |||
|
|||
skyToPixelMatrix = wcs.linearizeSkyToPixel(galCoord, lsst.afw.geom.degrees) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a comment about why the 3600 is necessary (I agree it is, but magic numbers should not be used without some documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 3600.0 is kept from the previous version of this code the documentation of which is out of the scope of this ticket.
@@ -68,7 +68,7 @@ def run(self, exposure, background): | |||
|
|||
starXY = wcs.skyToPixel(starCoord) | |||
bboxI = exposure.getBBox(PARENT) | |||
bboxI.grow(margin) | |||
bboxI.grow(int(margin)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the commit message of this from "Misc fixes" to something like "Cast variables to proper types"
No description provided.