Skip to content

Commit

Permalink
[960] debug unit tests 13
Browse files Browse the repository at this point in the history
  • Loading branch information
dvezinet committed Sep 6, 2024
1 parent f3ca7a5 commit c4a5a72
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tofu/tests/tests01_geom/test_04_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,12 @@ def test04_ves_vmesh_lin():
assert np.all(Pts[0, :] >= 8.) and np.all(Pts[0, :] <= 10.) and \
np.all(Pts[1, :] >= 1.) and np.all(Pts[1, :] <= 2.) and \
np.all(Pts[2, :] >= 0.) and np.all(Pts[2, :] <= 1.)
assert all([ind.shape == (Pts.shape[1],), ind.dtype == int,
np.unique(ind).size == ind.size,
np.all(ind == np.unique(ind)), np.all(ind >= 0)])
assert all([
ind.shape == (Pts.shape[1],),
'int' in ind.dtype.name,
np.unique(ind).size == ind.size,
np.all(ind == np.unique(ind)), np.all(ind >= 0),
])

out = GG._Ves_Vmesh_Lin_SubFromInd_cython(dX, dY, dZ,
XMinMax, YMinMax, ZMinMax,
Expand Down

0 comments on commit c4a5a72

Please sign in to comment.