diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-07-30 16:48:11 -0600 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-07-31 21:21:13 +0200 |
commit | dec6658cdc10a23ad0e733fb52a814306033d88c (patch) | |
tree | dfa2a5d879f9ec10f75287a045070729cf415432 /numpy/lib/financial.py | |
parent | 0b5a6645ee110a8d4c6b5defd8c01791ee48bda1 (diff) | |
download | numpy-dec6658cdc10a23ad0e733fb52a814306033d88c.tar.gz |
MAINT: Fixes for problems in numpy/lib revealed by pyflakes.
Some of those problems look like potential coding errors. In those
cases a Fixme comment was made and the offending code, usually an
unused variable, was commented out.
Diffstat (limited to 'numpy/lib/financial.py')
-rw-r--r-- | numpy/lib/financial.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/numpy/lib/financial.py b/numpy/lib/financial.py index c085a5d53..e54614483 100644 --- a/numpy/lib/financial.py +++ b/numpy/lib/financial.py @@ -718,7 +718,6 @@ def mirr(values, finance_rate, reinvest_rate): Modified internal rate of return """ - values = np.asarray(values, dtype=np.double) n = values.size pos = values > 0 @@ -728,8 +727,3 @@ def mirr(values, finance_rate, reinvest_rate): numer = np.abs(npv(reinvest_rate, values*pos)) denom = np.abs(npv(finance_rate, values*neg)) return (numer/denom)**(1.0/(n - 1))*(1 + reinvest_rate) - 1 - -if __name__ == '__main__': - import doctest - import numpy as np - doctest.testmod(verbose=True) |