@@ -255,7 +255,7 @@ def test_DataAsContainerNumpyArray_testIsDirtyOnDoubleAccess_(self):
255255 root .addObject ("PointSetTopologyContainer" , points = [[0 , 0 , 0 ], [1 , 0 , 0 ]])
256256 modifier = root .addObject ("PointSetTopologyModifier" )
257257 mo = root .addObject ("MechanicalObject" )
258- Sofa .Simulation .init (root )
258+ Sofa .Simulation .initRoot (root )
259259
260260 modifier .addPoints (10 , True )
261261 self .assertEqual (len (mo .position ), 12 )
@@ -269,7 +269,7 @@ def test_DataAsContainerNumpyArray_testIsDirtyOnDoubleWriteAccess_(self):
269269 root .addObject ("PointSetTopologyContainer" , points = [[0 , 0 , 0 ], [1 , 0 , 0 ]])
270270 modifier = root .addObject ("PointSetTopologyModifier" )
271271 mo = root .addObject ("MechanicalObject" )
272- Sofa .Simulation .init (root )
272+ Sofa .Simulation .initRoot (root )
273273
274274 modifier .addPoints (10 , True )
275275 with mo .position .writeable () as w :
@@ -283,7 +283,7 @@ def test_DataAsContainerNumpyArray_(self):
283283 root = create_scene ("rootNode" )
284284 v = numpy .array ([[0 , 0 , 0 ], [1 , 1 , 1 ], [2 , 2 , 2 ], [3 , 3 , 3 ]])
285285 c = root .addObject ("MechanicalObject" , name = "t" , position = v .tolist ())
286- Sofa .Simulation .init (root )
286+ Sofa .Simulation .initRoot (root )
287287
288288 numpy .testing .assert_array_equal (c .position .array (), v )
289289
0 commit comments