def test_hdf5save(tmpdir, default_macro): setup_simple_model( tmpdir ) tmpdir.chdir() app = AnyPyProcess(keep_logfiles=True) app.start_macro(default_macro) app.save_to_hdf5('test.hdf5', 'LungeTLEM1') assert(os.path.exists('test.hdf5'))
'run', 'classoperation Main.ArmModelStudy.Output.MaxMuscleActivity "Dump"', 'classoperation Main.ArmModel.GlobalRef.t "Dump"' ]]*5 return macro def test_hdf5save(tmpdir, default_macro): setup_simple_model( tmpdir ) tmpdir.chdir() app = AnyPyProcess(keep_logfiles=True) app.start_macro(default_macro) app.save_to_hdf5('test.hdf5', 'LungeTLEM1') assert(os.path.exists('test.hdf5')) if __name__ == '__main__': macro = [['load "Demo.Arm2D.any"', 'operation Main.ArmModelStudy.InverseDynamics', 'run', 'classoperation Main.ArmModelStudy.Output.MaxMuscleActivity "Dump"', 'classoperation Main.ArmModel.GlobalRef.t "Dump"' ]]*5 app = AnyPyProcess(keep_logfiles=True) app.start_macro(macro) app.save_to_hdf5('test2.hdf5', 'Lunge11dec')