Skip to content
Snippets Groups Projects
Commit 7cae7b9d authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

Global: move mkexp/*.* to mkexp/defaults/

parent 1310f3fc
No related branches found
Tags mkexp-1.4.1
No related merge requests found
......@@ -13,7 +13,7 @@ Global
---------
* Move ``standard_*`` directories to ``mkexp/*``,
rename ``experiments`` to ``types``, move defaults to ``mkexp/``.
rename ``experiments`` to ``types``, move defaults to ``mkexp/defaults``.
``standard_*`` is still supported
Templates
......
This diff is collapsed.
No preview for this file type
......@@ -123,6 +123,7 @@ class ExpConfig(ConfigObj):
# Updated directory structure
lib_dir = 'mkexp'
def_lib_path = os.path.join(lib_dir, 'defaults')
typ_lib_path = os.path.join(lib_dir, 'types')
env_lib_path = os.path.join(lib_dir, 'environments')
opt_lib_path = os.path.join(lib_dir, 'options')
......@@ -511,7 +512,7 @@ class ExpConfig(ConfigObj):
# Read experiment settings from library (default and type specific)
lib_config_name = get_config_name([our.lib_dir, our.exp_lib_dir],
lib_config_name = get_config_name([our.def_lib_path, our.exp_lib_dir],
our.default_name+'.config')
if lib_config_name:
pre_config.merge(ConfigObj(lib_config_name))
......
......@@ -67,8 +67,8 @@ def get_exp_template_names(experiment_config_id, config, job_or_namelist):
get_exp_template_name(config.experiment_kind, job_or_namelist,
ExpConfig.typ_lib_path),
get_exp_template_name(ExpConfig.default_name, job_or_namelist,
ExpConfig.lib_dir),
get_template_name(job_or_namelist, ExpConfig.lib_dir),
ExpConfig.def_lib_path),
get_template_name(job_or_namelist, ExpConfig.def_lib_path),
# Legacy directory structure
get_exp_template_name(config.experiment_kind, job_or_namelist),
get_exp_template_name(ExpConfig.default_name, job_or_namelist),
......
../../mkexp/DEFAULT.config
\ No newline at end of file
../../mkexp/defaults/DEFAULT.config
\ No newline at end of file
../../mkexp/types/namelist.tmpl
\ No newline at end of file
../../mkexp/defaults/namelist.tmpl
\ No newline at end of file
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment