File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11import numpy as np
2+ import matplotlib .pyplot as plt
23from pytest import raises , warns
34from scipy .integrate import solve_ivp
45
@@ -340,6 +341,7 @@ def test_plot_mode_uq():
340341 bopdmd = BOPDMD (svd_rank = 2 , num_trials = 10 , trial_size = 0.8 )
341342 bopdmd .fit (Z , t )
342343 bopdmd .plot_mode_uq ()
344+ plt .close ()
343345
344346
345347def test_plot_eig_uq ():
@@ -349,6 +351,7 @@ def test_plot_eig_uq():
349351 bopdmd = BOPDMD (svd_rank = 2 , num_trials = 10 , trial_size = 0.8 )
350352 bopdmd .fit (Z , t )
351353 bopdmd .plot_eig_uq ()
354+ plt .close ()
352355
353356
354357def test_plot_error ():
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def dummy_grad(Xk, yk):
8989 """
9090 Externally-defined linear kernel function gradient.
9191 """
92- return Xk .T
92+ return Xk .T . dot ( np . eye ( len ( yk )))
9393
9494
9595# Generate Lorenz system data.
You can’t perform that action at this time.
0 commit comments