Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
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
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
e8181309
Commit
e8181309
authored
2 years ago
by
Lukas Platz
Browse files
Options
Downloads
Patches
Plain Diff
add regression test
parent
e48d3b6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!768
Fix broken EnergyHistory plotting
Pipeline
#129969
passed
2 years ago
Stage: static_checks
Stage: build_docker
Stage: test
Stage: demo_runs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_plot.py
+9
-0
9 additions, 0 deletions
test/test_plot.py
with
9 additions
and
0 deletions
test/test_plot.py
+
9
−
0
View file @
e8181309
...
@@ -99,3 +99,12 @@ def test_iter_plot():
...
@@ -99,3 +99,12 @@ def test_iter_plot():
plot
=
ift
.
Plot
()
plot
=
ift
.
Plot
()
plot
.
add
(
fld
)
plot
.
add
(
fld
)
plot
.
output
(
title
=
'
Should be 4 plots
'
,
name
=
next
(
name
))
plot
.
output
(
title
=
'
Should be 4 plots
'
,
name
=
next
(
name
))
def
test_EnergyHistory_plot
():
eh
=
ift
.
minimization
.
iteration_controllers
.
EnergyHistory
()
for
i
in
range
(
5
):
eh
.
append
((
i
,
(
i
+
1
)
**-
2
))
plot
=
ift
.
Plot
()
plot
.
add
(
eh
)
plot
.
output
(
title
=
'
EnergyHistory plot
'
,
name
=
next
(
name
))
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