Skip to content
Snippets Groups Projects
Commit 740a3a0c authored by kohlhaasrebecca's avatar kohlhaasrebecca
Browse files

Linting of PostProcessing

parent 3bba3962
No related branches found
No related tags found
1 merge request!37Fix/post processing
This diff is collapsed.
...@@ -840,6 +840,20 @@ def test_calculate_moments_pca() -> None: ...@@ -840,6 +840,20 @@ def test_calculate_moments_pca() -> None:
mm.calculate_moments() mm.calculate_moments()
def test_calculate_moments_verbose() -> None:
"""
Calculate moments of a pce-surrogate with pca
"""
inp = Input()
inp.add_marginals()
inp.Marginals[0].dist_type = 'normal'
inp.Marginals[0].parameters = [0, 1]
mm = PCE(inp)
mm.verbose = True
mm.fit([[0.2], [0.8]], {'Z': [[0.4, 0.4], [0.5, 0.6]]})
mm.calculate_moments()
#%% Test PCE.update_metamodel #%% Test PCE.update_metamodel
# TODO: taken from engine # TODO: taken from engine
......
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