pyroSAR/gamma/auxil.py
def process(cmd, outdir=None, logpath=None, inlist=None, void=True):
    """
    wrapper function to execute GAMMA commands via module :mod:`subprocess`
    
    Parameters
    ----------
    cmd: list
        the command line arguments
    outdir: str
        the directory to execute the command in
    logpath: str
        a directory to write logfiles to; the file will be named {GAMMA command}.log, e.g. gc_map.log
    inlist: list
        a list of values, which is passed as interactive inputs via stdin
    void: bool
        return the stdout and stderr messages?
    
    Returns
    -------
    tuple of str or None
        the stdout and stderr messages if void is False, otherwise None
    """
    log = os.path.join(logpath, cmd[0] + '.log') if logpath else None
    out, err = run(cmd, outdir=outdir, logfile=log, inlist=inlist, void=False, errorpass=True)
    gammaErrorHandler(out, err)
    if not void:
        return out, err

    wrapper function to execute GAMMA commands via module :mod:`subprocess`
    
    Parameters
    ----------
    cmd: list
        the command line arguments
    outdir: str
        the directory to execute the command in
    logpath: str
        a directory to write logfiles to; the file will be named {GAMMA command}.log, e.g. gc_map.log
    inlist: list
        a list of values, which is passed as interactive inputs via stdin
    void: bool
        return the stdout and stderr messages?
    
    Returns
    -------
    tuple of str or None
        the stdout and stderr messages if void is False, otherwise None
    
wrapper function to execute GAMMA commands via module :mod:`subprocess`
Parameters

list
the command line arguments
outdir: str
the directory to execute the command in
logpath: str
a directory to write logfiles to; the file will be named {GAMMA command}.log, e.g.

Returns

tuple of str or None
the stdout and stderr messages if void is False, otherwise None
wrapper function to execute GAMMA commands via module : mod : ` subprocess ` Parameters list the command line arguments outdir : str the directory to execute the command in logpath : str a directory to write logfiles to ; the file will be named { GAMMA command } . log e . g . Returns tuple of str or None the stdout and stderr messages if void is False otherwise None
def process(cmd, outdir=None, logpath=None, inlist=None, void=True):
    log = os.path.join(logpath, cmd[0] + '.log') if logpath else None
    out, err = run(cmd, outdir=outdir, logfile=log, inlist=inlist, void=False, errorpass=True)
    gammaErrorHandler(out, err)
    if not void:
        return out, err
def process ( cmd , outdir = None , logpath = None , inlist = None , void = True ) : log = os . path . join ( logpath , cmd [ 0 ] + '.log' ) if logpath else None out , err = run ( cmd , outdir = outdir , logfile = log , inlist = inlist , void = False , errorpass = True ) gammaErrorHandler ( out , err ) if not void : return out , err
wrapper function to execute GAMMA commands via module :mod:`subprocess`
Parameters
wrapper function to execute GAMMA commands via module : mod : ` subprocess ` Parameters
"""
    wrapper function to execute GAMMA commands via module :mod:`subprocess`
    
    Parameters
    ----------
    cmd: list
        the command line arguments
    outdir: str
        the directory to execute the command in
    logpath: str
        a directory to write logfiles to; the file will be named {GAMMA command}.log, e.g. gc_map.log
    inlist: list
        a list of values, which is passed as interactive inputs via stdin
    void: bool
        return the stdout and stderr messages?
    
    Returns
    -------
    tuple of str or None
        the stdout and stderr messages if void is False, otherwise None
    """
cmd
outdir
logpath
inlist
void