brainglobe / cellfinder-napari

Efficient cell detection in large images using cellfinder in napari
https://brainglobe.info/documentation/cellfinder/index.html
BSD 3-Clause "New" or "Revised" License
24 stars 6 forks source link

Expand training tests #128

Closed alessandrofelder closed 2 years ago

alessandrofelder commented 2 years ago

Description

What is this PR

Why is this PR needed?

To increase test coverage ("Smoke tests") and add additional checks to the tests.

What does this PR do?

References

Largely addresses brainglobe/cellfinder#317 Partially addresses brainglobe/cellfinder#338

How has this PR been tested?

No existing functionality has changed (apart from one default value that was wrong). The tests added as part of this PR increase the likelihood that current and future breakages will be picked up early, and tests pass.

Is this a breaking change?

No.

Does this PR require an update to the documentation?

If any features have changed, or have been added. Please explain how the documentation has been updated (and link to the associated PR). See here for details.

Checklist:

deprecated-napari-hub-preview-bot[bot] commented 2 years ago

Preview page for your plugin is ready here: https://preview.napari-hub.org/brainglobe/cellfinder-napari/128 Updated: 2022-06-28T16:34:50.479012

codecov-commenter commented 2 years ago

Codecov Report

Merging #128 (34dbb8a) into main (7d2495a) will increase coverage by 14.26%. The diff coverage is 98.18%.

@@             Coverage Diff             @@
##             main     brainglobe/cellfinder-napari#128       +/-   ##
===========================================
+ Coverage   81.20%   95.46%   +14.26%     
===========================================
  Files          15       17        +2     
  Lines         665      816      +151     
===========================================
+ Hits          540      779      +239     
+ Misses        125       37       -88     
Impacted Files Coverage Δ
cellfinder_napari/train/train.py 92.10% <50.00%> (+35.69%) :arrow_up:
cellfinder_napari/detect/__init__.py 100.00% <100.00%> (ø)
cellfinder_napari/detect/detect.py 93.44% <100.00%> (+44.26%) :arrow_up:
cellfinder_napari/tests/test_curation.py 100.00% <100.00%> (ø)
cellfinder_napari/tests/test_detection.py 100.00% <100.00%> (ø)
cellfinder_napari/tests/test_train_containers.py 100.00% <100.00%> (ø)
cellfinder_napari/tests/test_training.py 100.00% <100.00%> (ø)
cellfinder_napari/tests/test_utils.py 100.00% <100.00%> (ø)
cellfinder_napari/train/__init__.py 100.00% <100.00%> (ø)
cellfinder_napari/train/train_containers.py 100.00% <100.00%> (+20.96%) :arrow_up:
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7d2495a...34dbb8a. Read the comment docs.