-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
2ab9825
to
349f364
Compare
Tiny conflict and then ready to test! |
349f364
to
672099d
Compare
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 |
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). |
Is it possible to get deid supporting pydicom v3 please? |
Why are the requirements changed like this?
|
What you can do is remove or change the pins and then run tests, and fix any issues that arise. |
Ok, I can't add commits to someone else's branch, but I can confirm the tests pass with numpy v2 after making the required changes:
|
@sammaxwellxyz are you able and willing to update the PR with those changes? |
Thanks @sammaxwellxyz, either of those options work for me. @howff, you can fork and PR if you want this change imminently. Otherwise, we can wait for @sammaxwellxyz to finish the work here. |
Thank you for this work @sammaxwellxyz - I have finished up the PR in #273 with a slightly different design to import the |
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
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