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
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.
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 |
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.
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 |
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.
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) |
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.
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): |
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.
Inappropriate rename.
The transition to int32 for Masks triggered a name change for masks. Update to the new api.
aa28086
to
755da7e
Compare
No description provided.