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

Add wavelength means Observation to analyze_spectral function #964

Merged
merged 7 commits into from
Oct 11, 2022

Conversation

HaleySchuhl
Copy link
Contributor

@HaleySchuhl HaleySchuhl commented Oct 4, 2022

Describe your changes
There was duplicate observations of global standard deviation within the pcv.hyperspectral.analyze_spectral function when we probably intended to include the wavelength averages calculated earlier in the function and then plotted out. This PR resolves these bugs and renamed the variable to be more accurate throughout the function.

Type of update
Is this a:

  • Bug fix
  • New feature or feature enhancement

Associated issues

Additional context
Add any other context about the problem here.

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

@HaleySchuhl HaleySchuhl added the bugfix Bug fixes label Oct 4, 2022
@HaleySchuhl HaleySchuhl added this to the PlantCV v3.14.2 milestone Oct 4, 2022
@HaleySchuhl HaleySchuhl self-assigned this Oct 4, 2022
@HaleySchuhl HaleySchuhl added this to In progress in PlantCV3 via automation Oct 4, 2022
@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Merging #964 (5691e90) into main (6e972dc) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              main      #964    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          141       129    -12     
  Lines         6011      5813   -198     
==========================================
- Hits          6011      5813   -198     
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/hyperspectral/analyze_spectral.py 100.00% <100.00%> (ø)
plantcv/plantcv/transform/__init__.py
plantcv/learn/__init__.py
plantcv/plantcv/spectral_index/__init__.py
plantcv/plantcv/morphology/__init__.py
plantcv/plantcv/roi/__init__.py
plantcv/plantcv/__init__.py
plantcv/plantcv/threshold/__init__.py
plantcv/utils/__init__.py
plantcv/plantcv/photosynthesis/__init__.py
... and 3 more

@nfahlgren nfahlgren merged commit c3b0578 into main Oct 11, 2022
PlantCV3 automation moved this from In progress to Done Oct 11, 2022
@nfahlgren nfahlgren deleted the add_wavelength_avg_analyze_spectral branch October 11, 2022 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
PlantCV3
  
Done
Development

Successfully merging this pull request may close these issues.

hyperspectral.analyze_spectral function needs mean reflectance
2 participants