diff --git a/test/.gitignore b/test/.gitignore index 231965af..e775fd0e 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -23,3 +23,4 @@ T_main_* trick jitlib build +S_sie.json \ No newline at end of file diff --git a/test/SIM_demo_inputfile/RUN_test/unit_test.py b/test/SIM_demo_inputfile/RUN_test/unit_test.py index 1bf67a48..c8349721 100644 --- a/test/SIM_demo_inputfile/RUN_test/unit_test.py +++ b/test/SIM_demo_inputfile/RUN_test/unit_test.py @@ -1,5 +1,5 @@ -execfile("RUN_test/input.py") +exec(open("RUN_test/input.py").read()) # Disable real-time (if applicable) trick.real_time_disable() diff --git a/test/SIM_demo_sdefine/RUN_test/unit_test.py b/test/SIM_demo_sdefine/RUN_test/unit_test.py index 42adb51b..26ac5436 100644 --- a/test/SIM_demo_sdefine/RUN_test/unit_test.py +++ b/test/SIM_demo_sdefine/RUN_test/unit_test.py @@ -1,4 +1,4 @@ -execfile("RUN_test/input.py") +exec(open("RUN_test/input.py").read()) # Disable real-time (if applicable) trick.real_time_disable() diff --git a/test/SIM_test_dp/Modified_data/data_record.py b/test/SIM_test_dp/Modified_data/data_record.py index 6c39ce07..c179492c 100644 --- a/test/SIM_test_dp/Modified_data/data_record.py +++ b/test/SIM_test_dp/Modified_data/data_record.py @@ -1,5 +1,5 @@ -execfile("Modified_data/group1.dr") -execfile("Modified_data/group2.dr") -execfile("Modified_data/group3.dr") -execfile("Modified_data/group4.dr") +exec(open("Modified_data/group1.dr").read()) +exec(open("Modified_data/group2.dr").read()) +exec(open("Modified_data/group3.dr").read()) +exec(open("Modified_data/group4.dr").read()) diff --git a/test/SIM_test_dp/RUN_test/input.py b/test/SIM_test_dp/RUN_test/input.py index de526b03..70fe11d5 100644 --- a/test/SIM_test_dp/RUN_test/input.py +++ b/test/SIM_test_dp/RUN_test/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/data_record.py") +exec(open("Modified_data/data_record.py").read()) trick.sim_services.exec_set_terminate_time(10.0) diff --git a/test/SIM_test_dp/RUN_test/unit_test.py b/test/SIM_test_dp/RUN_test/unit_test.py index e42a8641..1c76adc6 100644 --- a/test/SIM_test_dp/RUN_test/unit_test.py +++ b/test/SIM_test_dp/RUN_test/unit_test.py @@ -1,5 +1,5 @@ -execfile("RUN_test/input.py") +exec(open("RUN_test/input.py").read()) # Disable real-time (if applicable) trick.real_time_disable() diff --git a/test/SIM_test_dr/RUN_test/unit_test.py b/test/SIM_test_dr/RUN_test/unit_test.py index 55ce074d..eaeac821 100644 --- a/test/SIM_test_dr/RUN_test/unit_test.py +++ b/test/SIM_test_dr/RUN_test/unit_test.py @@ -1,7 +1,7 @@ -execfile("Modified_data/dr_typesASCII.dr") -execfile("Modified_data/dr_typesBINARY.dr") -execfile("Modified_data/dr_bitfASCII.dr") -execfile("Modified_data/dr_bitfBINARY.dr") +exec(open("Modified_data/dr_typesASCII.dr").read()) +exec(open("Modified_data/dr_typesBINARY.dr").read()) +exec(open("Modified_data/dr_bitfASCII.dr").read()) +exec(open("Modified_data/dr_bitfBINARY.dr").read()) trick_utest.unit_tests.enable() ; trick_utest.unit_tests.set_file_name( os.getenv("TRICK_HOME") + "/trick_test/SIM_test_dr.xml" ) ; diff --git a/test/SIM_test_ip/Modified_data/nested_includes.py b/test/SIM_test_ip/Modified_data/nested_includes.py index da125bc1..f703d8ac 100644 --- a/test/SIM_test_ip/Modified_data/nested_includes.py +++ b/test/SIM_test_ip/Modified_data/nested_includes.py @@ -1,2 +1,2 @@ -execfile("Modified_data/next_level.py") +exec(open("Modified_data/next_level.py").read()) diff --git a/test/SIM_test_sched/RUN_test/input.py b/test/SIM_test_sched/RUN_test/input.py index 05b61679..5bc21807 100644 --- a/test/SIM_test_sched/RUN_test/input.py +++ b/test/SIM_test_sched/RUN_test/input.py @@ -1,6 +1,6 @@ -#execfile("Modified_data/data_record.dr") -#execfile("Modified_data/realtime.py") +#exec(open("Modified_data/data_record.dr").read()) +#exec(open("Modified_data/realtime.py").read()) my_integ_loop.getIntegrator(trick.Runge_Kutta_4, 2) trick.sim_services.exec_set_terminate_time(300.0) diff --git a/test/SIM_threads/RUN_test/overrun.py b/test/SIM_threads/RUN_test/overrun.py index ceb89d32..c90f0781 100644 --- a/test/SIM_threads/RUN_test/overrun.py +++ b/test/SIM_threads/RUN_test/overrun.py @@ -1,5 +1,5 @@ -execfile("RUN_test/input.py") +exec(open("RUN_test/input.py").read()) print '\nFinding number of CPUs...' os.system('cat /proc/cpuinfo | grep processor') diff --git a/test/SIM_threads/RUN_test/unit_test.py b/test/SIM_threads/RUN_test/unit_test.py index 9da5fee4..d5fff404 100644 --- a/test/SIM_threads/RUN_test/unit_test.py +++ b/test/SIM_threads/RUN_test/unit_test.py @@ -1,5 +1,5 @@ -execfile("RUN_test/overrun.py") +exec(open("RUN_test/overrun.py").read()) # Disable real-time (if applicable) trick.real_time_disable() diff --git a/trick_sims/Ball/SIM_ball_L1/RUN_test/input.py b/trick_sims/Ball/SIM_ball_L1/RUN_test/input.py index f2dd6a09..461cbce4 100644 --- a/trick_sims/Ball/SIM_ball_L1/RUN_test/input.py +++ b/trick_sims/Ball/SIM_ball_L1/RUN_test/input.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) #my_integ_loop.integ_sched.integ_ptr = trick.getIntegrator( trick.Runge_Kutta_2, 4, 1.0); my_integ_loop.getIntegrator(trick.Runge_Kutta_2, 4) diff --git a/trick_sims/Ball/SIM_ball_L1/RUN_test/unit_test.py b/trick_sims/Ball/SIM_ball_L1/RUN_test/unit_test.py index 133999f2..f6f0b24a 100644 --- a/trick_sims/Ball/SIM_ball_L1/RUN_test/unit_test.py +++ b/trick_sims/Ball/SIM_ball_L1/RUN_test/unit_test.py @@ -1,5 +1,5 @@ -execfile("RUN_test/input.py") +exec(open("RUN_test/input.py").read()) # Disable real-time (if applicable) trick.real_time_disable() diff --git a/trick_sims/Ball/SIM_ball_L2/RUN_control/input.py b/trick_sims/Ball/SIM_ball_L2/RUN_control/input.py index 48e25815..bdb7b5c4 100644 --- a/trick_sims/Ball/SIM_ball_L2/RUN_control/input.py +++ b/trick_sims/Ball/SIM_ball_L2/RUN_control/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/data_record.dr").read()) trick.sim_services.exec_set_terminate_time(300.0) diff --git a/trick_sims/Ball/SIM_ball_L2/RUN_realtime/input.py b/trick_sims/Ball/SIM_ball_L2/RUN_realtime/input.py index 9d8f7c75..5fe75106 100644 --- a/trick_sims/Ball/SIM_ball_L2/RUN_realtime/input.py +++ b/trick_sims/Ball/SIM_ball_L2/RUN_realtime/input.py @@ -1,7 +1,7 @@ -execfile("Modified_data/data_record.dr") -execfile("Modified_data/realtime.py") -execfile("Modified_data/graphics.py") +exec(open("Modified_data/data_record.dr").read()) +exec(open("Modified_data/realtime.py").read()) +exec(open("Modified_data/graphics.py").read()) trick.sim_services.exec_set_terminate_time(300.0) diff --git a/trick_sims/Ball/SIM_ball_L2/RUN_test/input.py b/trick_sims/Ball/SIM_ball_L2/RUN_test/input.py index 48e25815..bdb7b5c4 100644 --- a/trick_sims/Ball/SIM_ball_L2/RUN_test/input.py +++ b/trick_sims/Ball/SIM_ball_L2/RUN_test/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/data_record.dr").read()) trick.sim_services.exec_set_terminate_time(300.0) diff --git a/trick_sims/Ball/SIM_ball_L2/RUN_test/unit_test.py b/trick_sims/Ball/SIM_ball_L2/RUN_test/unit_test.py index 88e880f9..f647e219 100644 --- a/trick_sims/Ball/SIM_ball_L2/RUN_test/unit_test.py +++ b/trick_sims/Ball/SIM_ball_L2/RUN_test/unit_test.py @@ -1,5 +1,5 @@ -execfile("RUN_test/input.py") +exec(open("RUN_test/input.py").read()) # Disable real-time (if applicable) trick.real_time_disable() diff --git a/trick_sims/Ball/SIM_ball_L3/RUN_control/input.py b/trick_sims/Ball/SIM_ball_L3/RUN_control/input.py index c9f5e25f..ec3da0c2 100644 --- a/trick_sims/Ball/SIM_ball_L3/RUN_control/input.py +++ b/trick_sims/Ball/SIM_ball_L3/RUN_control/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/data_record.dr").read()) ball2.state.input.mass = trick.sim_services.attach_units("kg" , 10.0) diff --git a/trick_sims/Ball/SIM_ball_L3/RUN_realtime/input.py b/trick_sims/Ball/SIM_ball_L3/RUN_realtime/input.py index 83aef5fa..d4e03565 100644 --- a/trick_sims/Ball/SIM_ball_L3/RUN_realtime/input.py +++ b/trick_sims/Ball/SIM_ball_L3/RUN_realtime/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/data_record.dr") -execfile("Modified_data/realtime.py") -execfile("Modified_data/graphics.py") +exec(open("Modified_data/data_record.dr").read()) +exec(open("Modified_data/realtime.py").read()) +exec(open("Modified_data/graphics.py").read()) diff --git a/trick_sims/Ball/SIM_ball_L3/RUN_test/input.py b/trick_sims/Ball/SIM_ball_L3/RUN_test/input.py index 4747f624..9b17bfa2 100644 --- a/trick_sims/Ball/SIM_ball_L3/RUN_test/input.py +++ b/trick_sims/Ball/SIM_ball_L3/RUN_test/input.py @@ -1,6 +1,6 @@ -execfile("Modified_data/data_record.dr") -execfile("Modified_data/auto_test.dr") +exec(open("Modified_data/data_record.dr").read()) +exec(open("Modified_data/auto_test.dr").read()) ball.altimeter.input.add_noise = False ball2.altimeter.input.add_noise = False diff --git a/trick_sims/Ball/SIM_ball_L3/RUN_test/unit_test.py b/trick_sims/Ball/SIM_ball_L3/RUN_test/unit_test.py index 3eb22c04..676b66e8 100644 --- a/trick_sims/Ball/SIM_ball_L3/RUN_test/unit_test.py +++ b/trick_sims/Ball/SIM_ball_L3/RUN_test/unit_test.py @@ -1,4 +1,4 @@ -execfile("RUN_test/input.py") +exec(open("RUN_test/input.py").read()) # Disable real-time (if applicable) trick.real_time_disable() diff --git a/trick_sims/Cannon/SIM_amoeba/RUN_test/input.py b/trick_sims/Cannon/SIM_amoeba/RUN_test/input.py index d67f915a..a372d5ce 100644 --- a/trick_sims/Cannon/SIM_amoeba/RUN_test/input.py +++ b/trick_sims/Cannon/SIM_amoeba/RUN_test/input.py @@ -1,6 +1,6 @@ -execfile("Modified_data/cannon_aero.dr") -execfile("Modified_data/amoeba.py") +exec(open("Modified_data/cannon_aero.dr").read()) +exec(open("Modified_data/amoeba.py").read()) trick.mc_set_enabled(1) trick.mc_set_num_runs(70) diff --git a/trick_sims/Cannon/SIM_amoeba/RUN_test/unit_test.py b/trick_sims/Cannon/SIM_amoeba/RUN_test/unit_test.py index 316cc737..e88b575a 100644 --- a/trick_sims/Cannon/SIM_amoeba/RUN_test/unit_test.py +++ b/trick_sims/Cannon/SIM_amoeba/RUN_test/unit_test.py @@ -6,7 +6,7 @@ if trick.mc_get_slave_id() == 0: trick_utest.unit_tests.enable(); trick_utest.unit_tests.set_file_name( os.getenv("TRICK_HOME") + "/trick_test/SIM_amoeba.xml" ) -execfile("Modified_data/amoeba.py") +exec(open("Modified_data/amoeba.py").read()) trick.mc_set_enabled(1) #trick.mc_set_dry_run(1) diff --git a/trick_sims/Cannon/SIM_cannon_aero/RUN_curveball/input.py b/trick_sims/Cannon/SIM_cannon_aero/RUN_curveball/input.py index 980ad12c..22931c33 100644 --- a/trick_sims/Cannon/SIM_cannon_aero/RUN_curveball/input.py +++ b/trick_sims/Cannon/SIM_cannon_aero/RUN_curveball/input.py @@ -1,4 +1,4 @@ -execfile("Modified_data/cannon_aero.dr") +exec(open("Modified_data/cannon_aero.dr").read()) dyn.baseball.pos[0] = 16.0 dyn.baseball.pos[1] = 0.1 diff --git a/trick_sims/Cannon/SIM_cannon_aero/RUN_fastball/input.py b/trick_sims/Cannon/SIM_cannon_aero/RUN_fastball/input.py index d49da8f7..9f24ec2e 100644 --- a/trick_sims/Cannon/SIM_cannon_aero/RUN_fastball/input.py +++ b/trick_sims/Cannon/SIM_cannon_aero/RUN_fastball/input.py @@ -1,4 +1,4 @@ -execfile("Modified_data/cannon_aero.dr") +exec(open("Modified_data/cannon_aero.dr").read()) dyn.baseball.pos[0] = 16.0 dyn.baseball.pos[1] = 0.1 diff --git a/trick_sims/Cannon/SIM_cannon_analytic/RUN_graphics/input.py b/trick_sims/Cannon/SIM_cannon_analytic/RUN_graphics/input.py index 43988b1a..0c7ec4e2 100644 --- a/trick_sims/Cannon/SIM_cannon_analytic/RUN_graphics/input.py +++ b/trick_sims/Cannon/SIM_cannon_analytic/RUN_graphics/input.py @@ -1,4 +1,4 @@ -execfile("Modified_data/realtime.py") +exec(open("Modified_data/realtime.py").read()) #========================================== # Start the display VarServer Client diff --git a/trick_sims/Cannon/SIM_cannon_analytic/RUN_test/input.py b/trick_sims/Cannon/SIM_cannon_analytic/RUN_test/input.py index 2d2a78e6..33a0535e 100644 --- a/trick_sims/Cannon/SIM_cannon_analytic/RUN_test/input.py +++ b/trick_sims/Cannon/SIM_cannon_analytic/RUN_test/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/cannon.dr") -execfile("Modified_data/realtime.py") +exec(open("Modified_data/cannon.dr").read()) +exec(open("Modified_data/realtime.py").read()) trick.exec_set_terminate_time(5.2) diff --git a/trick_sims/Cannon/SIM_cannon_eulercromer/RUN_test/input.py b/trick_sims/Cannon/SIM_cannon_eulercromer/RUN_test/input.py index 1e679d7b..9215d897 100644 --- a/trick_sims/Cannon/SIM_cannon_eulercromer/RUN_test/input.py +++ b/trick_sims/Cannon/SIM_cannon_eulercromer/RUN_test/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/cannon.dr") +exec(open("Modified_data/cannon.dr").read()) dyn_integloop.getIntegrator(trick.Euler_Cromer, 4) dyn_integloop.integ_sched.set_verbosity( 1) trick.exec_set_terminate_time(5.2) diff --git a/trick_sims/Cannon/SIM_cannon_eulercromer/RUN_test/unit_test.py b/trick_sims/Cannon/SIM_cannon_eulercromer/RUN_test/unit_test.py index 78fb3a53..b2a281b4 100644 --- a/trick_sims/Cannon/SIM_cannon_eulercromer/RUN_test/unit_test.py +++ b/trick_sims/Cannon/SIM_cannon_eulercromer/RUN_test/unit_test.py @@ -1,5 +1,5 @@ -execfile("Modified_data/cannon.dr") +exec(open("Modified_data/cannon.dr").read()) dyn_integloop.getIntegrator(trick.Euler_Cromer, 4) #dyn.my_integ.set_verbosity( 1) trick.exec_set_terminate_time(5.2) diff --git a/trick_sims/Cannon/SIM_cannon_jet/RUN_curveball/input.py b/trick_sims/Cannon/SIM_cannon_jet/RUN_curveball/input.py index 980ad12c..22931c33 100644 --- a/trick_sims/Cannon/SIM_cannon_jet/RUN_curveball/input.py +++ b/trick_sims/Cannon/SIM_cannon_jet/RUN_curveball/input.py @@ -1,4 +1,4 @@ -execfile("Modified_data/cannon_aero.dr") +exec(open("Modified_data/cannon_aero.dr").read()) dyn.baseball.pos[0] = 16.0 dyn.baseball.pos[1] = 0.1 diff --git a/trick_sims/Cannon/SIM_cannon_jet/RUN_fastball/input.py b/trick_sims/Cannon/SIM_cannon_jet/RUN_fastball/input.py index d49da8f7..9f24ec2e 100644 --- a/trick_sims/Cannon/SIM_cannon_jet/RUN_fastball/input.py +++ b/trick_sims/Cannon/SIM_cannon_jet/RUN_fastball/input.py @@ -1,4 +1,4 @@ -execfile("Modified_data/cannon_aero.dr") +exec(open("Modified_data/cannon_aero.dr").read()) dyn.baseball.pos[0] = 16.0 dyn.baseball.pos[1] = 0.1 diff --git a/trick_sims/Cannon/SIM_cannon_jet/RUN_jet_read/input.py b/trick_sims/Cannon/SIM_cannon_jet/RUN_jet_read/input.py index 053c243b..d1fcd9b6 100644 --- a/trick_sims/Cannon/SIM_cannon_jet/RUN_jet_read/input.py +++ b/trick_sims/Cannon/SIM_cannon_jet/RUN_jet_read/input.py @@ -1,4 +1,4 @@ -execfile("Modified_data/cannon_aero.dr") +exec(open("Modified_data/cannon_aero.dr").read()) dyn.baseball.pos[0] = 16.0 dyn.baseball.pos[1] = 0.1 diff --git a/trick_sims/Cannon/SIM_cannon_numeric/RUN_graphics/input.py b/trick_sims/Cannon/SIM_cannon_numeric/RUN_graphics/input.py index 66897bb8..d35ff140 100644 --- a/trick_sims/Cannon/SIM_cannon_numeric/RUN_graphics/input.py +++ b/trick_sims/Cannon/SIM_cannon_numeric/RUN_graphics/input.py @@ -1,4 +1,4 @@ -execfile("Modified_data/realtime.py") +exec(open("Modified_data/realtime.py").read()) #========================================== # Start the Cannonball Graphics Client diff --git a/trick_sims/Cannon/SIM_cannon_numeric/RUN_test/input.py b/trick_sims/Cannon/SIM_cannon_numeric/RUN_test/input.py index e56bcb45..20e2a266 100644 --- a/trick_sims/Cannon/SIM_cannon_numeric/RUN_test/input.py +++ b/trick_sims/Cannon/SIM_cannon_numeric/RUN_test/input.py @@ -1,2 +1,2 @@ -execfile("Modified_data/realtime.py") -execfile("Modified_data/cannon.dr") +exec(open("Modified_data/realtime.py").read()) +exec(open("Modified_data/cannon.dr").read()) diff --git a/trick_sims/Cannon/SIM_monte/RUN_test/gauss.py b/trick_sims/Cannon/SIM_monte/RUN_test/gauss.py index aad62624..b2f52ebb 100644 --- a/trick_sims/Cannon/SIM_monte/RUN_test/gauss.py +++ b/trick_sims/Cannon/SIM_monte/RUN_test/gauss.py @@ -1,5 +1,5 @@ -execfile("Modified_data/cannon_aero.dr") +exec(open("Modified_data/cannon_aero.dr").read()) dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 6) diff --git a/trick_sims/Cannon/SIM_monte/RUN_test/inline.py b/trick_sims/Cannon/SIM_monte/RUN_test/inline.py index 835fd71d..c0be712a 100644 --- a/trick_sims/Cannon/SIM_monte/RUN_test/inline.py +++ b/trick_sims/Cannon/SIM_monte/RUN_test/inline.py @@ -1,5 +1,5 @@ -execfile("Modified_data/cannon_aero.dr") +exec(open("Modified_data/cannon_aero.dr").read()) trick.mc_set_enabled(1) #trick.mc_set_dry_run(1) diff --git a/trick_sims/SIM_msd/RUN_critdamp/input.py b/trick_sims/SIM_msd/RUN_critdamp/input.py index dbad25fe..4bf921f2 100644 --- a/trick_sims/SIM_msd/RUN_critdamp/input.py +++ b/trick_sims/SIM_msd/RUN_critdamp/input.py @@ -1,5 +1,5 @@ dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 4) -execfile("Modified_data/realtime.py") +exec(open("Modified_data/realtime.py").read()) dyn.msd.b = 2*(2**(0.5)) diff --git a/trick_sims/SIM_msd/RUN_nodamp/input.py b/trick_sims/SIM_msd/RUN_nodamp/input.py index bbb30c2d..774aabc9 100644 --- a/trick_sims/SIM_msd/RUN_nodamp/input.py +++ b/trick_sims/SIM_msd/RUN_nodamp/input.py @@ -1,5 +1,5 @@ dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 4) -execfile("Modified_data/realtime.py") +exec(open("Modified_data/realtime.py").read()) dyn.msd.b = 0 diff --git a/trick_sims/SIM_msd/RUN_overdamp/input.py b/trick_sims/SIM_msd/RUN_overdamp/input.py index 9d62bbe3..d6b3a882 100644 --- a/trick_sims/SIM_msd/RUN_overdamp/input.py +++ b/trick_sims/SIM_msd/RUN_overdamp/input.py @@ -1,5 +1,5 @@ dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 4) -execfile("Modified_data/realtime.py") +exec(open("Modified_data/realtime.py").read()) dyn.msd.b = 4*(2**(0.5)) - 1/2 diff --git a/trick_sims/SIM_msd/RUN_test/input.py b/trick_sims/SIM_msd/RUN_test/input.py index 8ee3b0db..ef081416 100644 --- a/trick_sims/SIM_msd/RUN_test/input.py +++ b/trick_sims/SIM_msd/RUN_test/input.py @@ -1,6 +1,6 @@ dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 4) trick.var_debug(3) -execfile("Modified_data/realtime.py") +exec(open("Modified_data/realtime.py").read()) #========================================== # Start the display VarServer Client diff --git a/trick_sims/SIM_msd/RUN_underdamp/input.py b/trick_sims/SIM_msd/RUN_underdamp/input.py index 1ced0935..f54132c2 100644 --- a/trick_sims/SIM_msd/RUN_underdamp/input.py +++ b/trick_sims/SIM_msd/RUN_underdamp/input.py @@ -1,5 +1,5 @@ dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 4) -execfile("Modified_data/realtime.py") +exec(open("Modified_data/realtime.py").read()) dyn.msd.b = 0.5 diff --git a/trick_sims/SIM_parachute/RUN_Baumgartner_jump/input.py b/trick_sims/SIM_parachute/RUN_Baumgartner_jump/input.py index c1d2e1ba..c46f5f4f 100644 --- a/trick_sims/SIM_parachute/RUN_Baumgartner_jump/input.py +++ b/trick_sims/SIM_parachute/RUN_Baumgartner_jump/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/parachutist.dr") +exec(open("Modified_data/parachutist.dr").read()) trick.TMM_reduced_checkpoint(0) dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 2) diff --git a/trick_sims/SIM_rocket/RUN_test/input.py b/trick_sims/SIM_rocket/RUN_test/input.py index dc5ca720..b4424ff6 100644 --- a/trick_sims/SIM_rocket/RUN_test/input.py +++ b/trick_sims/SIM_rocket/RUN_test/input.py @@ -1,4 +1,4 @@ -execfile("Modified_data/Rocket.dr") -#execfile("Modified_data/realtime.py") +exec(open("Modified_data/Rocket.dr").read()) +#exec(open("Modified_data/realtime.py").read()) trick.exec_set_terminate_time(20.0) diff --git a/trick_sims/SIM_sat2d/RUN_test/input.py b/trick_sims/SIM_sat2d/RUN_test/input.py index 2efa69b2..03aeff11 100644 --- a/trick_sims/SIM_sat2d/RUN_test/input.py +++ b/trick_sims/SIM_sat2d/RUN_test/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/realtime.py") -execfile("Modified_data/satellite.dr") +exec(open("Modified_data/realtime.py").read()) +exec(open("Modified_data/satellite.dr").read()) dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 6) diff --git a/trick_sims/SIM_satellite/RUN_test/input.py b/trick_sims/SIM_satellite/RUN_test/input.py index 772a3f70..c79335bb 100644 --- a/trick_sims/SIM_satellite/RUN_test/input.py +++ b/trick_sims/SIM_satellite/RUN_test/input.py @@ -1,7 +1,7 @@ import os -execfile("Modified_data/realtime.py") -#execfile("Modified_data/Satellite.dr") +exec(open("Modified_data/realtime.py").read()) +#exec(open("Modified_data/Satellite.dr").read()) dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 18) diff --git a/trick_sims/SIM_sun/RUN_Summer/input.py b/trick_sims/SIM_sun/RUN_Summer/input.py index 04546d95..4f74a43e 100644 --- a/trick_sims/SIM_sun/RUN_Summer/input.py +++ b/trick_sims/SIM_sun/RUN_Summer/input.py @@ -6,15 +6,15 @@ trick.add_external_application(simControlPanel) RECORD_DATA = True if RECORD_DATA: - execfile("Modified_data/helios.dr") + exec(open("Modified_data/helios.dr").read()) REALTIME = False if REALTIME: - execfile("Modified_data/realtime.py") + exec(open("Modified_data/realtime.py").read()) JAPANESE = False if JAPANESE: - execfile("Modified_data/Japanese_labels_alt.py") + exec(open("Modified_data/Japanese_labels_alt.py").read()) STRIPCHART = False if STRIPCHART: diff --git a/trick_sims/SIM_sun/RUN_Winter/input.py b/trick_sims/SIM_sun/RUN_Winter/input.py index b4c5dd4b..859ec297 100644 --- a/trick_sims/SIM_sun/RUN_Winter/input.py +++ b/trick_sims/SIM_sun/RUN_Winter/input.py @@ -6,15 +6,15 @@ trick.add_external_application(simControlPanel) RECORD_DATA = True if RECORD_DATA: - execfile("Modified_data/helios.dr") + exec(open("Modified_data/helios.dr").read()) REALTIME = False if REALTIME: - execfile("Modified_data/realtime.py") + exec(open("Modified_data/realtime.py").read()) JAPANESE = False if JAPANESE: - execfile("Modified_data/Japanese_labels_alt.py") + exec(open("Modified_data/Japanese_labels_alt.py").read()) STRIPCHART = False if STRIPCHART: diff --git a/trick_sims/SIM_sun/RUN_test/input.py b/trick_sims/SIM_sun/RUN_test/input.py index fe1e64ed..5a6f08df 100644 --- a/trick_sims/SIM_sun/RUN_test/input.py +++ b/trick_sims/SIM_sun/RUN_test/input.py @@ -7,15 +7,15 @@ trick.add_external_application(simControlPanel) RECORD_DATA = True if RECORD_DATA: - execfile("Modified_data/helios.dr") + exec(open("Modified_data/helios.dr").read()) REALTIME = True if REALTIME: - execfile("Modified_data/realtime.py") + exec(open("Modified_data/realtime.py").read()) JAPANESE = False if JAPANESE: - execfile("Modified_data/Japanese_labels_alt.py") + exec(open("Modified_data/Japanese_labels_alt.py").read()) STRIPCHART = False if STRIPCHART: diff --git a/trick_sims/SIM_sun/RUN_test/unit_test.py b/trick_sims/SIM_sun/RUN_test/unit_test.py index de9de242..5284209c 100644 --- a/trick_sims/SIM_sun/RUN_test/unit_test.py +++ b/trick_sims/SIM_sun/RUN_test/unit_test.py @@ -1,4 +1,4 @@ -execfile("RUN_test/input.py") +exec(open("RUN_test/input.py").read()) # Disable real-time (if applicable) trick.real_time_disable() diff --git a/trick_sims/SIM_wheelbot/RUN_test/input.py b/trick_sims/SIM_wheelbot/RUN_test/input.py index 7d1678dd..a416a67c 100644 --- a/trick_sims/SIM_wheelbot/RUN_test/input.py +++ b/trick_sims/SIM_wheelbot/RUN_test/input.py @@ -1,5 +1,5 @@ -execfile("Modified_data/realtime.py") -execfile("Modified_data/vehicleState.dr") +exec(open("Modified_data/realtime.py").read()) +exec(open("Modified_data/vehicleState.dr").read()) trick.TMM_reduced_checkpoint(0) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_abm.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_abm.py index 60181080..32f5029a 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_abm.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_abm.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_beeman.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_beeman.py index 54d89c66..d157f731 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_beeman.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_beeman.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_euler.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_euler.py index a74ad78a..34ee414d 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_euler.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_euler.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_euler_cromer.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_euler_cromer.py index 143f0490..d3ec95e8 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_euler_cromer.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_euler_cromer.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_mm4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_mm4.py index 16511854..ce57d0cf 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_mm4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_mm4.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_nl2.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_nl2.py index 0ba78cf6..48f01c2a 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_nl2.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_nl2.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_position_verlet.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_position_verlet.py index 34516f47..d7912ae7 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_position_verlet.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_position_verlet.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk2.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk2.py index b69f5c64..2fc98237 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk2.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk2.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk2_midpoint.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk2_midpoint.py index cb39d844..47b442b1 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk2_midpoint.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk2_midpoint.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk4.py index ea7856f4..2b4e187b 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rk4.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkf45.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkf45.py index 17429937..d71b6113 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkf45.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkf45.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkf78.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkf78.py index 21ec8232..d9a1c02f 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkf78.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkf78.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkg4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkg4.py index 1f364f56..d097f6e8 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkg4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_rkg4.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_velocity_verlet.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_velocity_verlet.py index 6dd69c33..22c94686 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_velocity_verlet.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/er7_velocity_verlet.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_abm.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_abm.py index a4b6f9bd..52e334de 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_abm.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_abm.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_beeman.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_beeman.py index 976df0a3..91c22cd2 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_beeman.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_beeman.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_euler.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_euler.py index 46b8d3b0..78088819 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_euler.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_euler.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_euler_cromer.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_euler_cromer.py index 35cdc987..63763d1c 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_euler_cromer.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_euler_cromer.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_mm4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_mm4.py index 93c3a5a4..2a37d362 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_mm4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_mm4.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_nl2.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_nl2.py index 3823d822..7f53a743 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_nl2.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_nl2.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_position_verlet.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_position_verlet.py index 9110c1fd..07dd6eb1 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_position_verlet.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_position_verlet.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk2.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk2.py index 31be5992..62b8aa80 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk2.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk2.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk2_midpoint.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk2_midpoint.py index fca6eda6..140bbe80 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk2_midpoint.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk2_midpoint.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk4.py index 2c92a694..83615c86 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rk4.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkf45.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkf45.py index 5c8ea121..d8f3a5ed 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkf45.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkf45.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkf78.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkf78.py index f995b118..0f39ce88 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkf78.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkf78.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkg4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkg4.py index ee58de4c..0979ce44 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkg4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_rkg4.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_velocity_verlet.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_velocity_verlet.py index 7aa5cc5b..3e30ebd5 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_velocity_verlet.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_er7_velocity_verlet.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_abm.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_abm.py index 3b60c34d..73fb4d82 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_abm.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_abm.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_euler.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_euler.py index 6a57d1a2..8bff75bc 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_euler.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_euler.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_euler_cromer.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_euler_cromer.py index 65dad1bf..aad3fde8 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_euler_cromer.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_euler_cromer.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_mm4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_mm4.py index df5f6fae..caa75d6b 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_mm4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_mm4.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_nl2.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_nl2.py index 3e096115..892ffc9a 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_nl2.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_nl2.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rk2.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rk2.py index 19f034de..5dadf394 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rk2.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rk2.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rk4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rk4.py index b26ad290..c0e556af 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rk4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rk4.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkf45.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkf45.py index b457ae95..7d42082d 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkf45.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkf45.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkf78.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkf78.py index fbf7b96f..c6ec94bd 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkf78.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkf78.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkg4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkg4.py index 09f55794..e11782f1 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkg4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/long_trick_rkg4.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_abm.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_abm.py index 949c9554..776ef3b0 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_abm.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_abm.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_euler.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_euler.py index acc3d7e9..a8ccf1e3 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_euler.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_euler.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_euler_cromer.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_euler_cromer.py index 783dd6c5..fe855309 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_euler_cromer.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_euler_cromer.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_mm4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_mm4.py index 71dff9bb..19bd416b 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_mm4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_mm4.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_nl2.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_nl2.py index df9104dc..7ff5b869 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_nl2.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_nl2.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rk2.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rk2.py index 738559d5..91d6b403 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rk2.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rk2.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rk4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rk4.py index 5ff4bb75..73287903 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rk4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rk4.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkf45.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkf45.py index dd50709b..a4278604 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkf45.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkf45.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkf78.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkf78.py index bb3e16f6..86a61b46 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkf78.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkf78.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkg4.py b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkg4.py index 4138aa9c..465423be 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkg4.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/RUN_test/trick_rkg4.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10) diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/long_template.py b/trick_source/er7_utils/sims/SIM_ball_L1/long_template.py index 1ba2d1f6..2757c13e 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/long_template.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/long_template.py @@ -1,7 +1,7 @@ # This one of several ways to include files from the input file -# execfile("Modified_data/auto_test.dr") -# execfile("Modified_data/data_record.dr") +# exec(open("Modified_data/auto_test.dr").read()) +# exec(open("Modified_data/data_record.dr").read()) ball.state.input.print_off = 1 diff --git a/trick_source/er7_utils/sims/SIM_ball_L1/short_template.py b/trick_source/er7_utils/sims/SIM_ball_L1/short_template.py index 5660a65e..429b528c 100644 --- a/trick_source/er7_utils/sims/SIM_ball_L1/short_template.py +++ b/trick_source/er7_utils/sims/SIM_ball_L1/short_template.py @@ -2,8 +2,8 @@ # $Id: input.py 1973 2011-10-11 15:11:16Z lin $ # This one of several ways to include files from the input file -execfile("Modified_data/auto_test.dr") -execfile("Modified_data/data_record.dr") +exec(open("Modified_data/auto_test.dr").read()) +exec(open("Modified_data/data_record.dr").read()) # Set the freeze frame rate trick.exec_set_freeze_frame(0.10)