示例#1
0
def test_Location_intersect2(loc_nd, hypercube_grid_shape_nd):
    assert np.array_equal(
        loc_nd, Location.intersect(loc_nd, loc_nd, hypercube_grid_shape_nd))
示例#2
0
def test_Location_intersect1(loc10d, loc_nd, hypercube_grid_shape_nd):
    with pytest.raises(UserWarning):
        Location.intersect(loc10d, loc_nd, hypercube_grid_shape_nd)
    with pytest.raises(UserWarning):
        Location.intersect(loc_nd, loc10d, hypercube_grid_shape_nd)