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 70032ab commit 7ed0a8aCopy full SHA for 7ed0a8a
pvlib/singlediode.py
@@ -13,8 +13,9 @@
13
try:
14
from scipy.optimize import brentq
15
except ImportError:
16
- def brentq(): raise NotImplementedError(
17
- "brentq can't be imported because scipy isn't installed")
+ def brentq(*a, **kw):
+ raise ImportError(
18
+ "brentq couldn't be imported. Is SciPy installed?")
19
20
# FIXME: change this to newton when scipy-1.2 is released
21
0 commit comments