-
Notifications
You must be signed in to change notification settings - Fork 70
Add normalization argument to LearnTransform.Translation with default value None #2063
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
Conversation
Hey @iimog, @berl what do you think? |
Hi @shachafl, |
Sounds good to me. For documentation, besides the docstring in the
A word of caution, Apple Silicon (M1+) might show some differences in floating-point arithmetic compared to Intel, so if you can run on both that's great. I need to resolve some failed tests before adding MacOS to GitHub Actions (#2057). |
Awesome, I'll start working on this next week. |
I changed the code, tests, and documentation as discussed (and force-pushed). However, one test is still failing: I'll also run the tests on an Apple Silicon machine later. |
I updated the expectations accordingly. Restoring the old I don't know why the lint check fails, but it was not during the linting, but during the installation. So I don't think this is my fault. 🙂 |
It all runs fine on my machine. |
I successfully ran the tests on an M3 Mac (running Sequoia 15.3.1). Only the napari tests are failing ( This has nothing to do with this pr, but one required change is starfish/starfish/core/_display.py Line 282 in b8fdfa9
edge_color was deprecated in napari 0.5 and is removed in napari 0.6 (current stable version since May 1). However four of the tests still fail
|
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.
Looks good to me.
Thanks again for doing all the hard work!
Last thing, please open a new issue with the failed napari testing. I wasn't vigilant with the napari testing so far.
these are passed to the internal call of
skimage.registration.phase_cross_correlation
. This allows users to overwrite thenormalization
argument to restore the skimage<0.19 behavior ofnormalization=None
, thereby fixing: #2062I replaced the unused
*args
with**kwargs
. If the*args
are still needed, I can instead add**kwargs.
I decided to add this in
run
because that required the least amount of change. But it might be a better idea to add it to init instead (or in addition). Therefore it is specified once when the Translation object is initialized (and can potentially be overwritten in the calls to run).We might consider adding additional documentation or selecting
normalization=True
as the default.