Skip to content

Commit b68b386

Browse files
Simon Ritaxel-grc
authored andcommitted
BUG: Allow auto registering more than two factories in Python modules
If a module had more than two factories (as e.g. RTK), the list was truncated to the first two values which seemed to be arbitrary. (cherry picked from commit 5d6cc19)
1 parent ea28c4c commit b68b386

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Wrapping/Generators/Python/itk/support

Wrapping/Generators/Python/itk/support/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def load_factories(factory_name: str) -> None:
360360
import itk
361361

362362
for module_name, data in itk_base_global_module_data.items():
363-
for name, factory_class_prefix in data.get_module_factories()[:2]:
363+
for name, factory_class_prefix in data.get_module_factories():
364364
if name == factory_name:
365365
# Get the factory, loading new modules with itk_load_swig_module as necessary
366366
namespace = dict()

0 commit comments

Comments
 (0)