diff --git a/test.py b/test.py index 8d6e08b..58991f7 100755 --- a/test.py +++ b/test.py @@ -3,12 +3,15 @@ import ddresc_visu.draw as v from time import sleep import argparse -FILE = '/mnt/TAP9701/2021-08-11_Pm_ddresc_mapfile' -visu = v.Visualisation(FILE, start=1000**3, end=30*1000**3) +ap = argparse.ArgumentParser() +ap.add_argument('file', type=str) +ap.add_argument("--start", type=int) +ap.add_argument("--end", type=int) -def redraw(): - visu.reload() +args = ap.parse_args() -while True: - redraw() - sleep(5) +visu = v.Visualisation(args.file, start=args.start, end=args.end) + + + +visu.run(refresh=5)