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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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.
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 (2efb747).
Report is 3 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
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.

2 participants