-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add a mechanism for users to know the availability of cucim.CuImage #107
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.
LGTM. Thanks, @gigony
4c01ac2
to
4d87631
Compare
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.
Thanks Gigon! 😄
Looks good. Had one question above
except ImportError: | ||
from ._version import get_versions | ||
__version__ = get_versions()['version'] | ||
del get_versions | ||
del _version | ||
|
||
|
||
def is_available(module_name: str = "") -> bool: |
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.
Should we add a test for this function?
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.
Thanks for the feedback!
Added unit tests in the latest patch.
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.
LGTM. Thanks Gigon! 😄
@jakirkham Conda-related CI/CD failure happens again here. |
Are we sure it is Conda related? Looks like it happens part way through the build. Please see snippet below:
|
Would recommend increasing verbosity from |
d46d49f
to
b4181d9
Compare
Looks like the failure is because #106 is merged. LINE 1123
Will rebase this on top of the latest change. |
@gpucibot merge |
cucim.is_available()
methodUsers can query if a specific module is available or not.
For example, if cucim.clara module which requires C shared library is not available:
Resolves #104
Supports Project-MONAI/MONAI#2987