Skip to content

Commit

Permalink
modified amortization
Browse files Browse the repository at this point in the history
  • Loading branch information
aalfonsi authored and aalfonsi committed Oct 11, 2023
1 parent 6673ee4 commit 127bc4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Amortization.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def amortize(scheme, plan, startValue, componentLife):
pcts = MACRS.get(ys, None)
if pcts is None:
raise IOError('Provided MACRS "{}" is not allowed.'.format(ys))
print(pcts)
print(startValue)
print(alpha)
alpha[1:len(pcts)+1] = pcts * startValue
elif lscheme == 'custom':
alpha[1:len(plan)+1] = np.asarray(plan)/100. * startValue
Expand Down

0 comments on commit 127bc4f

Please sign in to comment.