(parameters: List[Dict[str, Any]])
return parameter_log_string
Convert a list of params into a string
Convert a list of params into a string
Convert a list of params into a string
def encoder_parameters_into_string(parameters: List[Dict[str, Any]]) -> str:
    """Convert a list of params into a string"""
    mandatory_keys = set(["name", "type", "bounds", "values", "value"])
    parameter_log_string = ""
    for parameter in parameters:
        parameter_log_string += "\n"
        parameter_log_string += f"{parameter['name']}: {parameter['type']}="
        if parameter["type"] == "range":
            parameter_log_string += f"{parameter['bounds']}"
        elif parameter["type"] == "choice":
            parameter_log_string += f"{parameter['values']}"
        elif parameter["type"] == "fixed":
            parameter_log_string += f"{parameter['value']}"

        for key, value in parameter.items():
            if key not in mandatory_keys:
                parameter_log_string += f", {key} = {value}"
    return parameter_log_string
def encoder_parameters_into_string ( parameters : List [ Dict [ str , Any ] ] ) -> str : mandatory_keys = set ( [ "name" , "type" , "bounds" , "values" , "value" ] ) parameter_log_string = "" for parameter in parameters : parameter_log_string += "\n" parameter_log_string += f"{parameter['name']}: {parameter['type']}=" if parameter [ "type" ] == "range" : parameter_log_string += f"{parameter['bounds']}" elif parameter [ "type" ] == "choice" : parameter_log_string += f"{parameter['values']}" elif parameter [ "type" ] == "fixed" : parameter_log_string += f"{parameter['value']}" for key , value in parameter . items ( ) : if key not in mandatory_keys : parameter_log_string += f", {key} = {value}" return parameter_log_string