INNER CODE UNIT · Python

__init__

widdowquinn/pyani · pyani/scripts/__init__.py:16

    def __init__(self, msg="Error in pyani.py script"):
        """Insantiate exception."""
        Exception.__init__(self, msg)


def make_outdir(outdir: Path, force: bool, noclobber: bool) -> None:
    """Create output directory (allows for force and noclobber).

    :param outdir:  Path, path to output directory
    :param force:  bool, True if an existing directory will be reused
    :param noclobber:  bool, True if existing files are not overwritten

    The intended outcomes are:
    outdir doesn't exist: create outdir
    outdir exists: raise exception
    outdir exists, --force only: remove the directory tree
    outdir exists, --force --noclobber: continue with existing directory tree

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…