Skip to content
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

satdet.detsat fix for scipy.stats.mode #196

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

dvstark
Copy link
Contributor

@dvstark dvstark commented Feb 5, 2024

Description

This pull request is to address an error that can sometimes occur in acstools.satdet.detsat routine. This function calls scipy.stats.mode and is expecting an array as output. Historically, scipy.stats.mode always returned an array, but after v1.9.2 it returns a scalar in certain situations. Setting the keepdims keyword to True ensures the output is an array, ensuring compatibility acstools.

Copy link
Collaborator

@pllim pllim left a comment

Choose a reason for hiding this comment

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

Technically LGTM but someone from ACS Team should provide the approval.

Copy link
Contributor

@jryon jryon left a comment

Choose a reason for hiding this comment

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

Looks good to me. I suggest we hold off on making a new release for this fix (unless we start getting help calls) and combine it with future updates/fixes.

@jryon jryon merged commit ba0c642 into spacetelescope:master Feb 5, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants