src/orion/core/utils/backward.py
def update_user_args(metadata):
    """Make sure user script is not removed from metadata"""
    if (
        "user_script" in metadata
        and metadata["user_script"] not in metadata["user_args"]
    ):
        log.debug("Updating user_args for backward compatibility")
        metadata["user_args"] = [metadata["user_script"]] + metadata["user_args"]
        log.debug(pprint.pformat(metadata["user_args"]))
Make sure user script is not removed from metadata
Make sure user script is not removed from metadata
Make sure user script is not removed from metadata
def update_user_args(metadata):
    if (
        "user_script" in metadata
        and metadata["user_script"] not in metadata["user_args"]
    ):
        log.debug("Updating user_args for backward compatibility")
        metadata["user_args"] = [metadata["user_script"]] + metadata["user_args"]
        log.debug(pprint.pformat(metadata["user_args"]))
def update_user_args ( metadata ) : if ( "user_script" in metadata and metadata [ "user_script" ] not in metadata [ "user_args" ] ) : log . debug ( "Updating user_args for backward compatibility" ) metadata [ "user_args" ] = [ metadata [ "user_script" ] ] + metadata [ "user_args" ] log . debug ( pprint . pformat ( metadata [ "user_args" ] ) )
Make sure user script is not removed from metadata
Make sure user script is not removed from metadata
"""Make sure user script is not removed from metadata"""
metadata