switch_model/utilities/load_data.py
def register_component_for_loading(component, input_file, input_column, input_optional, **kwargs):
    """
    Adds a component to the mapping
    """
    # By default an input is optional if there is a default for that input already specified
    if input_optional is None:
        input_optional = "default" in kwargs

    # Add the column and optional parameters to the component
    component.input_column = input_column
    component.input_optional = input_optional

    # Add the component to the mapping
    if input_file not in _registered_components:
        _registered_components[input_file] = [component]
    else:
        _registered_components[input_file].append(component)

    Adds a component to the mapping
    
Adds a component to the mapping
Adds a component to the mapping
def register_component_for_loading(component, input_file, input_column, input_optional, **kwargs):
    if input_optional is None:
        input_optional = "default" in kwargs
    component.input_column = input_column
    component.input_optional = input_optional
    if input_file not in _registered_components:
        _registered_components[input_file] = [component]
    else:
        _registered_components[input_file].append(component)
def register_component_for_loading ( component , input_file , input_column , input_optional , ** kwargs ) : if input_optional is None : input_optional = "default" in kwargs component . input_column = input_column component . input_optional = input_optional if input_file not in _registered_components : _registered_components [ input_file ] = [ component ] else : _registered_components [ input_file ] . append ( component )
Adds a component to the mapping
Adds a component to the mapping
"""
    Adds a component to the mapping
    """ # By default an input is optional if there is a default for that input already specified # Add the column and optional parameters to the component # Add the component to the mapping
component
input_file
input_column
input_optional