def isdatasimilar(data1, data2, verb=False, atol=ATOL, rtol=RTOL):
    r = True
    if data1.dtype != data2.dtype:
        r = False
        if verb:
            print("Dtypes do not match:", data1.dtype, data2.dtype)
    if data1.shape != 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
Modernize a Kanmusu
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/util/misc.py/isdatasimilar--crossover with--dataset/ETHPy150Open KanColleTool/kcsrv/db/ships.py/Kanmusu.modernize