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

Refactor create_seqinfo tiny bit to avoid duplication and add logging; and in tests to reuse list of dicom paths #785

Merged
merged 5 commits into from
Oct 1, 2024

Conversation

yarikoptic
Copy link
Member

Follow up to

…file at module level

I think it is safer to avoid 3rd party library calls at the module import time
since if they are buggy it would be too loud of kaboom. Also it adds CPU time
at import time even if not used later on. So replaced with defining a list
of all DICOMs and then just using that function directly from filename.

This also would run it against more DICOMs as this time we would glob recursively.
@yarikoptic yarikoptic requested a review from bpinsard September 16, 2024 17:20
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.15%. Comparing base (9afeae9) to head (7c24da0).
Report is 21 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #785      +/-   ##
==========================================
+ Coverage   82.13%   82.15%   +0.02%     
==========================================
  Files          42       42              
  Lines        4226     4226              
==========================================
+ Hits         3471     3472       +1     
+ Misses        755      754       -1     

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

Copy link
Contributor

@bpinsard bpinsard left a comment

Choose a reason for hiding this comment

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

apart from missing typing, LGTM

heudiconv/tests/test_dicoms.py Outdated Show resolved Hide resolved
heudiconv/tests/test_dicoms.py Outdated Show resolved Hide resolved
@yarikoptic yarikoptic merged commit 92c49f0 into nipy:master Oct 1, 2024
9 checks passed
@yarikoptic yarikoptic added the patch Increment the patch version when merged label Oct 1, 2024
Copy link

github-actions bot commented Oct 2, 2024

🚀 PR was released in v1.3.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants