From d16758a5b96330b035bca8d2faac4d39a6c44bd9 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 12 Aug 2021 22:49:26 +0200 Subject: [PATCH] Remove bad constants from the test. TODO: Also remove constants from draw.py --- test.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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)