-
Notifications
You must be signed in to change notification settings - Fork 271
Add pcv.filters.eccentricity #1430
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1430 +/- ##
==========================================
- Coverage 99.98% 99.85% -0.13%
==========================================
Files 159 161 +2
Lines 7048 7066 +18
==========================================
+ Hits 7047 7056 +9
- Misses 1 10 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
whitespace corrections
one more whitespace
trailing whitespace
whitespace
try to hit coverage
different test data?
add new function
Just added materials for the reviewer to the shared google drive, in a folder called detect_discs_1430 |
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.
Added a test notebook called pr1430_detect-discs to the shared google drive in the detect_dics folder
update import in test file
…plantcv into add_detect_discs
Re-definition found for builtin function, so cannot name subpackage "filter", try to be more specific
filter to filters
I believe deepsource thinks it is a circular import because the test module was named eccentricity.py vs test_eccentricity.py
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1430 +/- ##
=======================================
Coverage 99.98% 99.98%
=======================================
Files 159 161 +2
Lines 7048 7066 +18
=======================================
+ Hits 7047 7065 +18
Misses 1 1
Flags with carried forward coverage won't be shown. Click here to find out 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.
Looks good to me now! Apologies for not pushing my re-naming commits sooner to save you a minute or two but thanks for the help @nfahlgren for getting this function all fixed up.
Only minor thing I noticed, but didn't want to rerun test for this, is updating.md
I think was meant to call the output variable filtered_mask
instead of filterec_mask
.
Describe your changes
Add a new filtering function to the main plantcv workspace that filters objects in a binary mask based on it's eccentricity e.g. keep more circular things while long/oblong objects get filled in.
Type of update
Is this a:
Associated issues
Additional context
Highly helpful for stomata and pollen grain image cleanup
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.yml
updating.md