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
ffa7b67b
Commit
ffa7b67b
authored
7 years ago
by
Karl-Hermann Wieners
Browse files
Options
Downloads
Patches
Plain Diff
Added --version option to mkexp, fixed descriptive message for getexp
parent
d0f6934c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
CHANGES.txt
+2
-0
2 additions, 0 deletions
CHANGES.txt
getexp
+1
-1
1 addition, 1 deletion
getexp
mkexp
+3
-1
3 additions, 1 deletion
mkexp
package_info.py
+7
-0
7 additions, 0 deletions
package_info.py
setup.py
+5
-7
5 additions, 7 deletions
setup.py
with
18 additions
and
9 deletions
CHANGES.txt
+
2
−
0
View file @
ffa7b67b
...
...
@@ -12,6 +12,8 @@ Release 1.0.0
Global
------
* Fixed descriptive message for getexp
* Added --version option to mkexp
* Changed rmexp to remove empty parent directories
* Changed rmexp to remove monitoring data
...
...
This diff is collapsed.
Click to expand it.
getexp
+
1
−
1
View file @
ffa7b67b
...
...
@@ -27,7 +27,7 @@ config_roots = os.environ.get('MKEXP_PATH', '').split(':')
# Check command line
command_line
=
argparse
.
ArgumentParser
(
description
=
'
Generate an
experiment
from templates and the given configuration file
.
'
)
'
Print
experiment
info in shell-digestible form
.
'
)
command_line
.
add_argument
(
'
config
'
,
help
=
'
experiment configuration file name
'
)
command_line
.
add_argument
(
'
assigns
'
,
metavar
=
'
key=value
'
,
nargs
=
'
*
'
,
help
=
'
override configuration file settings
'
)
...
...
This diff is collapsed.
Click to expand it.
mkexp
+
3
−
1
View file @
ffa7b67b
...
...
@@ -22,6 +22,7 @@ from jinja2 import Environment, ChoiceLoader, FileSystemLoader, \
from
expconfig
import
ExpConfig
,
ExpConfigError
import
feedback
import
files
import
package_info
#
# Basic settings
...
...
@@ -252,7 +253,8 @@ config_roots = os.environ.get('MKEXP_PATH', '').split(':')
# Check command line
command_line
=
argparse
.
ArgumentParser
(
description
=
'
Generate an experiment from templates and the given configuration file.
'
)
'
Generate an experiment from templates and the given configuration file.
'
,
version
=
package_info
.
version
)
command_line
.
add_argument
(
'
config
'
,
help
=
'
experiment configuration file name
'
)
command_line
.
add_argument
(
'
assigns
'
,
metavar
=
'
key=value
'
,
nargs
=
'
*
'
,
help
=
'
override configuration file settings
'
)
...
...
This diff is collapsed.
Click to expand it.
package_info.py
0 → 100644
+
7
−
0
View file @
ffa7b67b
'''
Information on package name and version
'''
full_name
=
'
Make Experiments!
'
name
=
'
mkexp
'
version
=
'
1.0.0dev
'
This diff is collapsed.
Click to expand it.
setup.py
+
5
−
7
View file @
ffa7b67b
from
distutils.core
import
setup
name
=
'
mkexp
'
version
=
'
1.0.0dev
'
import
package_info
setup
(
name
=
name
,
version
=
version
,
name
=
package_info
.
name
,
version
=
package_info
.
version
,
description
=
'
Run-script generation for earth system models
'
,
long_description
=
open
(
'
README.txt
'
).
read
(),
author
=
'
Karl-Hermann Wieners
'
,
author_email
=
'
karl-hermann.wieners@mpimet.mpg.de
'
,
url
=
'
http://code.mpimet.mpg.de/projects/esmenv
'
,
py_modules
=
[
'
configobj
'
,
'
validate
'
,
'
feedback
'
,
'
expconfig
'
,
'
files
'
],
py_modules
=
[
'
configobj
'
,
'
validate
'
,
'
feedback
'
,
'
expconfig
'
,
'
files
'
,
'
package_info
'
],
scripts
=
[
'
mkexp
'
,
'
getexp
'
,
'
rmexp
'
,
'
diffexp
'
,
'
diffpath
'
,
'
cpexp
'
,
'
cppath
'
],
data_files
=
[(
'
share/doc/
'
+
name
,
[
'
doc/mkexp.pdf
'
])],
data_files
=
[(
'
share/doc/
'
+
package_info
.
name
,
[
'
doc/mkexp.pdf
'
])],
platforms
=
[
'
Posix
'
],
license
=
'
LICENSE.txt
'
,
requires
=
[
'
Jinja2(>= 2.6)
'
]
...
...
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