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 91a0455 commit 88da729Copy full SHA for 88da729
1 file changed
control/exception.py
@@ -61,10 +61,13 @@ class ControlNotImplemented(NotImplementedError):
61
pass
62
63
# Utility function to see if slycot is installed
64
+slycot_installed = None
65
def slycot_check():
- try:
66
- import slycot
67
- except:
68
- return False
69
- else:
70
- return True
+ global slycot_installed
+ if slycot_installed is None:
+ try:
+ import slycot
+ slycot_installed = True
71
+ except:
72
+ slycot_installed = False
73
+ return slycot_installed
0 commit comments