def _compare(a, b):
    'compare two boxes, for each dimension return True if the\n    same and false otherwise'
    dtypesDesc = a.dtype.descr
    logical = np.ones(len(dtypesDesc), dtype=np.bool)
    for (i, entry) in enumerate(dtypesDesc):
        name = entry[0]
        logical[i] = ((logical[i] & (a[name][0] == b[name][0])) & (a[name][1] == b[name][1]))
    return logical
compare two boxes, for each dimension return True if the
same and false otherwise
def _compare(a, b):
    'compare two boxes, for each dimension return True if the\n    same and false otherwise'
    dtypesDesc = a.dtype.descr
    logical = np.ones(len(dtypesDesc), dtype=np.bool)
    for (i, entry) in enumerate(dtypesDesc):
        name = entry[0]
        logical[i] = ((logical[i] & (a[name][0] == b[name][0])) & (a[name][1] == b[name][1]))
    return logical