-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: handle 1D array in gaussian filter #5201
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @sciunto, I think that the beginning of the gaussian
function and may be the _guess_spatial_dimensions
error message must be refactored. But I am not sure that an error have to be raised since it is filtered by a try ... Except ...
block...
Co-authored-by: Riadh Fezzani <rfezzani@gmail.com>
I would even wonder whether keeping a guess is the right thing. I thought we want to avoid as much as possible magic. Other opinions @jni @emmanuelle ? |
Hello @sciunto! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-02-01 10:51:32 UTC |
We have mostly gotten rid of this type of guessing elsewhere (this function is one exception noted in the list at the top of #2613). It looks like @jni and I discussed it here: #2613 (comment) and decided to address it as part of #4294. Working on that issue is one of my near-term priorities for the CZI grant, so we should be able to make progress soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote for merging this as-is and then deal with removing _guess_spatial_dimensions
separately
Co-authored-by: Gregory R. Lee <grlee77@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @sciunto, waiting for the green button before merging 😉
Failure is expected from #5211, so I'll merge now. Thanks everyone! |
Thanks for fixing this @sciunto! The new docstring does not look right: |
Description
See #5195
Checklist
./doc/examples
(new features only)./benchmarks
, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.