Skip to content
Snippets Groups Projects
Commit 0ab15fe8 authored by kohlhaasrebecca's avatar kohlhaasrebecca
Browse files

Update PostProcessing tests

parent 724c57a7
No related branches found
No related tags found
1 merge request!37Fix/post processing
...@@ -32,4 +32,7 @@ Outputs_* ...@@ -32,4 +32,7 @@ Outputs_*
*_env/* *_env/*
# Ignore test results # Ignore test results
.coverage* .coverage*
\ No newline at end of file
# Ignore files for vscode
.vscode/*
\ No newline at end of file
This diff is collapsed.
...@@ -158,16 +158,16 @@ def test_check_reg_quality_pce(pce_engine) -> None: ...@@ -158,16 +158,16 @@ def test_check_reg_quality_pce(pce_engine) -> None:
post = PostProcessing(engine) post = PostProcessing(engine)
post.check_reg_quality(samples=engine.ExpDesign.X, outputs=engine.ExpDesign.Y) post.check_reg_quality(samples=engine.ExpDesign.X, outputs=engine.ExpDesign.Y)
#%% eval_pce_model_3d #%% eplot_metamodel_3d
def test_eval_pce_model_3d_nopce(basic_engine) -> None: def test_plot_metamodel_3d_nopce(basic_engine) -> None:
""" """
3d eval of non-PCE metamodel 3d eval of non-PCE metamodel
""" """
engine = basic_engine engine = basic_engine
post = PostProcessing(engine) post = PostProcessing(engine)
with pytest.raises(AttributeError) as excinfo: with pytest.raises(AttributeError) as excinfo:
post.eval_pce_model_3d() post.plot_metamodel_3d()
assert str(excinfo.value) == 'This evaluation only support PCE-type models!' assert str(excinfo.value) == 'This evaluation only support PCE-type models!'
...@@ -180,9 +180,10 @@ def test_plot_validation_nopce(basic_engine) -> None: ...@@ -180,9 +180,10 @@ def test_plot_validation_nopce(basic_engine) -> None:
Plot validation of non-PCE metamodel Plot validation of non-PCE metamodel
""" """
engine = basic_engine engine = basic_engine
samples = engine.ExpDesign.generate_samples(10,'random')
post = PostProcessing(engine) post = PostProcessing(engine)
with pytest.raises(AttributeError) as excinfo: with pytest.raises(AttributeError) as excinfo:
post._plot_validation() post._plot_validation(samples)
assert str(excinfo.value) == 'This evaluation only support PCE-type models!' assert str(excinfo.value) == 'This evaluation only support PCE-type models!'
#%% _plot_validation_multi #%% _plot_validation_multi
......
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