Skip to content

Conversation

@laurenam
Copy link
Contributor

@laurenam laurenam commented Jan 24, 2026

No description provided.

@laurenam laurenam requested a review from kfindeisen January 24, 2026 00:42
Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

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

I'm a bit worried that this may be swinging too far in the opposite direction and not warning about things that are important, but I'm not actually qualified to tell.

self.log.warning("n_above_max_per_amp = %d (abs max is %d)", n_above_max_per_amp, int(0.75*n_amp))
self.log.debug("Making small tweak to threshold (from %.2f to %.2f)",
currentThresh, starBackgroundDetectionConfig.thresholdValue)
self.log.debug("n_above_max_per_amp = %d (abs max is %d)", n_above_max_per_amp, int(0.75*n_amp))
Copy link
Member

Choose a reason for hiding this comment

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

Should this still warn when the absolute max is exceeded? I see there's a warning on maxDetFracForFinalBg, I can't tell whether this is related.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, this "maximum" is not an absolute criterion in the usual sense. It is a deciding factor for the "making a small tweak" branch, so I added this info into that debug message (I'm not sure a user -- other than myself -- would really be able to glean much meaning out of it as an info after the fact, and hopefully the maxDetFracForFinalBg warning will do the talking.)

@laurenam laurenam force-pushed the tickets/DM-53919 branch 2 times, most recently from 631f2ba to 982a25b Compare January 26, 2026 23:36
Having been significantly battle-tested, these logs can now be moved
from warning to debug level.
@laurenam laurenam merged commit 2d57dac into main Jan 27, 2026
3 checks passed
@laurenam laurenam deleted the tickets/DM-53919 branch January 27, 2026 01:06
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