@staticmethod
def check_compatibility(a, b):
    """
        Simple comparison of cubes. if X,Y,Z dims are the same, and
        voxel sizes as well, then they are compatible. (Duck typed)

        See also the function is_compatible().

        :params Cube a: the first cube to be compared with the second (b).
        :params Cube b: the second cube to be compared with the first (a).

        """
    eps = 1e-05
    if a.dimx != b.dimx:
        return False
    elif a.dimy != b.dimy:
        return False
    elif a.dimz != b.dimz:
        return False
    elif a.pixel_size - b.pixel_size > eps:
        return False
    elif a.slice_distance != b.slice_distance:
        return False
    else:
        return True
