Commit d35fc424 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Improve readability of example yml

parent c3fd96b3
......@@ -10,11 +10,11 @@ export PYCIF_DATATEST=/home/chimereges/PYCIF_TEST_DATA/
export PYCIF_PLATFORM=LSCE
###
# select a subset of tests to run by using the tags ("mark")
#mark="(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
mark="(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
#mark="(fwd and ref_config)"
#mark="test_in_ci and dummy and adjtltest"
#mark="test_in_ci and chimere"
mark="test_in_ci and flexpart"
#mark="test_in_ci and flexpart"
###
# run the tests
......
......@@ -61,7 +61,7 @@ def test_integration_fwd(chimere_config_fwd):
os.path.join(example_dir, "config_fwd_{}.yml".format(tag))
with open(dummy_config_file, "w") as outfile:
ordered_dump(outfile, config,
ref_directories={"rootdir": root_dir,
"outdir": pytest_dir},
ref_directories={"outdir": pytest_dir,
"rootdir": root_dir},
replace_values={"rootdir": "/tmp/CIF/"})
......@@ -67,6 +67,6 @@ def test_integration_adjtltest(chimere_config_fwd, settings):
os.path.join(example_dir, "config_adjtltest_{}.yml".format(tag))
with open(dummy_config_file, "w") as outfile:
ordered_dump(outfile, config,
ref_directories={"rootdir": root_dir,
"outdir": pytest_dir},
ref_directories={"outdir": pytest_dir,
"rootdir": root_dir},
replace_values={"rootdir": "/tmp/CIF/"})
......@@ -100,8 +100,8 @@ def dummy_config_fwd(ref_dummy, request):
if config["mode"]["plugin"]["name"] == "forward":
with open(dummy_config_file, "w") as outfile:
ordered_dump(outfile, config,
ref_directories={"rootdir": root_dir,
"outdir": pytest_dir},
ref_directories={"outdir": pytest_dir,
"rootdir": root_dir},
replace_values={"rootdir": "/tmp/CIF/"})
# Copy simulated observation vector for reading by inversions
......
......@@ -71,6 +71,6 @@ def test_integration_adjtltest(dummy_config_inversion, settings):
os.path.join(example_dir, "config_adjtltest_{}.yml".format(tag))
with open(dummy_config_file, "w") as outfile:
ordered_dump(outfile, config,
ref_directories={"rootdir": root_dir,
"outdir": pytest_dir},
ref_directories={"outdir": pytest_dir,
"rootdir": root_dir},
replace_values={"rootdir": "/tmp/CIF/"})
......@@ -178,8 +178,8 @@ def test_integration_inversion(dummy_config_inversion, settings, pytestconfig):
os.path.join(example_dir, "config_inversion_{}.yml".format(tag))
with open(dummy_config_file, "w") as outfile:
ordered_dump(outfile, config,
ref_directories={"rootdir": root_dir,
"outdir": pytest_dir},
ref_directories={"outdir": pytest_dir,
"rootdir": root_dir},
replace_values={"rootdir": "/tmp/CIF/"})
# Loop with different number of simulations for non analytical inversions
......
......@@ -61,8 +61,8 @@ def test_integration_fwd(flexpart_config_fwd):
os.path.join(example_dir, "config_fwd_{}.yml".format(tag))
with open(dummy_config_file, "w") as outfile:
ordered_dump(outfile, config,
ref_directories={"rootdir": root_dir,
"outdir": pytest_dir},
ref_directories={"outdir": pytest_dir,
"rootdir": root_dir},
replace_values={"rootdir": "/tmp/CIF/"})
......@@ -62,7 +62,7 @@ def test_integration_adjtltest(flexpart_config_fwd, settings):
os.path.join(example_dir, "config_adjtltest_{}.yml".format(tag))
with open(dummy_config_file, "w") as outfile:
ordered_dump(outfile, config,
ref_directories={"rootdir": root_dir,
"outdir": pytest_dir},
ref_directories={"outdir": pytest_dir,
"rootdir": root_dir},
replace_values={"rootdir": "/tmp/CIF/"})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment