-
Notifications
You must be signed in to change notification settings - Fork 257
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
Generalize photosynthesis filenaming #984
Generalize photosynthesis filenaming #984
Conversation
Codecov Report
@@ Coverage Diff @@
## release-4.0 #984 +/- ##
=============================================
Coverage 100.00% 100.00%
=============================================
Files 171 171
Lines 7528 7540 +12
=============================================
+ Hits 7528 7540 +12
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.
Hi @wurDevTim thanks for opening this PR. The code looks good, but the additional functionality at L78 - L80 and L121-L123 are not getting hit by the new test. Also a clarification sentence added to the documentation for photosynthesis_read_cropreporter
would be good too!
@HaleySchuhl, I see, to hit those lines I have to add testdata from our cropreporter (the new file format). |
@wurDevTim pretty much any name you'd like! |
@HaleySchuhl Added the files by making subfolders for the different cropreporter versions. Also updated the docs, let me know if there are any other things you like me to change. |
After quite some mails back and forth to phenovation we figured out that when 'SaveAllFrames' is set to '0' it only returns 3 frames: However, the framelabels are not updated. therefore the code below tries to set frame labels to frames which don't exist:
To make plantcv robust against this bug I changed the code to:
|
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.
Hi @wurDevTim, sorry for the long delay. I think this looks great, I just have a few suggestions for simplifying the code a bit
Tests were updated to achieve 100% coverage
Describe your changes
Phenovation changed the naming convention over time. Some small changes where made to add support for the new files.
The new code is tested with data from both new and old cropreporters.
Type of update
Is this an update of the cropreporter filenaming to make the OJIP analysis work with old and new cropreporters.
Associated issues
#978
Additional context
The current git only contains files which uses the 'old' metadata format.
I have some test images with the new format, who can send these to? Or where to upload?
Maybe also add a test for these new files?
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.yml
updating.md