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

[MRG] Add download flag for get_testdata_file #1617

merged 7 commits into from Mar 22, 2022


Copy link

Describe the changes

Allow specifying the download=False flag for get_testdata_file to make sure the function doesn't send any network requests.


  • Unit tests added that reproduce the issue or prove feature is working
  • Fix or feature added
  • Code typed and mypy shows no errors
  • Documentation updated (if relevant)
    • No warnings during build
    • Preview link (CircleCI -> Artifacts -> doc/_build/html/index.html)
  • Unit tests passing and overall coverage the same or better

pydicom/data/ Outdated Show resolved Hide resolved
pydicom/tests/ Outdated Show resolved Hide resolved
Copy link

codecov bot commented Mar 16, 2022

Codecov Report

Merging #1617 (1d6c7d0) into master (07aea31) will decrease coverage by 9.41%.
The diff coverage is 86.66%.

@@            Coverage Diff             @@
##           master    #1617      +/-   ##
- Coverage   97.56%   88.14%   -9.42%     
  Files          66       66              
  Lines       10646    10420     -226     
- Hits        10387     9185    -1202     
- Misses        259     1235     +976     
Impacted Files Coverage Δ
pydicom/data/ 84.61% <85.71%> (-15.39%) ⬇️
pydicom/sr/ 100.00% <100.00%> (ø)
pydicom/pixel_data_handlers/ 17.93% <0.00%> (-82.07%) ⬇️
pydicom/waveforms/ 20.31% <0.00%> (-79.69%) ⬇️
pydicom/encoders/ 20.96% <0.00%> (-75.81%) ⬇️
pydicom/pixel_data_handlers/ 27.14% <0.00%> (-72.86%) ⬇️
pydicom/pixel_data_handlers/ 26.22% <0.00%> (-66.46%) ⬇️
pydicom/overlays/ 35.18% <0.00%> (-64.82%) ⬇️
pydicom/pixel_data_handlers/ 31.73% <0.00%> (-64.43%) ⬇️
pydicom/pixel_data_handlers/ 36.97% <0.00%> (-63.03%) ⬇️
... and 17 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Copy link

pep8speaks commented Mar 17, 2022

Hello @orsinium! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-03-22 06:58:19 UTC

Copy link

@mrbean-bremen mrbean-bremen left a comment

Choose a reason for hiding this comment

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

Thanks! Didn't you remove that ignore to shut up the type checker, or have I dreamed this?

Copy link
Contributor Author

Didn't you remove that ignore to shut up the type checker, or have I dreamed this?

I don't remember 🙃 But I can do it, why not.

@mrbean-bremen mrbean-bremen changed the title Add download flag for get_testdata_file [MRG] Add download flag for get_testdata_file Mar 20, 2022
Copy link

I don't remember 🙃 But I can do it, why not.

Just noticed that this was actually done in another PR... but thanks!

@darcymason - can you have a quick look?

@mrbean-bremen mrbean-bremen merged commit b1d404a into pydicom:master Mar 22, 2022
@orsinium orsinium deleted the get_testdata_file branch March 22, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

4 participants