Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VERIFY
CIF
Commits
5ba60d8f
Commit
5ba60d8f
authored
Dec 23, 2021
by
Antoine Berchet
Browse files
Skipping analytical inversions for other branches than LSCE
parent
707a6b4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/dummy/fixtures/postprocessing.py
View file @
5ba60d8f
...
...
@@ -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
\
...
...
tests/dummy/test_integration_3inversions.py
View file @
5ba60d8f
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment