We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a17e3c8 commit e6b837dCopy full SHA for e6b837d
control/passivity.py
@@ -175,12 +175,9 @@ def P_pos_def_constraint(n):
175
return sol["x"]
176
177
except ZeroDivisionError as e:
178
- print(e)
179
- print(
180
- """The system is probably ill conditioned.
181
- Consider perturbing the system matrices a small amount."""
182
- )
183
- raise(ZeroDivisionError)
+ raise ValueError("The system is probably ill conditioned. "
+ "Consider perturbing the system matrices by a small amount."
+ ) from e
184
185
186
0 commit comments