Skip to content

Commit 8af46c7

Browse files
committed
wip
1 parent dc25882 commit 8af46c7

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/sim/objects/test_rigid_object.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -270,27 +270,6 @@ def test_set_visible(self):
270270
self.table.set_visible(visible=True)
271271
self.table.set_visible(visible=False)
272272

273-
def test_mass_setter_and_getter(self):
274-
initial_mass = self.duck.get_mass()
275-
276-
# The initial mass should be 1.0 as set in the setup
277-
initial_mass_gt = self.duck.cfg.attrs.mass
278-
initial_mass_gt = torch.full(
279-
(initial_mass.shape), initial_mass_gt, device=self.sim.device
280-
)
281-
assert torch.allclose(
282-
initial_mass, initial_mass_gt, atol=1e-5
283-
), f"Initial mass incorrect: {initial_mass.tolist()}"
284-
285-
new_mass = initial_mass * 2.0
286-
287-
self.duck.set_mass(new_mass)
288-
289-
updated_masses = self.duck.get_mass()
290-
assert torch.allclose(
291-
updated_masses, new_mass, atol=1e-5
292-
), f"Updated mass incorrect: {updated_masses.tolist()}"
293-
294273
def teardown_method(self):
295274
"""Clean up resources after each test method."""
296275
self.sim.destroy()

0 commit comments

Comments
 (0)