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

Ensure filename remains set for later saving in sample_info #2747

Merged
merged 5 commits into from Jan 24, 2024

Conversation

nvoxland-al
Copy link
Contributor

@nvoxland-al nvoxland-al commented Jan 19, 2024

🚀 🚀 Pull Request

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

When a new image is added and it does not fit in a sample compressed chunk, the filename gets lots from the sample_info.

This ensures the filename remains set on the Sample object for later use by the sample_info tensor

Things to be aware of

We had to remove the logic from sample.py that uses the path as the compressed data if it exists now that we're better setting the path. No tests are failing from the change, so it seems like a needed change to that code

Things to worry about

Nothing

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ac1c471) 84.50% compared to head (0abc327) 79.22%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2747      +/-   ##
==========================================
- Coverage   84.50%   79.22%   -5.28%     
==========================================
  Files         233      233              
  Lines       26458    26459       +1     
==========================================
- Hits        22358    20963    -1395     
- Misses       4100     5496    +1396     
Flag Coverage Δ
unittests 79.22% <100.00%> (-5.28%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Jan 23, 2024

@nvoxland-al nvoxland-al merged commit 15fba0c into main Jan 24, 2024
7 of 12 checks passed
@nvoxland-al nvoxland-al deleted the missing_sample_info_filename branch January 24, 2024 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants