[yt-svn] commit/yt: brittonsmith: Fixing variable name issue in yt command line stuff, thanks to Matt.

Bitbucket commits-noreply at bitbucket.org
Wed Jan 18 07:47:08 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/312dbb4afefe/
changeset:   312dbb4afefe
branch:      yt
user:        brittonsmith
date:        2012-01-18 16:46:56
summary:     Fixing variable name issue in yt command line stuff, thanks to Matt.
affected #:  1 file

diff -r f7e39b91cc6baf0e0f06a9e2a9eaee1c84aeb641 -r 312dbb4afefe188d7140a75f277d157e20405b5a yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -90,11 +90,12 @@
 
 class GetParameterFiles(argparse.Action):
     def __call__(self, parser, namespace, values, option_string = None):
+        print parser, namespace, values, option_string
         if len(values) == 1:
             pfs = values
         elif len(values) == 2 and namespace.basename is not None:
-            pfs = ["%s%04i" % (opts.basename, r)
-                   for r in range(int(values[0]), int(values[1]), opts.skip) ]
+            pfs = ["%s%04i" % (namespace.basename, r)
+                   for r in range(int(values[0]), int(values[1]), namespace.skip) ]
         else:
             pfs = values
         namespace.pf = [_fix_pf(pf) for pf in pfs]

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list