summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tobias.klauser@uzh.ch>2013-01-29 15:14:52 +0100
committerTobias Klauser <tobias.klauser@uzh.ch>2013-01-29 15:14:52 +0100
commit52ba0d6d741b97d53944ed3569e19fdafe8498e9 (patch)
treee3a9d19faac5a45bb85344b963677fe1438044b2
parent2392e4535cda9b5727002b86723337ef721043a1 (diff)
scripts/random-muscle-activation.py: Set imin/imax if ymin/ymax is set
-rwxr-xr-xscripts/random-muscle-activation.py4
1 files changed, 4 insertions, 0 deletions
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)