teamtomo / fidder

Detect and erase gold fiducials in cryo-EM images
https://teamtomo.org/fidder/
Other
11 stars 4 forks source link

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

Closed brisvag closed 2 months ago

brisvag commented 2 months ago

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.