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+1] Fix length validation of DS values #1633

Merged
merged 2 commits into from Apr 18, 2022

Conversation

mrbean-bremen
Copy link
Member

@mrbean-bremen mrbean-bremen commented Apr 14, 2022

Tasks

  • Unit tests added that reproduce the issue or prove feature is working
  • Fix or feature added
  • Code typed and mypy shows no errors
  • Unit tests passing and overall coverage the same or better

@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #1633 (33132e5) into master (98ac887) will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1633      +/-   ##
==========================================
+ Coverage   97.57%   97.67%   +0.10%     
==========================================
  Files          66       66              
  Lines       10666    10666              
==========================================
+ Hits        10407    10418      +11     
+ Misses        259      248      -11     
Impacted Files Coverage Δ
pydicom/valuerep.py 99.53% <100.00%> (+0.15%) ⬆️
pydicom/filewriter.py 98.06% <0.00%> (+0.24%) ⬆️
pydicom/filereader.py 94.62% <0.00%> (+0.25%) ⬆️
pydicom/uid.py 100.00% <0.00%> (+1.09%) ⬆️
pydicom/filebase.py 99.19% <0.00%> (+1.61%) ⬆️

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

@mrbean-bremen mrbean-bremen changed the title Fix length validation of DS values [MRG] Fix length validation of DS values Apr 14, 2022
@darcymason darcymason changed the title [MRG] Fix length validation of DS values [MRG+1] Fix length validation of DS values Apr 14, 2022
- use str() instead of repr() for validation -
  this uses the original string if available
- fixes pydicom#1632
@darcymason darcymason merged commit 9aaaa24 into pydicom:master Apr 18, 2022
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.

OverflowError "VR of 'DS' must be <= 16 characters long" triggered when element is 16 characters long
2 participants