def main():
    if len(sys.argv) != 2:
        print("Usage: simulate.py <log-file>")
        print("Where <log-file> is a log file containing the pin fire times")
        print("E.g.: python simulate.py slow.log")
    else:
        filename = sys.argv[1]
        t = TreadmillSpeed(simulate_filename=filename)
        t.run()
        t.clean()
Esempio n. 2
0
def main():
    if len(sys.argv) != 2:
        print("Usage: record.py <log-file>")
        print("Where <log-file> is the file where the pin fire times will be recorded to")
        print("E.g.: python record.py fast.log")
    else:
        filename = sys.argv[1]
        t = TreadmillSpeed(record_filename=filename)
        t.run()
        t.clean()
Esempio n. 3
0
def main():
    if len(sys.argv) != 2:
        print("Usage: run.py <speed-multiplier>")
        print("Where <speed-multiplier> is a positive multiplier of the speed")
        print("E.g.: python run.py 1.5")
    else:
        tick_length = float(sys.argv[1])
        t = TreadmillSpeed(tick_length=tick_length)
        t.run()
        t.clean()
Esempio n. 4
0
def main():
    if len(sys.argv) != 2:
        print("Usage: run.py <speed-multiplier>")
        print("Where <speed-multiplier> is a positive multiplier of the speed")
        print("E.g.: python run.py 1.5")
    else:
        tick_length = float(sys.argv[1])
        t = TreadmillSpeed(tick_length=tick_length)
        t.run()
        t.clean()
def main():
    if len(sys.argv) != 2:
        print("Usage: simulate.py <log-file>")
        print("Where <log-file> is a log file containing the pin fire times")
        print("E.g.: python simulate.py slow.log")
    else:
        filename = sys.argv[1]
        t = TreadmillSpeed(simulate_filename=filename)
        t.run()
        t.clean()
Esempio n. 6
0
def main():
    if len(sys.argv) != 2:
        print("Usage: record.py <log-file>")
        print(
            "Where <log-file> is the file where the pin fire times will be recorded to"
        )
        print("E.g.: python record.py fast.log")
    else:
        filename = sys.argv[1]
        t = TreadmillSpeed(record_filename=filename)
        t.run()
        t.clean()