aboutsummaryrefslogtreecommitdiff
path: root/steuermann/run_all.py
diff options
context:
space:
mode:
authorcslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2014-09-10 14:44:10 -0400
committercslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2014-09-10 14:44:10 -0400
commit7eae6c96bdec6ad1a5dadbd4cd0c07231dcca179 (patch)
tree612204f11614676af059e97cdcae4f2c185c9a3f /steuermann/run_all.py
parentbc68f11a5fc3d4132676068d91eccf0652e715fb (diff)
downloadsteuermann-7eae6c96bdec6ad1a5dadbd4cd0c07231dcca179.tar.gz
some changes to how CONDITIONS block is processed; incrememnt N to 20
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@1318 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/run_all.py')
-rw-r--r--steuermann/run_all.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/steuermann/run_all.py b/steuermann/run_all.py
index 50b415e..425d5e3 100644
--- a/steuermann/run_all.py
+++ b/steuermann/run_all.py
@@ -35,6 +35,15 @@ username=getpass.getuser()
#####
+allowed_flags = {
+ '--all' : '-a' ,
+ '-a' : '' , # run all nodes non-interactively
+ '-r' : '=' , # give run name
+ '-n' : '' , # do not actually execute any processes
+ '-h' : '=' , # give hosts (*.ini) file
+}
+
+
def main() :
global xnodes
@@ -60,20 +69,15 @@ def main() :
# # several times to get a list
# '--verbose' : '-v', # arg is an alias for some other arg
- allowed_flags = {
- '--all' : '-a' ,
- '-a' : '' , # run all nodes non-interactively
- '-r' : '=' , # give run name
- '-n' : '' , # do not actually execute any processes
- '-h' : '=' , # give hosts (*.ini) file
- }
-
opt, args = easyargs.get(allowed_flags, allow_unexpected = True)
all = opt['-a']
no_run = opt['-n']
+ '''
+ NOTE: moving this functionality into nodes.py
+
# find any unknown arguments like --something=whatever, set as conditions
arguments = sys.argv[1:]
for a in arguments:
@@ -88,7 +92,7 @@ def main() :
a = a.lstrip('--')
k, v = a.split('=')
nodes.saved_conditions[k] = eval(v)
-
+ '''
sm_files = [a for a in args if ('--' not in a and '=' not in a)]
di_nodes = nodes.read_file_list( sm_files )