-
Notifications
You must be signed in to change notification settings - Fork 20
UI API overhaul + several features/fixes #17
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
- started cleaning up UI class/functions - fixed incorrect plots when using anisotropy correction - added anisotropy conversion to utils - fixed errors in launching review in new viewer
Codecov Report
@@ Coverage Diff @@
## main #17 +/- ##
==========================================
+ Coverage 37.40% 37.80% +0.40%
==========================================
Files 37 37
Lines 3294 3383 +89
==========================================
+ Hits 1232 1279 +47
- Misses 2062 2104 +42
Continue to review full report at Codecov.
|
|
Preview page for your plugin is ready here: |
napari_cellseg3d/launch_review.py
Outdated
|
|
||
| def crop_volume_around_point(points, layer, zoom_factor): | ||
| if zoom_factor != [1, 1, 1]: | ||
| vol = np.array(layer.data, dtype=np.int16) |
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 think the datatypes of all arrays dealt with here should be changed from int16 to uint16
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 get this with uint16 :
can't convert np.ndarray of type numpy.uint16. The only supported types are: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, and bool.
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.
Most likely due to the way utils.resize works (Uses MONAI, ndimage would be cleaner but MONAI transform is actually faster)
| "Remove in folder", func=self.folder_remove_small | ||
| # remove small | ||
| self.btn_remove_small_folder = ui.Button( | ||
| "Remove small in folder", func=self.folder_remove_small |
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.
Remove small cells ?
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.
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.
It removes anything below a certain number of pixels in size, it works only for labels
Do you still have a cropped title ? It might be a Qt version/macOS specific issue
Updated docs
- Improved conversion file path handling - Edit for ambiguous desc in framework model - Changed training validation dropdown to spinbox
|
Edited with the feedback in mind :) Let me know what you think. |
|

started cleaning up UI class/functions
fixed incorrect plots when using anisotropy correction
added anisotropy conversion to utils
fixed errors in launching review in new viewer