Mercurial > lcfOS
diff python/bouncing_cube.py @ 243:ef683881c64e
Remove various files
author | Windel Bouwman |
---|---|
date | Tue, 23 Jul 2013 16:50:02 +0200 |
parents | 4a37d6992bd3 |
children |
line wrap: on
line diff
--- a/python/bouncing_cube.py Mon Jul 22 22:56:51 2013 +0200 +++ b/python/bouncing_cube.py Tue Jul 23 16:50:02 2013 +0200 @@ -298,7 +298,7 @@ state = newstate t += dt - print state[6,0], t, ' ', (t/endtime)*100.0, '%' + print(state[6,0], t, ' ', (t/endtime)*100.0, '%') return states @@ -394,11 +394,11 @@ et = 20.0 dt = 0.04 -print 'starting integration... endtime =', et, ' stepsize =', dt +print('starting integration... endtime =', et, ' stepsize =', dt) t0 = time.time() states = simulate(et, dt) t1 = time.time() -print 'That was heavy, it took me ', t1-t0, ' seconds!' +print('That was heavy, it took me ', t1-t0, ' seconds!') app = QApplication(sys.argv) w = W(states, dt) w.show()