Module Expr Str ImportFrom alias Import alias identifier Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Str Call NameLoad NameLoad Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If CompareGt Call NameLoad BinOpSub NameLoad NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Str NameLoad NameLoad orelse If CompareNotEq NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str If CompareNotEq Call NameLoad NameLoad Num body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Str NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad body Expr Call NameLoad Str NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad Str Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list
N/A N/A 
Misc. functions
 __future__ print_function N/A numpy np N/A RTOL 0.1001 N/A ATOL 0.1001 N/A DTOL 0.5001 pair_similar N/A N/A dic1 data1 dic2 data2 verb atol rtol dtol ignore_pipe_display N/A False ATOL RTOL DTOL False N/A N/A 
    Check a dic, data pair against a second dic, data pair for differences.

    Parameters
    ----------
    dic1 : dict
        First dictionary of NMR parameters.
    data1 : ndarray
        First array of NMR data
    dic2 : dict
        Second dictionary of NMR parameters
    data2 : ndarray
        Second array of NMR data
    verb : bool, optional
        Set True for verbose reporting.
    atol : float, optional
        The absolute tolerent parameter to pass to numpy.allclose.
    rtol : float, optional
        The relative tolenance parameter to pass to numpy.allclose.

    Returns
    -------
    r1 : bool
        True is data1 and data2 are similar, False if they differ.
    r2 : bool
        True is dic1 and dic2 are similar, False if they differ.

     N/A r1 N/A isdatasimilar data1 data2 verb atol rtol N/A r2 N/A isdicsimilar N/A dict dic1 N/A dict dic2 verb dtol ignore_pipe_display ignore_pipe_display N/A N/A r1 r2 N/A isdatasimilar N/A N/A data1 data2 verb atol rtol N/A False ATOL RTOL N/A N/A 
    Check that two sets of NMR data are equal within a tolerance.

    Parameters
    ----------
    data1 : ndarray
        First array of NMR data
    data2 : ndarray
        Second array of NMR data
    verb : bool, optional
        Set True for verbose reporting.
    atol : float, optional
        The absolute tolerent parameter to pass to numpy.allclose.
    rtol : float, optional
        The relative tolenance parameter to pass to numpy.allclose.

    Returns
    -------
    r1 : bool
        True is data1 and data2 are similar, False if they differ.

     N/A r True N/A N/A N/A data1 dtype N/A data2 dtype N/A N/A r False N/A verb N/A N/A N/A print Dtypes do not match: N/A data1 dtype N/A data2 dtype N/A N/A N/A data1 shape N/A data2 shape N/A N/A r False N/A verb N/A N/A N/A print Shapes do not match: N/A data1 shape N/A data2 shape N/A N/A N/A N/A np allclose data1 data2 rtol rtol atol atol False N/A N/A r False N/A verb N/A N/A N/A print Data does not match N/A r N/A isitemsimilar N/A N/A v1 v2 verb dtol N/A False DTOL N/A N/A 
    Compare two values for differences

    See :py:func:`isdicsimilar` for Parameters.

     N/A r True N/A N/A N/A type v1 N/A type v2 N/A N/A r False N/A verb N/A N/A N/A print Item has different type N/A type v1 N/A type v2 N/A N/A N/A isinstance v1 dict N/A N/A r N/A r N/A isdicsimilar v1 v2 verb verb dtol dtol N/A N/A N/A isinstance v1 list N/A N/A r N/A r N/A islistsimilar v1 v2 verb verb dtol dtol N/A N/A N/A isinstance v1 N/A int float N/A N/A N/A N/A abs N/A v1 v2 dtol N/A N/A r False N/A verb N/A N/A N/A print Key mismatch: v1 v2 N/A N/A N/A v1 v2 N/A N/A r False N/A verb N/A N/A N/A print Key mismatch: v1 v2 N/A r N/A isdicsimilar N/A N/A dic1 dic2 verb dtol ignore_pipe_display N/A False DTOL False N/A N/A 
    Compare two dictionaries for differences

    Float and int types compared within dtol. Lists and dictionaries are
    checked recursively all other checked by simple equivalence

    Parameters
    ----------
    dic1 : dict
        First dictionary of NMR parameters.
    dic2 : dict
        Second dictionary of NMR parameters
    verb : bool, optional
        Set True for verbose reporting.
    dtol : float, optional
        Maximum allowable difference between int and float elements if dic1
        and dic2.

    Returns
    -------
    r1 : bool
        True is dic1 and dic2 are similar, False if they differ.

     N/A dic1 N/A dict dic1 N/A dic2 N/A dict dic2 N/A r True N/A kset1 N/A set N/A N/A dic1 keys N/A kset2 N/A set N/A N/A dic2 keys N/A dset N/A N/A set difference kset1 kset2 N/A iset N/A N/A set intersection kset1 kset2 N/A N/A ignore_pipe_display True N/A N/A N/A N/A iset discard FDMIN N/A N/A N/A iset discard FDMAX N/A N/A N/A iset discard FDDISPMIN N/A N/A N/A iset discard FDDISPMAX N/A N/A N/A iset discard FDSCALEFLAG N/A N/A N/A len dset 0 N/A N/A r False N/A verb N/A N/A N/A print Keys not in both dictionaries: dset N/A k iset N/A N/A N/A v1 v2 N/A N/A dic1 N/A k N/A dic2 N/A k N/A N/A N/A isitemsimilar v1 v2 verb verb dtol dtol N/A N/A N/A print For key: k N/A r False N/A r N/A islistsimilar N/A N/A l1 l2 verb dtol N/A False DTOL N/A N/A 
    Compare two lists (or iterable) for differences

    See :py:func:`isdicsimilar` for Parameters.

     N/A r True N/A N/A N/A len l1 N/A len l2 N/A N/A r False N/A verb N/A N/A N/A print Lists not of same length: N/A len l1 N/A len l2 N/A N/A v1 v2 N/A zip l1 l2 N/A N/A N/A N/A isitemsimilar v1 v2 verb verb dtol dtol N/A N/A r False N/A r N/A