Skip to content

Conversation

@laurenam
Copy link
Contributor

No description provided.

@laurenam laurenam requested a review from ctslater November 11, 2025 00:43
and threshResults.multiplicative < self.config.minThresholdScaleFactor):
self.log.warning("Measured threshold scaling factor (%.2f) is outside [min, max] "
"bounds [%.2f, %.2f]. Setting lower limit to %.2f.",
threshResults.multiplicative, self.config.minThresholdScaleFacto,
Copy link
Member

Choose a reason for hiding this comment

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

typo, minThresholdScaleFacto. Makes me worried this code path isn't tested.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oooh, good catch. Fixed and added more test coverage.

if (self.config.minThresholdScaleFactor
and threshResults.multiplicative < self.config.minThresholdScaleFactor):
self.log.warning("Measured threshold scaling factor (%.2f) is outside [min, max] "
"bounds [%.2f, %.2f]. Setting lower limit to %.2f.",
Copy link
Member

Choose a reason for hiding this comment

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

Setting the scale factor to lower limit, not setting the lower limit. Same comment on other messages.

if self.config.doBrightPrelimDetection:
brightDetectedMask = self._computeBrightDetectionMask(maskedImage, convolveResults)
else:
prelim = None
Copy link
Member

Choose a reason for hiding this comment

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

preliminary what?

Are you ok with results.prelim being None? If nothing uses it downstream, might as well remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm too nervous to do this just in case somewhere/somehow expects the parameter to exist...

Copy link
Member

Choose a reason for hiding this comment

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

I'm ok with "not on this ticket on a wednesday".

@laurenam laurenam merged commit 3541666 into main Nov 13, 2025
4 checks passed
@laurenam laurenam deleted the tickets/DM-53153 branch November 13, 2025 04:00
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