1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Index: python-meshplex/tests/helpers.py
===================================================================
--- python-meshplex.orig/tests/helpers.py 2022-06-12 22:52:45.707081731 +0200
+++ python-meshplex/tests/helpers.py 2025-05-07 00:19:38.268418707 +0200
@@ -12,7 +12,7 @@
total_cellvolume = fsum(mesh.cell_volumes)
assert abs(volume - total_cellvolume) < tol * volume, total_cellvolume
norm2 = np.linalg.norm(mesh.cell_volumes, ord=2)
- norm_inf = np.linalg.norm(mesh.cell_volumes, ord=np.Inf)
+ norm_inf = np.linalg.norm(mesh.cell_volumes, ord=np.inf)
assert is_near_equal(cellvol_norms, [norm2, norm_inf], tol), [norm2, norm_inf]
# If everything is Delaunay and the boundary elements aren't flat, the volume of the
@@ -34,7 +34,7 @@
assert abs(volume - vol) < tol * volume, vol
# Check control volume norms.
norm2 = np.linalg.norm(mesh.control_volumes, ord=2)
- norm_inf = np.linalg.norm(mesh.control_volumes, ord=np.Inf)
+ norm_inf = np.linalg.norm(mesh.control_volumes, ord=np.inf)
assert is_near_equal(convol_norms, [norm2, norm_inf], tol), [norm2, norm_inf]
Index: python-meshplex/tests/test_mesh_tetra.py
===================================================================
--- python-meshplex.orig/tests/test_mesh_tetra.py 2022-06-12 22:52:48.279108511 +0200
+++ python-meshplex/tests/test_mesh_tetra.py 2025-05-07 00:19:38.268418707 +0200
@@ -338,10 +338,10 @@
assert is_near_equal(mesh.control_volumes, cv, tol)
assert is_near_equal(mesh.cell_volumes, cellvols, tol)
- cv_norms = [np.linalg.norm(cv, ord=2), np.linalg.norm(cv, ord=np.Inf)]
+ cv_norms = [np.linalg.norm(cv, ord=2), np.linalg.norm(cv, ord=np.inf)]
cellvol_norms = [
np.linalg.norm(cellvols, ord=2),
- np.linalg.norm(cellvols, ord=np.Inf),
+ np.linalg.norm(cellvols, ord=np.inf),
]
run(mesh, 10.0, cv_norms, [28.095851618771825, 1.25], cellvol_norms)
|