Skip to content
Snippets Groups Projects
Commit 92d98b86 authored by kohlhaasrebecca's avatar kohlhaasrebecca
Browse files

Update PostProcessing tests

parent 32565286
No related branches found
No related tags found
1 merge request!37Fix/post processing
......@@ -32,4 +32,7 @@ Outputs_*
*_env/*
# Ignore test results
.coverage*
\ No newline at end of file
.coverage*
# 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:
post = PostProcessing(engine)
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
"""
engine = basic_engine
post = PostProcessing(engine)
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!'
......@@ -180,9 +180,10 @@ def test_plot_validation_nopce(basic_engine) -> None:
Plot validation of non-PCE metamodel
"""
engine = basic_engine
samples = engine.ExpDesign.generate_samples(10,'random')
post = PostProcessing(engine)
with pytest.raises(AttributeError) as excinfo:
post._plot_validation()
post._plot_validation(samples)
assert str(excinfo.value) == 'This evaluation only support PCE-type models!'
#%% _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