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

Hsi filename pattern matching #916

Merged
merged 12 commits into from
Jul 7, 2022
Merged

Conversation

HaleySchuhl
Copy link
Contributor

@HaleySchuhl HaleySchuhl commented Jun 29, 2022

Describe your changes
Updates the pcv.hyperspectral.read_data.py file to introduce a new method to handle pattern matching between data and header filenames.

Type of update
Is this a:

  • feature enhancement

Associated issues
Issue #915

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 enhancement Enhancements to existing features label Jun 29, 2022
@HaleySchuhl HaleySchuhl self-assigned this Jun 29, 2022
@HaleySchuhl HaleySchuhl added the work in progress Mark work in progress label Jun 30, 2022
@nfahlgren nfahlgren added this to In progress in PlantCV3 via automation Jun 30, 2022
@nfahlgren nfahlgren modified the milestone: PlantCV v3.14.1 Jun 30, 2022
@codecov
Copy link

codecov bot commented Jul 1, 2022

Codecov Report

Merging #916 (29dda17) into master (deb0ffd) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #916   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          141       141           
  Lines         6000      6011   +11     
=========================================
+ Hits          6000      6011   +11     
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/read_data.py 100.00% <100.00%> (ø)

remove white space, split on "=" or ":" and remove whitespace from keys to match new strings
@HaleySchuhl HaleySchuhl added ready to review and removed work in progress Mark work in progress labels Jul 6, 2022
@nfahlgren nfahlgren self-assigned this Jul 7, 2022
Two line returns between functions and one blank line at the end of a file
Copy link
Member

@nfahlgren nfahlgren left a comment

Choose a reason for hiding this comment

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

Look great @HaleySchuhl! I tested trying to "break" the hdr file and the only thing that did it was using tabs instead of spaces. But I don't think we need to worry about that possibility now, until we see some data like that (if ever).

@nfahlgren nfahlgren merged commit 013e5a5 into master Jul 7, 2022
PlantCV3 automation moved this from In progress to Done Jul 7, 2022
@nfahlgren nfahlgren deleted the hsi_filename_pattern_matching branch July 7, 2022 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancements to existing features ready to review
Projects
No open projects
PlantCV3
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants