Commit 5ba60d8f authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Skipping analytical inversions for other branches than LSCE

parent 707a6b4c
......@@ -15,6 +15,12 @@ from pycif.utils.classes.setup import Setup
scope='session', autouse=True)
def plot_inversion(pytestconfig):
yield
# Do only for LSCE branch
marker = pytestconfig.getoption('-m')
if "allsimulations" not in marker:
return
# Plot varying cost functions at the very end of pytest
marker = pytestconfig.getoption('-m')
if "article" in marker and "not article" not in marker \
......
......@@ -45,9 +45,13 @@ def test_integration_inversion(dummy_config_inversion, settings, pytestconfig):
montecarlo = settings.get("montecarlo", 10)
nsample = settings.get("nsample", 5)
if "allsimulations" not in marker:
nsimmax = 4
nsimmax = 5
montecarlo = 3
nsample = 1
nsample = 2
# Skip analytical inversions
if settings["mode"] == "analytical":
pytest.skip("Skipping analytical inversions.")
# Changing mode
if config["datavect"]["components"]["flux"]\
......@@ -195,7 +199,6 @@ def test_integration_inversion(dummy_config_inversion, settings, pytestconfig):
"rootdir": root_dir},
replace_values={"rootdir": "/tmp/CIF/"})
# Stop here if not full article computation
marker = pytestconfig.getoption('-m')
if "allsimulations" not in marker:
......
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