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 metadata method #1375

Merged
merged 48 commits into from
Dec 23, 2023
Merged

Add metadata method #1375

merged 48 commits into from
Dec 23, 2023

Conversation

HaleySchuhl
Copy link
Contributor

@HaleySchuhl HaleySchuhl commented Oct 17, 2023

Describe your changes
Add method add_metadata to the Outputs class. Allow storage of metadata that is known for the dataset, but is not part of the filename.

Type of update
Is this a:

  • New feature or feature enhancement
  • Work in progress

Associated issues
closes #1368
closes #490

Additional context
Hopefully compliant with plantcv-run-workflow and json output, but also integrate with outformat="csv" for the plantcv users doing medium throughput analysis in jupyter notebooks.

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 new feature New feature ideas and solutions work in progress Mark work in progress update Updates an existing feature/method labels Oct 17, 2023
@HaleySchuhl HaleySchuhl added this to the PlantCV v4.1 milestone Oct 17, 2023
@HaleySchuhl HaleySchuhl added this to Pull Requests in PlantCV4 via automation Oct 17, 2023
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1caf381) 100.00% compared to head (463d1f9) 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main     #1375   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          158       158           
  Lines         6925      6944   +19     
=========================================
+ Hits          6925      6944   +19     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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

Files Coverage Δ
plantcv/plantcv/classes.py 100.00% <100.00%> (ø)

HaleySchuhl and others added 13 commits November 14, 2023 08:40
fix header
add metadata to other instances of CSV writing & typo metat fix
values is plural
change syntax so we have a list of strings and not a dictionary
combine lists to make header differently ?
combine lists with +
only add to list, not in zip
deepsource issues
specific unit test?
misunderstood what i was slicing
@HaleySchuhl HaleySchuhl added ready to review and removed work in progress Mark work in progress labels Nov 16, 2023
@HaleySchuhl HaleySchuhl self-assigned this Nov 16, 2023
@nfahlgren nfahlgren linked an issue Dec 23, 2023 that may be closed by this pull request
@nfahlgren nfahlgren merged commit 7c7b4ec into main Dec 23, 2023
6 checks passed
PlantCV4 automation moved this from Pull Requests to Done Dec 23, 2023
@nfahlgren nfahlgren deleted the add_metadata_method branch December 23, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature ideas and solutions ready to review update Updates an existing feature/method
Projects
PlantCV4
  
Done
Development

Successfully merging this pull request may close these issues.

Create new Outputs method for "add_metadata" Is it possible to manually add metadata to a non-workflow job?
2 participants