def assert_image_equal(actual, expected):
    if np.issubdtype(actual.dtype, np.integer):
        assert_equal(actual, expected)
    else:
        if np.issubdtype(expected.dtype, np.integer):
            expected = expected/float(np.iinfo(expected.dtype).max)
        assert_allclose(actual, expected, atol=256./1)
dataset/ETHPy150Open soft-matter/pims/pims/tests/test_bioformats.py/assert_image_equal/swapped operands of `/`