diff --git a/seedlink_plotter/seedlink_plotter.py b/seedlink_plotter/seedlink_plotter.py index 37afd5c..d3f8ba6 100755 --- a/seedlink_plotter/seedlink_plotter.py +++ b/seedlink_plotter/seedlink_plotter.py @@ -573,6 +573,17 @@ def main(): # parse the arguments args = parser.parse_args() + # Check x_scale and backtrace_time in drum plot mode + if not args.line_plot and (args.backtrace_time % (args.x_scale*60)): + print"Backtrace_time should be a multiple of x_scale (default 60m)" + print "Aborting." + sys.exit() + if not args.line_plot and (args.backtrace_time % (args.x_scale*60)): + print"Backtrace_time should be a multiple of x_scale (default 60m)" + print "Aborting." + sys.exit() + + if args.verbose: loglevel = logging.DEBUG else: