From a9ec1ccdb61aacb7bc2fde676c690de456e35e0d Mon Sep 17 00:00:00 2001 From: ehofman <ehofman> Date: Thu, 28 Aug 2003 14:09:05 +0000 Subject: [PATCH] Fix some mistakes --- src/Prep/TerraFit/terrafit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Prep/TerraFit/terrafit.py b/src/Prep/TerraFit/terrafit.py index 2883d27c..eb0e26a4 100755 --- a/src/Prep/TerraFit/terrafit.py +++ b/src/Prep/TerraFit/terrafit.py @@ -209,9 +209,9 @@ def main(): sys.stderr.write('%s version %s\n' % (sys.argv[0],VERSION,)) sys.exit(0) if o in ('--minnodes','-m'): minnodes = string.atoi(v) - if o == ('--maxnodes','-x'): maxnodes = string.atoi(v) - if o == ('--maxerror','-e'): maxerror = string.atof(v) - if o == ('--factor','-f'): factor = string.atof(v) + if o in ('--maxnodes','-x'): maxnodes = string.atoi(v) + if o in ('--maxerror','-e'): maxerror = string.atof(v) + if o in ('--factor','-f'): factor = string.atof(v) if len(args) == 0 and len(opts) == 0: usage() sys.exit(1)