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

io factory registration python #3156

Commits on Mar 7, 2022

  1. ENH: Load factories in Python at runtime

    Load IO and FFT factories at runtime based on the itk-module.cmake
    FACTORY_NAMES metadata, as is done with C++ static binary
    initialization.
    
    This enables run-time discovery of all Python IO or FFT implementations.
    Some may be added with remote module Python packages.
    
    This also addresses Slicer's use case where Slice is performing
    initialization of IO factories with static initialization. Only
    one static binary initialization is intended to be supported per
    application. Do not perform static binary initialization in the Python
    modules.
    
    FFTImageFilter consolidation was finalized, and the required
    corresponding VnlFFTImageFilterInitFactory and FFTWFFTImageFilterInitFactory
    classes created and wrapped.
    
    Add missing required TransformIO wrappings and refactored recursive
    ITK Python module dependency loading so that enumerated modules defining
    FACTORY_NAMES overrides will be loaded immediately after modules defining a
    corresponding base class.
    
    Co-authored-by: Tom Birdsong <tom.birdsong@kitware.com>
    thewtex and tbirdso committed Mar 7, 2022
    Configuration menu
    Copy the full SHA
    67dbfc1 View commit details
    Browse the repository at this point in the history