-
Notifications
You must be signed in to change notification settings - Fork 43
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
Make DICOMweb assetstore imports compatible with Girder generics #1504
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't try it, but overall it looks good to me. The only thing that we might should change is remove the girder
install dependency?
sources/dicom/setup.py
Outdated
@@ -69,6 +69,7 @@ def prerelease_local_scheme(version): | |||
install_requires=[ | |||
f'large-image{limit_version}', | |||
'wsidicom>=0.9.0', | |||
'girder>=3.2.3', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manthey I think you set up this package so that girder should be an optional dependency, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We really do not want girder as a core dependency. It is already an extras dependency transitively with the girder
extra and girder-large-image
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've moved the requirement to be in the extras_require
for 'girder'
, does this properly address the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add it so it only does this if we are on Python >= 3.9, since the dicomweb plugin isn't available in 3.8?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I've added a conditional requirement append now. Let me know if that was what you were describing
This PR adds switches the implementation of dicomweb assetstore imports away from the custom defined
Resource
methods to be interoperable with other GirderAssetstoreAdapters
.Moving the code to
DICOMwebAssetstoreAdapter
means girder can utilize its normal assetstore adapter polymorphism, which removes the need for dicomweb methods written to re-implement girder functionality.These changes rely on the following PRs, which have been merged into girder:
girder/girder#3526
girder/girder#3527