Skip to content

Fix/ap phot diagnostic images - #132

Merged
jnation3406 merged 3 commits into
mainfrom
fix/ap_phot_diagnostic_images
Jul 30, 2026
Merged

Fix/ap phot diagnostic images#132
jnation3406 merged 3 commits into
mainfrom
fix/ap_phot_diagnostic_images

Conversation

@jnation3406

Copy link
Copy Markdown
Contributor

Sizes the circle drawn around the target to the aperture_radius and also draws the inner/outer annulus with a half width line.
Tweaks the color and size of the images for contrast and showing it full screen.

@jnation3406
jnation3406 requested a review from capetillo July 28, 2026 02:15
radius_full = max(arcsec_to_pixels(frame.header, aperture_radius), 14.0)
x0, y0, x1, y1 = _crop_bounds(positions, pad=2.0 * radius_full, width=width, height=height)
# The target's circles are the operation's real apertures in this frame's pixels; the
# candidates' shared circle keeps a floor so it stays visible on wide-pixel-scale frames.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are these vars named something_something_full? What's the full?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good question... Maybe _pixel would be a better descriptive name. I think its trying to say they are those values in pixel coordinates on the "full" size image, vs. the scaled down image we draw later on.

@capetillo capetillo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good just have a question about "full"

@jnation3406
jnation3406 merged commit 3e4bee1 into main Jul 30, 2026
3 checks passed
@jnation3406
jnation3406 deleted the fix/ap_phot_diagnostic_images branch July 30, 2026 20:23
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.

2 participants