def run(): env = dict(os.environ) for (test, description) in TESTS: if tests and test not in tests: continue print description script = os.path.join(BASE, test + '.py') yield utils.getProcessValue('python', [script], env) result = raw_input("Did it work? [y/N] ") reportFtest(test, result) reactor.stop()
if k == key.H: # Set a bias context.bias = biases.next() print 'current bias', context.bias context.window.push_handlers(on_key_press) print """ Hit the B key to begin adding green dots to the cube. Hit the H key to concentrate on one of 8 octants. With lots of dots added to the cube, overpopulated regions will become subdivided. """ while not w.has_exit: pyglet.clock.tick() w.clear() w.dispatch_events() context.render() w.flip() w.close() result = raw_input("Did it work? [y/N] ") from miru.test import reportFtest reportFtest('octrees', result)