-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fixing Issue #84 #85
base: master
Are you sure you want to change the base?
Fixing Issue #84 #85
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #85 +/- ##
==========================================
- Coverage 86.08% 85.94% -0.14%
==========================================
Files 13 13
Lines 1272 1274 +2
==========================================
Hits 1095 1095
- Misses 177 179 +2 ☔ View full report in Codecov by Sentry. |
Upon further prodding and poking I have realised that the issue is caused by the surface layer not having a properties attribute by default, which is causing the issues with this specific layer. This also cannot be fixed by loading the table with the function provided here. |
… and properties, and match table shape in properties of points layer to number of points
Hi @Cryaaa , hi @haesleinhuepf , I brought #87 here (since they are closely related) and added some conditions to make this work with the I had to change a bit the github actions for the moment (related issues are linked to my commits). Tests work locally. This should close #84 , #86 and haesleinhuepf/napari-process-points-and-surfaces#89 |
Thanks @zoccoler, I think it makes sense to merge these PRs! I just tested it in action in the napari cluster plotter and I think you may have reintroduced the problem (see my comment on the code). I will try and dive deeper into this later |
Alright, I made some changes to mirror I also fixed macos automated tests as suggested here and ubuntu version problem, which was already solved now. @Cryaaa let me know if it works now and if you are OK with the proposed changes |
@zoccoler, |
As of how it is right now, yes, that would happen for a layer like the points layer. Maybe we could do this mirroring for all layers (except Image)? Then, if a user sets features and not properties, properties will get updated and table would display correctly. If a user sets properties, we are already good to go and could optionally mirror it to features. We could replace this line by something like |
Actually I just tested setting the |
Nice then it was just a problem that I thought was there, all good to go then for me! |
Alright! @haesleinhuepf , if you agree with the changes here, feel free to merge. Otherwise, let us know! |
This PR would close #84 by additionally checking for data frames. This behavior only arises if we add features to the surface layer by for instance setting the feature attribute of the surface layer manually but I think it would be nice to display any kind of tabular data if it is available.