src/orion/core/utils/backward.py
def populate_space(config, force_update=True):
    """Add the space definition at the root of config."""
    if "space" in config and not force_update:
        return

    populate_priors(config["metadata"])
    # Overwrite space to make sure to include changes from user_args
    if "priors" in config["metadata"]:
        log.debug("Updating space for backward compatibility")
        log.debug(pprint.pformat(config["metadata"]["priors"]))
        config["space"] = config["metadata"]["priors"]
Add the space definition at the root of config.
Add the space definition at the root of config.
Add the space definition at the root of config .
def populate_space(config, force_update=True):
    if "space" in config and not force_update:
        return
    populate_priors(config["metadata"])
    if "priors" in config["metadata"]:
        log.debug("Updating space for backward compatibility")
        log.debug(pprint.pformat(config["metadata"]["priors"]))
        config["space"] = config["metadata"]["priors"]
def populate_space ( config , force_update = True ) : if "space" in config and not force_update : return populate_priors ( config [ "metadata" ] ) if "priors" in config [ "metadata" ] : log . debug ( "Updating space for backward compatibility" ) log . debug ( pprint . pformat ( config [ "metadata" ] [ "priors" ] ) ) config [ "space" ] = config [ "metadata" ] [ "priors" ]
Add the space definition at the root of config.
Add the space definition at the root of config .
"""Add the space definition at the root of config.""" # Overwrite space to make sure to include changes from user_args
config
force_update