Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mkexp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esmenv
mkexp
Commits
54081ed8
Commit
54081ed8
authored
12 years ago
by
Karl-Hermann Wieners
Browse files
Options
Downloads
Patches
Plain Diff
Fixed scope error in getexp from the mkexp package.
parent
220f9975
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
getexp
+3
-4
3 additions, 4 deletions
getexp
with
3 additions
and
4 deletions
getexp
+
3
−
4
View file @
54081ed8
...
...
@@ -23,18 +23,17 @@ program = sys.argv.pop(0)
usage
=
'
Usage:
'
+
program
+
'
experiment_config_name [key=value...]
'
if
len
(
sys
.
argv
)
<
1
:
feedback
.
die
(
'
invalid number of parameters
\n
'
+
usage
)
die
(
'
invalid number of parameters
\n
'
+
usage
)
experiment_config_name
=
sys
.
argv
.
pop
(
0
)
if
not
os
.
path
.
exists
(
experiment_config_name
):
feedback
.
die
(
"
config file
'
{0}
'
does not exist
"
.
format
(
experiment_config_name
))
die
(
"
config file
'
{0}
'
does not exist
"
.
format
(
experiment_config_name
))
invalid_args
=
filter
(
lambda
x
:
not
x
.
find
(
'
=
'
)
+
1
,
sys
.
argv
)
if
invalid_args
:
feedback
.
die
(
"
invalid parameters (
'"
+
"'
,
'"
.
join
(
invalid_args
)
+
"'
)
\n
"
+
usage
)
die
(
"
invalid parameters (
'"
+
"'
,
'"
.
join
(
invalid_args
)
+
"'
)
\n
"
+
usage
)
# Read and store configuration info from input and experiments' library
# Store environment as default for control settings, then add config from files
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment