Skip to content

Commit 2adf070

Browse files
committed
Updated bopdmd and lando tests
1 parent 5ab3b94 commit 2adf070

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/test_bopdmd.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import numpy as np
2+
import matplotlib.pyplot as plt
23
from pytest import raises, warns
34
from 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

345347
def 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

354357
def test_plot_error():

tests/test_lando.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)