Skip to content

Conversation

HaleySchuhl
Copy link
Contributor

@HaleySchuhl HaleySchuhl commented Feb 9, 2024

bug fix to add padding when image widths unequal

Describe your changes
A clear and concise description of what changes are made by this pull request.
What was the previous functionality (if relevant) and what can we do now with
these changes.

Type of update
Is this a:

  • Bug fix
  • Work in progress

Associated issues
Reference associated issue numbers. Does this pull request close any 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

bug fix to add padding when image widths unequal
@HaleySchuhl HaleySchuhl added bugfix Bug fixes work in progress Mark work in progress labels Feb 9, 2024
@HaleySchuhl HaleySchuhl self-assigned this Feb 9, 2024
remove print statement and 3 images to stack-->leave as list
Copy link

codecov bot commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (776823a) 99.98% compared to head (6ad1a09) 99.98%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1451   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         158      158           
  Lines        6975     6983    +8     
=======================================
+ Hits         6974     6982    +8     
  Misses          1        1           
Flag Coverage Δ
unittests 99.98% <100.00%> (+<0.01%) ⬆️

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

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

... and 1 file with indirect coverage changes

deepsource fixes like whitespace and rename l to sub_imgs
deepsource line too long
@HaleySchuhl HaleySchuhl added this to the PlantCV v4.3 milestone Feb 9, 2024
@HaleySchuhl HaleySchuhl removed the work in progress Mark work in progress label Feb 9, 2024
@HaleySchuhl
Copy link
Contributor Author

Noah is busy this afternoon so @k034b363 could you review this PR? Specific dimensions, example below, of images was causing unequal width dimensions but the bugfix pads the smaller image(s) so they can get concatenated.

crop_img = pcv.crop(img=img, w=786, h=1048, x=0, y=0)

@annacasto annacasto self-requested a review February 9, 2024 20:36
@nfahlgren nfahlgren merged commit 84309ac into main Feb 9, 2024
@nfahlgren nfahlgren deleted the visualize_colorspaces_size_concat_bugfix branch February 9, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bug fixes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants