INNER CODE UNIT · Python

PyaniScriptException

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

class PyaniScriptException(Exception):

    """General exception for pyani.py script."""

    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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…