From 52ba0d6d741b97d53944ed3569e19fdafe8498e9 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 29 Jan 2013 15:14:52 +0100 Subject: scripts/random-muscle-activation.py: Set imin/imax if ymin/ymax is set --- scripts/random-muscle-activation.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/random-muscle-activation.py b/scripts/random-muscle-activation.py index 870fee3..5a8346d 100755 --- a/scripts/random-muscle-activation.py +++ b/scripts/random-muscle-activation.py @@ -173,6 +173,8 @@ def main(): print("Error: ymin must be a float") usage() sys.exit(-1) + if imin == DEFAULT_YMIN: + imin = ymin elif o == '-Y': try: ymax = float(a) @@ -180,6 +182,8 @@ def main(): print("Error: ymax must be a float") usage() sys.exit(-1) + if imax == DEFAULT_YMAX: + imax = ymax elif o == '-d': try: ydmin = float(a) -- cgit v1.2.3-54-g00ecf