You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current implementation, when no solution is returned by roots, the function return np.nan. But if no real solution is returned, the function fails with an exception:
ValueError: attempt to get argmin of an empty sequence
The text was updated successfully, but these errors were encountered:
charris
changed the title
numpy irr should check weather the masked solution is empty
numpy irr should check whether the masked solution is empty
Nov 30, 2015
In the current implementation, when no solution is returned by roots, the function return np.nan. But if no real solution is returned, the function fails with an exception:
The proposed fix is to add the following to https://github.com/numpy/numpy/blob/master/numpy/lib/financial.py#L654
The text was updated successfully, but these errors were encountered: