-
Notifications
You must be signed in to change notification settings - Fork 521
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
ENH: Add loadable warning in case of loading failure #7163
base: main
Are you sure you want to change the base?
ENH: Add loadable warning in case of loading failure #7163
Conversation
Thanks for the contribution 🙏 Could you provide more details regarding the workflow that required you to explicitly set the My understanding is that the Slicer/Modules/Scripted/DICOMLib/DICOMBrowser.py Lines 561 to 575 in 3f64c37
Footnotes |
I agree that it could be useful to provide a mechanism to determine result of a loading, but We could specify new properties in the loadable, such as @cpoetteCertis Could you write a bit more about your use case? What information do you need and what do you do with it? |
Dear All, Both solutions seems suitable for us! Here are more details: The problem is that currently we have no information about the loading state. Thanks to this modification, we simply check if the warning message is empty (success) or not empty (failure or issue while loading). If it is not empty, we do checks to know if a node has been created or not... But with your suggestions, it could be much easier! |
@jcfr do you have any preference (add a list argument that is updated with loading status; add properties to each loadable object)? |
The loadable warning flag can be used to manage loading failure if not empty