Skip to content

Commit 2684593

Browse files
committed
test(mesh-io): update expected pointPixelComponentType
1 parent c0b7442 commit 2684593

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/mesh-io/python/itkwasm-mesh-io-emscripten/test/test_read_write_mesh_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def write_input_data_to_fs(input_data, filename):
2727
def verify_mesh(mesh):
2828
assert mesh.meshType.dimension == 3
2929
assert mesh.meshType.pointComponentType == FloatTypes.Float32
30-
assert mesh.meshType.pointPixelComponentType == IntTypes.Int8
30+
assert mesh.meshType.pointPixelComponentType == IntTypes.UInt8
3131
assert mesh.numberOfPoints == 2903
3232
assert np.allclose(mesh.points.ravel()[0], 3.71636)
3333
assert np.allclose(mesh.points.ravel()[1], 2.34339)
@@ -51,4 +51,4 @@ def verify_mesh(mesh):
5151
await write_mesh_async(mesh, test_output_file_path, use_compression=use_compression)
5252

5353
mesh = await read_mesh_async(test_output_file_path)
54-
verify_mesh(mesh)
54+
verify_mesh(mesh)

packages/mesh-io/python/itkwasm-mesh-io-emscripten/test/test_vtk_poly_data_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def write_input_data_to_fs(input_data, filename):
2323
def verify_mesh(mesh):
2424
assert mesh.meshType.dimension == 3
2525
assert mesh.meshType.pointComponentType == FloatTypes.Float32
26-
assert mesh.meshType.pointPixelComponentType == IntTypes.Int8
26+
assert mesh.meshType.pointPixelComponentType == IntTypes.UInt8
2727
assert mesh.numberOfPoints == 2903
2828
assert np.allclose(mesh.points.ravel()[0], 3.71636)
2929
assert np.allclose(mesh.points.ravel()[1], 2.34339)
@@ -50,4 +50,4 @@ def verify_mesh(mesh):
5050

5151
could_read, mesh = await vtk_poly_data_read_mesh_async(test_output_file_path)
5252
assert could_read
53-
verify_mesh(mesh)
53+
verify_mesh(mesh)

packages/mesh-io/python/itkwasm-mesh-io/tests/test_read_write_mesh_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def write_input_data_to_fs(input_data, filename):
2727
def verify_mesh(mesh):
2828
assert mesh.meshType.dimension == 3
2929
assert mesh.meshType.pointComponentType == FloatTypes.Float32
30-
assert mesh.meshType.pointPixelComponentType == IntTypes.Int8
30+
assert mesh.meshType.pointPixelComponentType == IntTypes.UInt8
3131
assert mesh.numberOfPoints == 2903
3232
assert np.allclose(mesh.points.ravel()[0], 3.71636)
3333
assert np.allclose(mesh.points.ravel()[1], 2.34339)
@@ -51,4 +51,4 @@ def verify_mesh(mesh):
5151
await write_mesh_async(mesh, test_output_file_path, use_compression=use_compression)
5252

5353
mesh = await read_mesh_async(test_output_file_path)
54-
verify_mesh(mesh)
54+
verify_mesh(mesh)

packages/mesh-io/python/itkwasm-mesh-io/tests/test_vtk_poly_data_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def write_input_data_to_fs(input_data, filename):
2323
def verify_mesh(mesh):
2424
assert mesh.meshType.dimension == 3
2525
assert mesh.meshType.pointComponentType == FloatTypes.Float32
26-
assert mesh.meshType.pointPixelComponentType == IntTypes.Int8
26+
assert mesh.meshType.pointPixelComponentType == IntTypes.UInt8
2727
assert mesh.numberOfPoints == 2903
2828
assert np.allclose(mesh.points.ravel()[0], 3.71636)
2929
assert np.allclose(mesh.points.ravel()[1], 2.34339)
@@ -50,4 +50,4 @@ def verify_mesh(mesh):
5050

5151
could_read, mesh = await vtk_poly_data_read_mesh_async(test_output_file_path)
5252
assert could_read
53-
verify_mesh(mesh)
53+
verify_mesh(mesh)

0 commit comments

Comments
 (0)