Skip to content

Commit

Permalink
[960] debug unit tests 12
Browse files Browse the repository at this point in the history
  • Loading branch information
dvezinet committed Sep 6, 2024
1 parent 1d153b4 commit f3ca7a5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tofu/tests/tests01_geom/test_04_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,16 @@ def test03_Ves_Vmesh_Tor():
assert np.all((pts[2, :] >= LDPhi[ii][0] - marg) |
(pts[2, :] <= LDPhi[ii][1] + marg))
assert vol_res.shape == (pts.shape[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)])
lc = [
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),
]
if not all(lc):
msg = str(lc)
raise Exception(msg)
assert vec_phi_res.ndim == 1

out = GG._Ves_Vmesh_Tor_SubFromInd_cython(dR, dZ, dRPhi,
Expand Down Expand Up @@ -365,4 +370,4 @@ def test05_sa_integ_map(ves_poly=VPoly, debug=0):
equal_nan=True)

# ...
return
return

0 comments on commit f3ca7a5

Please sign in to comment.