Skip to content

Commit

Permalink
Simplify even more print_valuation() in float_leg
Browse files Browse the repository at this point in the history
  • Loading branch information
nashquant committed Jul 30, 2023
1 parent 4c3345d commit f36fa8a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions financepy/products/rates/swap_float_leg.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ def print_valuation(self):
return

header = [ "PAY_NUM", "PAY_DATE", "NOTIONAL",
"DAYS", "YEARFRAC", "IBOR", "PMNT",
"DF", "PV", "CUM_PV"]
"IBOR", "PMNT", "DF", "PV", "CUM_PV"]

rows = []
num_flows = len(self._payment_dates)
Expand All @@ -284,8 +283,6 @@ def print_valuation(self):
iFlow + 1,
self._payment_dates[iFlow],
round(self._notional_array[iFlow], 0),
self._accrued_days[iFlow],
round(self._year_fracs[iFlow],4),
round(self._rates[iFlow] * 100.0, 4),
round(self._payments[iFlow], 2),
round(self._paymentDfs[iFlow], 4),
Expand Down

0 comments on commit f36fa8a

Please sign in to comment.