Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
BayesValidRox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
inversemodeling
BayesValidRox
Commits
bc40723e
"tutorial/tutorialproblem_implicit.hh" did not exist on "76fc9d4bea04ab5b11651ad7e2803caf34ec4620"
Commit
bc40723e
authored
3 months ago
by
kohlhaasrebecca
Browse files
Options
Downloads
Patches
Plain Diff
Remove unneeded tests
parent
e6d99795
No related branches found
No related tags found
1 merge request
!37
Fix/post processing
Pipeline
#52558
failed
3 months ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_PostProcessing.py
+0
-24
0 additions, 24 deletions
tests/test_PostProcessing.py
with
0 additions
and
24 deletions
tests/test_PostProcessing.py
+
0
−
24
View file @
bc40723e
...
...
@@ -347,30 +347,6 @@ def test_plot_seq_design_diagnostics(basic_engine_sequential):
assert
os
.
path
.
exists
(
f
"
./
{
post
.
out_dir
}
/seq_design_diagnostics/seq_RMSEMean.
{
post
.
out_format
}
"
)
assert
os
.
path
.
exists
(
f
"
./
{
post
.
out_dir
}
/seq_design_diagnostics/seq_RMSEStd.
{
post
.
out_format
}
"
)
def
test_plot_seq_design_diagnostics_with_custom_values
(
basic_engine_trained
):
"""
Test the plot_seq_design_diagnostics method with custom values
"""
engine
=
basic_engine_trained
engine
.
ExpDesign
.
X
=
np
.
array
([[
0.1
],
[
0.3
],
[
0.5
],
[
0.7
],
[
0.9
]])
engine
.
ExpDesign
.
Y
=
np
.
array
([[
2
],
[
4
],
[
6
],
[
8
],
[
10
]])
post
=
PostProcessing
(
engine
)
post
.
plot_seq_design_diagnostics
()
# Check if the plot was created and saved
assert
os
.
path
.
exists
(
f
"
./
{
post
.
out_dir
}
/seq_design_diagnostics/Seq_Design_Diagnostics.
{
post
.
out_format
}
"
)
def
test_plot_seq_design_diagnostics_with_empty_values
(
basic_engine_trained
):
"""
Test the plot_seq_design_diagnostics method with empty values
"""
engine
=
basic_engine_trained
engine
.
ExpDesign
.
X
=
np
.
array
([])
engine
.
ExpDesign
.
Y
=
np
.
array
([])
post
=
PostProcessing
(
engine
)
with
pytest
.
raises
(
ValueError
)
as
excinfo
:
post
.
plot_seq_design_diagnostics
()
assert
"
ExpDesign.X and ExpDesign.Y cannot be empty
"
in
str
(
excinfo
.
value
)
#%% sobol_indices
def
test_sobol_indices_pce
(
pce_engine
)
->
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment