-
Notifications
You must be signed in to change notification settings - Fork 245
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
SlicerBrainParcellation275.json #2113
base: main
Are you sure you want to change the base?
Conversation
This will be great, thank you for your contribution! I've tried to use your module but it failed to load, with this error:
The issue is that in the module .py file (BrainSegmentation.py) you can only import Python modules at the file level that are built-in Python modules or they are in packages that are bundled with Slicer. In your Slicer module you can install any packages that you need later, and then import them inside functions or in Python modules (for example, in your Specifically, these imports needs to go:
Since many extensions use pytorch, it is a huge package, and its installation is not trivial, it has to be installed via the SlicerPytorch extension. See a complete example here: https://github.com/lassoan/SlicerTotalSegmentator/blob/c4144875e600705f4c4b30a44b49d05d27ffb757/TotalSegmentator/TotalSegmentator.py#L757-L776 A few more small comments:
|
Thank you for your feedback. I will look into the issue you encountered. |
Let us know if you have completed your revisions and your extension is ready for review. |
New extension
3d-slicer-extension
GitHub topic so that it is listed here. To edit topics, click the settings icon in the right side of "About" section header and enter3d-slicer-extension
in "Topics" and click "Save changes". To learn more about topics, read https://help.github.com/en/articles/about-topicsSettings
and in repository settings uncheckWiki
,Projects
, andDiscussions
(if they are currently not used)About
in the top-right corner of the repository main page and uncheckReleases
andPackages
(if they are currently not used)