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

Fix bug in local_mean my using min instead of comparison #34

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

brisvag
Copy link
Contributor

@brisvag brisvag commented Sep 6, 2024

While working with @alessiodacapito using fidder to erase membranes, we encountered a bug where estimate_local_mean would fail with a TypeError. Basically, due to how the comparison was done, n_samples_for_fit would end up being True instead of an integer ^^'

We just simplified the code by using min.

Co-authored-by: Alessio d'Acapito <alessio.dacapito@gmail.com>
Copy link
Member

@alisterburt alisterburt 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, thanks! 🙏

@alisterburt alisterburt merged commit 104cab9 into teamtomo:main Sep 6, 2024
2 of 5 checks passed
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