-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
IO factory registration for Python modules #2233
Comments
Perhaps in one of the other
Then, call |
Another possibility is to use ITK's dynamic loading of shared libraries which contain the "itkLoad" method for factory registration. Here is a PR related to generating the required code for factories (ImageIO only?) with CMake: |
For performance reasons, we do not want to load all possible shared libraries. |
If the installation structure is such that the libraries with dynamic "itkLoad" methods are in one path/location this could be overcome. However, this may not be the best solution for the issue above, just presenting an option. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Did we decide not to do this? When custom IO is required, it needs to be specified in the |
We should still add this support so the io is not required to be passed to |
Revisiting this issue as it is especially relevant with FFT factories being added in #2836 which do not have an extra Reader/Writer class to typically handle default registration. Will investigate additional code injection in |
Proposing that we bump this to a later milestone than ITK 5.3. This issue has merit but depends on factory synchronization in #2909 / #3071 which is not yet merged. Will require nontrivial changes to Python module loading and dependency checks, including new field(s) in Ideally if ITK remote modules register factories to the base object factory list on load, then a workaround for this is to include an This issue certainly still has merit and can be pursued in a |
@thewtex Are you taking this one on for 5.3 or still bumped to 5.4? |
@tbirdso looking at this for 5.3 since it impacts another issue reported in Slicer. |
🎉 |
Description
Automatically register remote module IOs for regular image reading and writing in Python.
Expected behavior
pip install itk-scanco
Actual behavior
pip install itk-scanco
Additional Information
Starting point for investigation:
ITK/Wrapping/Generators/Python/itk/support/itkExtras.py
Lines 675 to 678 in 7f36e8e
The text was updated successfully, but these errors were encountered: