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

fix: upgrade to pydicom 3 #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sammaxwellxyz
Copy link
Contributor

@sammaxwellxyz sammaxwellxyz commented Oct 1, 2024

Description

Related issues: #266 #266

Please include a summary of the change(s) and if relevant, any related issues above.
update read_file to dcmread as per suggestion from pydicom 3 release notes https://github.com/pydicom/pydicom/releases/tag/v3.0.0

I couldn't tell if the other changes would cause external breaking changes.

I've run no testing

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • My code follows the style guidelines of this project

Open questions

Questions that require more discussion or to be addressed in future development:
The approach as here https://github.com/pydicom/deid/pull/267/files may be worthwhile as well to avoid a similar case in the future

@sammaxwellxyz sammaxwellxyz force-pushed the fix/pydicom-version branch 2 times, most recently from 2ab9825 to 349f364 Compare October 1, 2024 21:15
@sammaxwellxyz sammaxwellxyz marked this pull request as ready for review October 1, 2024 21:18
@vsoch
Copy link
Member

vsoch commented Oct 2, 2024

Tiny conflict and then ready to test!

@vsoch
Copy link
Member

vsoch commented Oct 2, 2024

Was there possibly a change with private fields?

######################END########################
.............................WARNING Empty values list encountered.  No fields will be identified.
WARNING Empty values list encountered.  No fields will be identified.
.................................
======================================================================
FAIL: test_fieldset_remove_private (test_replace_identifiers.TestDicom.test_fieldset_remove_private)
%fields field_set2_private
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/deid/deid/deid/tests/test_replace_identifiers.py", line 518, in test_fieldset_remove_private
    self.assertTrue("(0009, 0010)" in parser.lookup["field_set2_private"])
AssertionError: False is not true

@vsoch
Copy link
Member

vsoch commented Oct 2, 2024

another idea is to have a set of helper scripts - not integrated into the main client, but optional to install (and support this extra functionality).

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