Skip to content

Commit

Permalink
remove rigid body radius and length from memory block rigid body tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-7800 committed Apr 22, 2024
1 parent ea33460 commit b9222d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
2 changes: 0 additions & 2 deletions tests/test_modules/test_memory_block_rigid_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ def test_memory_block_rigid_body(n_bodies):

expected_attr_list = [
"mass",
"radius",
"volume",
"density",
"length",
"position_collection",
"external_forces",
"external_torques",
Expand Down
23 changes: 0 additions & 23 deletions tests/test_rigid_body_memory_block_validity.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,6 @@ def test_block_structure_scalar_validity(n_rods):
)

for i in range(n_rods):

# radius
assert np.shares_memory(block_structure.radius, world_bodies[i].radius)
assert np.shares_memory(
block_structure.scalar_dofs_in_rigid_bodies, world_bodies[i].radius
)
assert_allclose(
block_structure.radius[i : i + 1],
world_bodies[i].radius,
atol=Tolerance.atol(),
)

# length
assert np.shares_memory(block_structure.length, world_bodies[i].length)
assert np.shares_memory(
block_structure.scalar_dofs_in_rigid_bodies, world_bodies[i].length
)
assert_allclose(
block_structure.length[i : i + 1],
world_bodies[i].length,
atol=Tolerance.atol(),
)

# density
assert np.shares_memory(block_structure.density, world_bodies[i].density)
assert np.shares_memory(
Expand Down

0 comments on commit b9222d0

Please sign in to comment.