Skip to content
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

Merged
merged 2 commits into from May 2, 2018
Merged

tickets/DM-13808 #7

merged 2 commits into from May 2, 2018

Conversation

sr525
Copy link
Contributor

@sr525 sr525 commented Apr 30, 2018

No description provided.

Copy link
Collaborator

@natelust natelust left a 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

@@ -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
Copy link
Collaborator

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)
Copy link
Collaborator

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

Copy link
Contributor Author

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))
Copy link
Collaborator

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"

@sr525 sr525 merged commit 0d6ec93 into master May 2, 2018
@ktlim ktlim deleted the tickets/DM-13808 branch August 25, 2018 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants