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

Make DICOMweb assetstore imports compatible with Girder generics #1504

Merged
merged 9 commits into from
Apr 25, 2024

Conversation

willdunklin
Copy link
Contributor

This PR adds switches the implementation of dicomweb assetstore imports away from the custom defined Resource methods to be interoperable with other Girder AssetstoreAdapters.

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

@willdunklin willdunklin requested review from psavery and manthey April 10, 2024 20:36
Copy link
Collaborator

@psavery psavery left a 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?

@@ -69,6 +69,7 @@ def prerelease_local_scheme(version):
install_requires=[
f'large-image{limit_version}',
'wsidicom>=0.9.0',
'girder>=3.2.3',
Copy link
Collaborator

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?

Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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?

Copy link
Contributor Author

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

@manthey manthey merged commit 3b59156 into girder:master Apr 25, 2024
14 checks passed
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.

3 participants