MouseLand / cellpose-napari

napari plugin for cellpose (see www.cellpose.org) - an anatomical segmentation tool
https://cellpose-napari.readthedocs.org
BSD 3-Clause "New" or "Revised" License
47 stars 22 forks source link

Set `process_3D` checkbox based on image_layer.ndim #34

Closed psobolewskiPhD closed 1 week ago

psobolewskiPhD commented 2 years ago

This is an attempt at closing: https://github.com/MouseLand/cellpose-napari/issues/31

Simple check for image_layer.changed and then use the image_layer.ndim to pre-set the process_3D checkbox if it's 4 or 3 and not rgb. Works locally with the cellpose sample data as well as random napari sample images.

codecov-commenter commented 2 years ago

Codecov Report

Merging #34 (e1375a9) into main (6993bee) will increase coverage by 0.75%. The diff coverage is 85.71%.

@@            Coverage Diff             @@
##             main      #34      +/-   ##
==========================================
+ Coverage   59.91%   60.66%   +0.75%     
==========================================
  Files           3        3              
  Lines         232      239       +7     
==========================================
+ Hits          139      145       +6     
- Misses         93       94       +1     
Impacted Files Coverage Δ
cellpose_napari/_dock_widget.py 54.50% <85.71%> (+1.13%) :arrow_up:
psobolewskiPhD commented 2 years ago

@tlambert03 this one seems OK to review. 🙏

carsen-stringer commented 1 week ago

Thanks!