contextnet/utils/utils.py
def parse_master_yaml(yaml_path):
    """
    Imports master yaml and converts paths to make the usable from inside the script

    Parameters
    ----------
    yaml_path : str
        path to master yaml from the script

    Returns
    -------
    lists : dict of list of str
        dict with lists pf converted paths
    """
    with open(yaml_path, "r") as file:
        lists = yaml.safe_load(file)

    for list_type, paths_list in lists.items():
        new_paths_list = []
        for path in paths_list:
            new_path = os.path.join(os.path.dirname(yaml_path), path)
            new_path = os.path.normpath(new_path)
            new_paths_list.append(new_path)
        lists[list_type] = new_paths_list

    return lists

    Imports master yaml and converts paths to make the usable from inside the script

    Parameters
    ----------
    yaml_path : str
        path to master yaml from the script

    Returns
    -------
    lists : dict of list of str
        dict with lists pf converted paths
    
Imports master yaml and converts paths to make the usable from inside the script
Parameters

yaml_path : str
path to master yaml from the script

Returns

lists : dict of list of str
dict with lists pf converted paths
Imports master yaml and converts paths to make the usable from inside the script Parameters yaml_path : str path to master yaml from the script Returns lists : dict of list of str dict with lists pf converted paths
def parse_master_yaml(yaml_path):
    with open(yaml_path, "r") as file:
        lists = yaml.safe_load(file)
    for list_type, paths_list in lists.items():
        new_paths_list = []
        for path in paths_list:
            new_path = os.path.join(os.path.dirname(yaml_path), path)
            new_path = os.path.normpath(new_path)
            new_paths_list.append(new_path)
        lists[list_type] = new_paths_list
    return lists
def parse_master_yaml ( yaml_path ) : with open ( yaml_path , "r" ) as file : lists = yaml . safe_load ( file ) for list_type , paths_list in lists . items ( ) : new_paths_list = [ ] for path in paths_list : new_path = os . path . join ( os . path . dirname ( yaml_path ) , path ) new_path = os . path . normpath ( new_path ) new_paths_list . append ( new_path ) lists [ list_type ] = new_paths_list return lists
Imports master yaml and converts paths to make the usable from inside the script
Parameters
Imports master yaml and converts paths to make the usable from inside the script Parameters
"""
    Imports master yaml and converts paths to make the usable from inside the script

    Parameters
    ----------
    yaml_path : str
        path to master yaml from the script

    Returns
    -------
    lists : dict of list of str
        dict with lists pf converted paths
    """
yaml_path