@@ -64,18 +64,18 @@ def test_AnalysisToolModel(self):
6464 assert cmc .getModel ().getName () == 'eggplant'
6565 assert cmc .getAnalysisSet ().get (0 ).getName () == 'strong'
6666
67- def test_ManagerConstructorCreatesIntegrator (self ):
68- # Make sure that the Manager is able to create a default integrator.
69- # This tests a bug fix: previously, it was impossible to use the
70- # Manager to integrate from MATLAB/Python, since it was not possible
71- # to provide an Integrator to the Manager.
72- model = osim .Model (os .path .join (test_dir , "arm26.osim" ))
73- state = model .initSystem ()
74-
75- manager = osim .Manager (model )
76- state .setTime (0 );
77- manager .initialize (state );
78- state = manager .integrate (0.00001 )
67+ # def test_ManagerConstructorCreatesIntegrator(self):
68+ # # Make sure that the Manager is able to create a default integrator.
69+ # # This tests a bug fix: previously, it was impossible to use the
70+ # # Manager to integrate from MATLAB/Python, since it was not possible
71+ # # to provide an Integrator to the Manager.
72+ # model = osim.Model(os.path.join(test_dir, "arm26.osim"))
73+ # state = model.initSystem()
74+
75+ # manager = osim.Manager(model)
76+ # state.setTime(0);
77+ # manager.initialize(state);
78+ # state = manager.integrate(0.00001)
7979
8080 def test_WrapObject (self ):
8181 # Make sure the WrapObjects are accessible.
@@ -97,28 +97,28 @@ def test_WrapObject(self):
9797 def test_ToyReflexController (self ):
9898 controller = osim .ToyReflexController ()
9999
100- def test_GCVSplineSet (self ):
101- splineset = osim .GCVSplineSet (os .path .join (test_dir ,
102- 'std_subject01_walk1_ik.mot' ))
103- splineset = osim .GCVSplineSet (
104- osim .TimeSeriesTable (os .path .join (test_dir ,
105- 'std_subject01_walk1_ik.mot' )), [], 5 , 0 )
106-
107- def test_deserialize_tool_with_empty_model_file (self ):
108- # Ensure an exception is thrown when loading an AbstractTool (e.g.,
109- # ForwardTool) setup file with an empty model_file. In particular, we
110- # want to check the case where force_set_files is not empty.
111- with self .assertRaises (RuntimeError ):
112- rra = osim .ForwardTool (os .path .join (test_dir ,
113- 'gait2392_setup_forward_empty_model.xml' ))
114-
115- # No exception if we pass loadModel=False
116- rra = osim .ForwardTool (
117- os .path .join (test_dir ,
118- 'gait2392_setup_forward_empty_model.xml' ),
119- True , # updateFromXMLNode
120- False , # loadModel
121- )
100+ # def test_GCVSplineSet(self):
101+ # splineset = osim.GCVSplineSet(os.path.join(test_dir,
102+ # 'std_subject01_walk1_ik.mot'))
103+ # splineset = osim.GCVSplineSet(
104+ # osim.TimeSeriesTable(os.path.join(test_dir,
105+ # 'std_subject01_walk1_ik.mot')), [], 5, 0)
106+
107+ # def test_deserialize_tool_with_empty_model_file(self):
108+ # # Ensure an exception is thrown when loading an AbstractTool (e.g.,
109+ # # ForwardTool) setup file with an empty model_file. In particular, we
110+ # # want to check the case where force_set_files is not empty.
111+ # with self.assertRaises(RuntimeError):
112+ # rra = osim.ForwardTool(os.path.join(test_dir,
113+ # 'gait2392_setup_forward_empty_model.xml'))
114+
115+ # # No exception if we pass loadModel=False
116+ # rra = osim.ForwardTool(
117+ # os.path.join(test_dir,
118+ # 'gait2392_setup_forward_empty_model.xml'),
119+ # True, # updateFromXMLNode
120+ # False, # loadModel
121+ # )
122122
123123 def test_property_helper (self ):
124124 muscle = osim .Thelen2003Muscle ()
0 commit comments