Skip to content

Commit 7ed0a8a

Browse files
mikofskicwhanse
authored andcommitted
make sure dummy brentq can be called with args and kwargs (#616)
* make sure dummy brentq can be called with args and kwargs * stickler
1 parent 70032ab commit 7ed0a8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pvlib/singlediode.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
try:
1414
from scipy.optimize import brentq
1515
except ImportError:
16-
def brentq(): raise NotImplementedError(
17-
"brentq can't be imported because scipy isn't installed")
16+
def brentq(*a, **kw):
17+
raise ImportError(
18+
"brentq couldn't be imported. Is SciPy installed?")
1819

1920
# FIXME: change this to newton when scipy-1.2 is released
2021
try:

0 commit comments

Comments
 (0)