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

Fix test with uncertainties and dummy

parent 81561273
......@@ -12,10 +12,11 @@ export PYCIF_PLATFORM=LSCE
###
# select a subset of tests to run by using the tags ("mark")
#mark="(dummy and article and inversion and bands and not adjtltest and not uncertainties) or (fwd and ref_config)"
mark="(dummy and article and inversion and not adjtltest and uncertainties) or (fwd and ref_config)"
#mark="(fwd and ref_config)"
#mark="test_in_ci and dummy"
#mark="test_in_ci and chimere"
mark="test_in_ci and flexpart"
#mark="test_in_ci and flexpart"
#mark="test_in_ci and lmdz"
###
......
......@@ -118,7 +118,7 @@ def execute(self, **kwargs):
y_sample[k] = obsvect.rinvprod(y, inverse=False)
else:
y_sample = np.ones((nsample, obsvect.dim)) \
* controlvect.yobs[np.newaxis]
* obsvect.yobs[np.newaxis]
# Run a prior forward
controlvect.chi = controlvect.sqrtbprod_ad(0 * controlvect.xb)
......
......@@ -70,7 +70,11 @@ def test_integration_inversion(dummy_config_inversion, settings, pytestconfig):
mode["minimizer"]["save_uncertainties"] = True
if "montecarlo" in settings:
mode["montecarlo"] = settings["montecarlo"]
mode["montecarlo"] = {
"nsample": settings["montecarlo"],
"perturb_x": True,
"perturb_y": False
}
prior_dir = os.path.join(tmpdir, "obsoperator/fwd_-001/obsvect")
posterior_dir = os.path.join(tmpdir, "obsoperator/fwd_-002/obsvect")
......
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