-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
Ensure surface normals and wireframes are using Models internally #5501
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.
setters look good, thanks! tests are a bit vague so maybe a docstring with the expected behaviour detailed (dict is accepted, model should always be SurfaceNormals
) would be good - non blocking though
Codecov Report
@@ Coverage Diff @@
## main #5501 +/- ##
==========================================
- Coverage 89.31% 89.27% -0.04%
==========================================
Files 600 600
Lines 51019 51075 +56
==========================================
+ Hits 45566 45596 +30
- Misses 5453 5479 +26
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Maybe also nice to add type annotation
Co-authored-by: Grzegorz Bokota <bokota+github@gmail.com>
…pari into fix/surface-normals-wireframe
Actually, I'm not super happy with the current setters, cause what I really wanted to do was also run Unfortunately, this fails because anything that has |
Ok, I tried to implement it the "proper way". This also allows to add a connection of the |
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.
This looks great. I also just ran into the napari-animation issue: napari/napari-animation#145 because I had the same error. This looks like it should catch all of the cases that was letting dict
s float around as attribute values.
[edit]
I'll also note that I am using this patch to work around the napari-animation issue. Now surface animations work nicely.
Thanks for the ping, I forgot about this :P Merging! |
Description
Make sure that surface normals are always using the
SurfaceNormal
model internally (now they can sometimes be dict, which breaks a few assumptions in other parts of the codebase). See napari/napari-animation#145.I also took the chance to add an event for them, and do the same fix for the wireframe.
Type of change
References
How has this been tested?
as there are small differences between the two Qt bindings.
Final checklist:
trans.
to make them localizable.For more information see our translations guide.