switch_model/wecc/get_inputs/register_post_process.py
def register_post_process(
    msg=None,
):
    """
    Decorator that should be used to register a post-processing step.

    @param msg The message to display while running this step.
    @param enabled Whether we should be using this step.
    @param name Name of the post processing step and of the config section
    @param only_with_config if True the step will only run if 'name' exists in the config file
    @param priority 0 is highest priority (runs first) and larger numbers are lower priority.
    """

    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            message = msg
            if message is None:
                message = f"Running {func.__name__}"
            print(f"\t{message}...")
            func(*args, **kwargs)

        return wrapper

    return decorator

    Decorator that should be used to register a post-processing step.

    @param msg The message to display while running this step.
    @param enabled Whether we should be using this step.
    @param name Name of the post processing step and of the config section
    @param only_with_config if True the step will only run if 'name' exists in the config file
    @param priority 0 is highest priority (runs first) and larger numbers are lower priority.
    
Decorator that should be used to register a post-processing step.
@param msg The message to display while running this step.
@param enabled Whether we should be using this step.
@param name Name of the post processing step and of the config section
@param only_with_config if True the step will only run if 'name' exists in the config file
@param priority 0 is highest priority (runs first) and larger numbers are lower priority.
Decorator that should be used to register a post - processing step . @param msg The message to display while running this step . @param enabled Whether we should be using this step . @param name Name of the post processing step and of the config section @param only_with_config if True the step will only run if ' name ' exists in the config file @param priority 0 is highest priority ( runs first ) and larger numbers are lower priority .
def register_post_process(
    msg=None,
):
    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            message = msg
            if message is None:
                message = f"Running {func.__name__}"
            print(f"\t{message}...")
            func(*args, **kwargs)
        return wrapper
    return decorator
def register_post_process ( msg = None , ) : def decorator ( func ) : @ wraps ( func ) def wrapper ( * args , ** kwargs ) : message = msg if message is None : message = f"Running {func.__name__}" print ( f"\t{message}..." ) func ( * args , ** kwargs ) return wrapper return decorator
Decorator that should be used to register a post-processing step.
Decorator that should be used to register a post - processing step .
"""
    Decorator that should be used to register a post-processing step.

    @param msg The message to display while running this step.
    @param enabled Whether we should be using this step.
    @param name Name of the post processing step and of the config section
    @param only_with_config if True the step will only run if 'name' exists in the config file
    @param priority 0 is highest priority (runs first) and larger numbers are lower priority.
    """
msg