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

DM-7477: Increase mask plane size to 32 bits #138

Merged
merged 1 commit into from Jul 13, 2017
Merged

Conversation

natelust
Copy link
Contributor

No description provided.

@PaulPrice PaulPrice changed the title tickets/DM-7477 DM-7477: Increase mask plane size to 32 bits Jul 11, 2017
Copy link
Contributor

@PaulPrice PaulPrice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good.

\ref WcsSelectImagesTask_ "WcsSelectImagesTask" to select exposures that lie inside the patch
Get the corners of the bbox supplied in skyInfo using \ref afwGeom.Box2D and convert the pixel
positions of the bbox corners to sky coordinates using \ref skyInfo.wcs.pixelToSky. Use the
\ref WcsSelectImagesTask_ "WcsSelectImagesTask" to select exposures that lie inside the patch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated.

@@ -144,7 +144,7 @@ def selectExposures(self, patchRef, skyInfo=None, selectDataList=[]):

def getSkyInfo(self, patchRef):
"""!
\brief Use \ref getSkyinfo to return the skyMap, tract and patch information, wcs and the outer bbox
\brief Use \ref getSkyinfo to return the skyMap, tract and patch information, wcs and the outer bbox
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated.

self.bitmask = lsst.afw.image.MaskU.getPlaneBitMask(self.config.maskPlaneName)
lsst.afw.image.Mask[lsst.afw.image.MaskPixel].addMaskPlane(self.config.maskPlaneName)
self.bitmask = lsst.afw.image.Mask[lsst.afw.image.MaskPixel]\
.getPlaneBitMask(self.config.maskPlaneName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if you put the period on the line before, you don't need the (evil) backslash.
But the line will shorten when we remove the [lsst.afw.image.MaskPixel].

del trialInstance

def testFakeMaskUsed(self):
def testFakeMasksed(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inappropriate rename.

The transition to int32 for Masks triggered a name change for masks.
Update to the new api.
@natelust natelust merged commit 755da7e into master Jul 13, 2017
@ktlim ktlim deleted the tickets/DM-7477 branch August 25, 2018 06:46
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