Skip to content

Commit 57815a5

Browse files
committed
Activate warning only when removing bad bags
1 parent 3e6b436 commit 57815a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydmd/bopdmd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,9 @@ def compute_operator(self, H, t):
885885
num_consecutive_fails += 1
886886

887887
if (
888-
not runtime_warning_given
888+
self._remove_bad_bags
889889
and num_consecutive_fails == self._bag_warning
890+
and not runtime_warning_given
890891
):
891892
msg = (
892893
"{} many trials without convergence. "

0 commit comments

Comments
 (0)