Skip to content
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

remove max_val param from threshold.texture() #1219

Merged
merged 2 commits into from
Jul 6, 2023

Conversation

afinit
Copy link
Collaborator

@afinit afinit commented Jul 6, 2023

This PR Builds on: #1218

Describe your changes

  • Removes max_val param from the threshold.texture method
  • updates function documentation
  • updates updating.md
  • fixes tests broken by change

Type of update
feature enhancement

Associated issues
completes one task from this ticket: #1194

For the reviewer
See this page for instructions on how to review the pull request.

  • PR functionality reviewed in a Jupyter Notebook
  • All tests pass
  • Test coverage remains 100%
  • Documentation tested
  • New documentation pages added to plantcv/mkdocs.yml
  • Changes to function input/output signatures added to updating.md
  • Code reviewed
  • PR approved

@afinit afinit added this to the PlantCV v4.0 milestone Jul 6, 2023
@@ -1057,12 +1057,13 @@ pages for more details on the input and output variable types.
#### plantcv.threshold.saturation

* pre v3.8: NA
* post v3.8: bin_img = **plantcv.threshold.saturation**(*rgb_img, threshold=255, channel="any")
* post v3.8: bin_img = **plantcv.threshold.saturation**(*rgb_img, threshold=255, channel="any"*)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noticed this missing *


#### plantcv.threshold.texture_filter
#### plantcv.threshold.texture
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the texture function name was mismatched here. I took a look at the git history and it looks like it's always been mismatched, so i changed it here. happy to adjust if needed

Base automatically changed from release-4.0-triangle-max-val to release-4.0 July 6, 2023 17:04
@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Merging #1219 (ca0e3a5) into release-4.0 (aab86b8) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##           release-4.0     #1219   +/-   ##
=============================================
  Coverage       100.00%   100.00%           
=============================================
  Files              163       163           
  Lines             6994      6994           
=============================================
  Hits              6994      6994           
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
plantcv/plantcv/threshold/threshold_methods.py 100.00% <100.00%> (ø)

@nfahlgren nfahlgren added this to Pull Requests in PlantCV4 via automation Jul 6, 2023
@nfahlgren nfahlgren merged commit 36ab769 into release-4.0 Jul 6, 2023
5 of 6 checks passed
PlantCV4 automation moved this from Pull Requests to Done Jul 6, 2023
@nfahlgren nfahlgren deleted the release-4.0-texture-max-val branch July 6, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
PlantCV4
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants