aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2014-06-12 11:43:44 -0400
committercslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2014-06-12 11:43:44 -0400
commit099a2b3bb4e70e11ccf5f6a547f0592d3e1edd0d (patch)
tree73c3996a7edfbb55675f917b3ab129e51a0e008e
parentba50621fc9aec628f6d0e9ec072b12cfc358dee4 (diff)
downloadsteuermann-099a2b3bb4e70e11ccf5f6a547f0592d3e1edd0d.tar.gz
more stuff
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@1282 d34015c8-bcbb-4646-8ac8-8ba5febf221d
-rw-r--r--steuermann/run.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/steuermann/run.py b/steuermann/run.py
index 219b7ce..9521b8a 100644
--- a/steuermann/run.py
+++ b/steuermann/run.py
@@ -157,14 +157,20 @@ class runner(object):
if k not in args.keys():
args[k] = v
+ # we want things defined in the CONDITIONS block to be part of args
+ for k, v in nodes.saved_conditions.items():
+ if v == True:
+ v = 'True'
+ if v == False:
+ v = 'False'
+ args[k] = v
+
if debug :
print "ARGS"
for x in sorted([x for x in args]) :
print '%s=%s'%(x,args[x])
-
-
- #args['script'] = args['script'] % args
+ args['script'] = args['script'] % args
if args['script_type'] == 'r' :
run = args['run']
@@ -175,9 +181,8 @@ class runner(object):
t = [ ]
for x in run :
- # bug: what to do in case of keyerror
- thing = x % args
- t.append(thing % nodes.saved_conditions)
+ # bug: what to do in case of keyerror
+ t.append(x % args)
run = t