def load_parameter_file(file_path, name = ''):
    """
    Load parameters from a YAML file (or a directory containing YAML files).

    :returns: An instance of :any:`ParameterNode` or :any:`Scale` or :any:`Parameter`.
    """
    if not os.path.exists(file_path):
        raise ValueError("{} doest not exist".format(file_path))
    if os.path.isdir(file_path):
        return ParameterNode(name, directory_path = file_path)
    data = _load_yaml_file(file_path)
    return _parse_child(name, data, file_path)
def load_parameter_file ( file_path , name = '' ) : if not os . path . exists ( file_path ) : raise ValueError ( "{} doest not exist" . format ( file_path ) ) if os . path . isdir ( file_path ) : return ParameterNode ( name , directory_path = file_path ) data = _load_yaml_file ( file_path ) return _parse_child ( name , data , file_path )
Load parameters from a YAML file (or a directory containing YAML files).

    :returns: An instance of :any:`ParameterNode` or :any:`Scale` or :any:`Parameter`.