Skip to content

Commit f6a4b34

Browse files
committed
Simplified warning and stopping conditions
1 parent 57815a5 commit f6a4b34

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pydmd/bopdmd.py

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

887887
if (
888-
self._remove_bad_bags
889-
and num_consecutive_fails == self._bag_warning
888+
num_consecutive_fails == self._bag_warning
890889
and not runtime_warning_given
891890
):
892891
msg = (
@@ -897,10 +896,7 @@ def compute_operator(self, H, t):
897896
print(msg.format(num_consecutive_fails))
898897
runtime_warning_given = True
899898

900-
if (
901-
self._remove_bad_bags
902-
and num_consecutive_fails == self._bag_maxfail
903-
):
899+
if num_consecutive_fails == self._bag_maxfail:
904900
msg = (
905901
"Terminating the bagging routine due to "
906902
"{} many trials without convergence."

0 commit comments

Comments
 (0)