INNER CODE UNIT · Python

module_name

ALW1EZ/PANO · transforms/__init__.py:26

            module_name = filename[:-3]  # Remove .py extension
            module = importlib.import_module(f'.{module_name}', package='transforms')
            
            # Find all Transform subclasses in the module
            for name, obj in inspect.getmembers(module):
                if (inspect.isclass(obj) and issubclass(obj, Transform) 
                    and obj != Transform and not inspect.isabstract(obj)
                    and obj not in loaded_transform_classes):
                    
                    # Add to loaded classes set
                    loaded_transform_classes.add(obj)
                    
                    # Create instance and add to transforms list
                    transform_instance = obj()
                    TRANSFORMS.append(transform_instance)
                    
                    # Map transforms to their input entity types
                    for input_type in transform_instance.input_types:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…