genedan / TmVal

Time Value of Money - a Python package for mathematical interest theory, annuity, and bond calculations.
https://genedan.com/tmval/docs
GNU General Public License v3.0
30 stars 4 forks source link

npv() should be able to work without a discount function #8

Closed genedan closed 4 years ago

genedan commented 4 years ago

Expected behavior:

When supplying npv() with discounted payments, I would expect for it to work without needing to supply a discount function.

Observed behavior:

Traceback (most recent call last):
  ...
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-3-822aaf6bee2c>", line 7, in <module>
    test = npv(payments=payments)
TypeError: npv() missing 1 required positional argument: 'discount_func'