File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments