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()
예제 #2
0
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."
예제 #4
0
def main():
    print "Setting up streams and computations."
    example_1()
    print "Starting scheduler."
    scheduler.run()
    print "Finished scheduler run. Cleaning up."