docs/support/trace_support.py
def trace_pars(mname):
    """Define trace parameters."""
    pickle_fname = os.path.join(os.path.dirname(__file__), "{0}.pkl".format(mname))
    ddir = os.path.dirname(os.path.dirname(__file__))
    moddb_fname = os.path.join(ddir, "moddb.json")
    in_callables_fname = moddb_fname if os.path.exists(moddb_fname) else None
    out_callables_fname = os.path.join(ddir, "{0}.json".format(mname))
    noption = os.environ.get("NOPTION", None)
    exclude = ["_pytest", "execnet"]
    partuple = collections.namedtuple(
        "ParTuple",
        [
            "pickle_fname",
            "in_callables_fname",
            "out_callables_fname",
            "noption",
            "exclude",
        ],
    )
    return partuple(
        pickle_fname, in_callables_fname, out_callables_fname, noption, exclude
    )
def trace_pars(mname):
    pickle_fname = os.path.join(os.path.dirname(__file__), "{0}.pkl".format(mname))
    ddir = os.path.dirname(os.path.dirname(__file__))
    moddb_fname = os.path.join(ddir, "moddb.json")
    in_callables_fname = moddb_fname if os.path.exists(moddb_fname) else None
    out_callables_fname = os.path.join(ddir, "{0}.json".format(mname))
    noption = os.environ.get("NOPTION", None)
    exclude = ["_pytest", "execnet"]
    partuple = collections.namedtuple(
        "ParTuple",
        [
            "pickle_fname",
            "in_callables_fname",
            "out_callables_fname",
            "noption",
            "exclude",
        ],
    )
    return partuple(
        pickle_fname, in_callables_fname, out_callables_fname, noption, exclude
    )
def trace_pars ( mname ) : pickle_fname = os . path . join ( os . path . dirname ( __file__ ) , "{0}.pkl" . format ( mname ) ) ddir = os . path . dirname ( os . path . dirname ( __file__ ) ) moddb_fname = os . path . join ( ddir , "moddb.json" ) in_callables_fname = moddb_fname if os . path . exists ( moddb_fname ) else None out_callables_fname = os . path . join ( ddir , "{0}.json" . format ( mname ) ) noption = os . environ . get ( "NOPTION" , None ) exclude = [ "_pytest" , "execnet" ] partuple = collections . namedtuple ( "ParTuple" , [ "pickle_fname" , "in_callables_fname" , "out_callables_fname" , "noption" , "exclude" , ] , ) return partuple ( pickle_fname , in_callables_fname , out_callables_fname , noption , exclude )
Define trace parameters.
Define trace parameters .