Skip to content

Conversation

@arunkannawadi
Copy link
Member

No description provided.


overlaps_center = detector_map[geom.Point2I(bbox.getCenter())] == ccd_row["ccd"]
if overlaps_center:
if not ccd_row.contains(cell_centers_sky[cellInfo.index]): # DROP THIS AFTER TESTING!!!
Copy link
Member

Choose a reason for hiding this comment

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

Time to drop this now?

psf_eval_point = geom.Point2D(inner_bbox.getCenter())
psf_shape = warp.psf.computeShape(psf_eval_point)
psf_shape_flag = False
except (SinglePolygonException, InvalidPsfError):
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see a scenario why SinglePolygonException should be raised, since the input visit has passed other cuts, but it still does happen. The psf_shape_flag is also used to mean that we set a nominal value of ixx=iyy=1 and ixy=0 but that means nothing.

psf_shape = warp.psf.computeShape(psf_eval_point)
psf_shape_flag = False
except (SinglePolygonException, InvalidPsfError):
self.log.warning("Blah")
Copy link
Member Author

Choose a reason for hiding this comment

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

I'll put in a more informative log message here!

@arunkannawadi arunkannawadi force-pushed the tickets/DM-52724 branch 5 times, most recently from 0526c1d to b6664cc Compare October 23, 2025 01:12
@arunkannawadi arunkannawadi merged commit 0437080 into main Oct 23, 2025
8 checks passed
@arunkannawadi arunkannawadi deleted the tickets/DM-52724 branch October 23, 2025 02:04
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.

3 participants