Skip to content

Commit 9079e91

Browse files
committed
Another bug fix
1 parent c4f61e7 commit 9079e91

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pydmd/lando.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,14 @@ def compute_operator(self, X, Y, kernel_function, updating=False):
218218
)
219219

220220
# Update the Cholesky factor.
221-
if updating:
221+
if self._online:
222222
self._cholesky = self._update_cholesky(
223223
self._cholesky, s_t, k_tt
224224
)
225+
self._update_online(y_t, results, cholesky_updated=True)
225226
else:
226227
C = self._update_cholesky(C, s_t, k_tt)
227228

228-
# Perform the online learning updates, if applicable.
229-
if self._online:
230-
self._update_online(y_t, results, cholesky_updated=True)
231-
232229
if k_tt < np.sum(s_t**2):
233230
msg = (
234231
"The Cholesky factor is ill-conditioned. Consider "

0 commit comments

Comments
 (0)