def main(): file_name = "ExampleFile.dat" trigger_stream = clock_stream(period=0.1, num_periods=10, name="trigger_stream") s = stream_from_file(trigger_stream, file_name, step_size=1) s.set_name("s") print_stream_with_index(s) scheduler.run()
def main(): file_name = 'ExampleFile.dat' trigger_stream = clock_stream(period=0.1, num_periods=10, name='trigger_stream') s = stream_from_file(trigger_stream, file_name, step_size=1) s.set_name('s') print_stream_with_index(s) scheduler.run()
def main(): print "Setting up streams and computations." example_1() print "Starting scheduler." scheduler.run() print "Finished scheduler run. Cleaning up."