-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add debug options to CompareWarpAssemble #157
Conversation
29c89be
to
97ab56b
Compare
<dd> If True then save the Epoch Count Image as a fits file in the `figpath` | ||
<dt> `saveAltMask` | ||
<dd> If True then save the new masks with CLIPPED planes as fits files to the `figpath` | ||
<dt> `figpath` |
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.
figPath
?
patchId = tempExpRefList[0].dataId | ||
coaddKeys = tempExpRefList[0].getButler().getKeys(self.getCoaddDatasetName(self.warpType)) | ||
keyList = sorted(coaddKeys.keys(), reverse=True) | ||
filename = 'epochCountIm-%s.fits' % ('-'.join([str(patchId[k]) for k in keyList])) |
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.
Nice!
@@ -1735,6 +1770,10 @@ def computeAltMaskList(self, tempExpRefList, maskSpanSets): | |||
for noDataRegion in noData: | |||
noDataRegion.clippedTo(mask.getBBox()).setMask(mask, 2**noDataValue) | |||
altMaskList.append(mask) | |||
if lsstDebug.Info(__name__).saveAltMask: | |||
filename = 'altMask-%s.fits' % ('-'.join([str(v) for v in warpRef.dataId.values()])) |
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.
Similar approach as above, but won't produce the same suffix. Suggest you consolidate the code to produce the suffix, and then they'll match.
fd9051c
to
33c8c38
Compare
that save debug images, including the count image and the new masks with the additional CLIPPED plane.
33c8c38
to
a13132c
Compare
that save debug images, including the count image
and the new masks with the additional CLIPPED plane.