audio_zen/utils.py
def prepare_empty_dir(dirs, resume=False):
    """
    if resume the experiment, assert the dirs exist. If not the resume experiment, set up new dirs.

    Args:
        dirs (list): directors list
        resume (bool): whether to resume experiment, default is False
    """
    for dir_path in dirs:
        if resume:
            assert dir_path.exists(), "In resume mode, you must be have an old experiment dir."
        else:
            dir_path.mkdir(parents=True, exist_ok=True)

    if resume the experiment, assert the dirs exist. If not the resume experiment, set up new dirs.

    Args:
        dirs (list): directors list
        resume (bool): whether to resume experiment, default is False
    
if resume the experiment, assert the dirs exist. If not the resume experiment, set up new dirs.
if resume the experiment assert the dirs exist . If not the resume experiment set up new dirs .
def prepare_empty_dir(dirs, resume=False):
    for dir_path in dirs:
        if resume:
            assert dir_path.exists(), "In resume mode, you must be have an old experiment dir."
        else:
            dir_path.mkdir(parents=True, exist_ok=True)
def prepare_empty_dir ( dirs , resume = False ) : for dir_path in dirs : if resume : assert dir_path . exists ( ) , "In resume mode, you must be have an old experiment dir." else : dir_path . mkdir ( parents = True , exist_ok = True )
if resume the experiment, assert the dirs exist.
if resume the experiment assert the dirs exist .
"""
    if resume the experiment, assert the dirs exist. If not the resume experiment, set up new dirs.

    Args:
        dirs (list): directors list
        resume (bool): whether to resume experiment, default is False
    """
dirs
None
resume
whether to resume experiment, default is False
whether to resume experiment default is False