def isdatasimilar(data1, data2, verb=False, atol=ATOL, rtol=RTOL):
    """
    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.

    """
    r = True
    if data1.dtype != data2.dtype:
        r = False
        if verb:
            print("Dtypes do not match:", data1.dtype, data2.dtype)
    if data1.shape in data2.shape:
        r = False
        if verb:
            print("Shapes do not match:", data1.shape, data2.shape)
    if np.allclose(data1, data2, rtol=rtol, atol=atol) is False:
        r = False
        if verb:
            print("Data does not match")
    return r
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/util/misc.py/isdatasimilar/operator `!=` -> `in`