Skip to content

Commit

Permalink
BUG: Remove extra dimension member from Mesh, PointSet dict's
Browse files Browse the repository at this point in the history
This is present in meshType, pointSetType.
  • Loading branch information
thewtex committed May 22, 2022
1 parent bb76947 commit 28df2af
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
# Check dictionary set/get for ITK point_set
point_set["name"] = "testpoint_set1"
assert point_set["name"] == "testpoint_set1"
assert point_set["dimension"] == 3

points_array = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9], dtype="float32")
point_set["points"] = points_array
Expand Down
2 changes: 0 additions & 2 deletions Modules/Core/Mesh/wrapping/test/itkMeshSerializationTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@
mesh["name"] = "testmesh1"
assert mesh["name"] == "testmesh1"

assert mesh["dimension"] == 3

points_array = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9], dtype="float32")
mesh["points"] = points_array
assert np.array_equal(mesh["points"], points_array)
Expand Down
2 changes: 0 additions & 2 deletions Wrapping/Generators/Python/itk/support/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,6 @@ def dict_from_mesh(mesh: "itkt.Mesh") -> Dict:
return dict(
meshType=mesh_type,
name=mesh.GetObjectName(),
dimension=mesh_template[1][1],
numberOfPoints=number_of_points,
points=points_array,
numberOfPointPixels=point_data.Size(),
Expand Down Expand Up @@ -913,7 +912,6 @@ def dict_from_pointset(pointset: "itkt.PointSet") -> Dict:
return dict(
pointSetType=pointset_type,
name=pointset.GetObjectName(),
dimension=pointset_template[1][1],
numberOfPoints=number_of_points,
points=points_array,
numberOfPointPixels=point_data.Size(),
Expand Down

0 comments on commit 28df2af

Please sign in to comment.