diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2019-02-05 13:54:17 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2019-02-05 13:54:17 -0500 |
| commit | 68a86b75970b66fa691a9377e0006ac17fe11131 (patch) | |
| tree | 5007452ac187985fb190c387f05abc54f77e13ac | |
| parent | 4d112bf0881abba38f947c3924ba071e8bd57ae5 (diff) | |
| download | pyisda-68a86b75970b66fa691a9377e0006ac17fe11131.tar.gz | |
Revert "use curve's own recoveries"
This reverts commit 4d112bf0881abba38f947c3924ba071e8bd57ae5.
| -rw-r--r-- | pyisda/curve.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyisda/curve.pyx b/pyisda/curve.pyx index 0713082..6af2176 100644 --- a/pyisda/curve.pyx +++ b/pyisda/curve.pyx @@ -798,7 +798,7 @@ cdef class SpreadCurve(Curve): @cython.boundscheck(False) def par_spread(self, today, step_in_date, start_date, end_dates, - YieldCurve yc not None, bint pay_accrued_on_default=True): + double[:] recovery_rates, YieldCurve yc, bint pay_accrued_on_default): cdef TDate today_c = pydate_to_TDate(today) cdef TDate step_in_date_c = pydate_to_TDate(step_in_date) cdef TDate start_date_c = pydate_to_TDate(start_date) @@ -830,7 +830,7 @@ cdef class SpreadCurve(Curve): b'NONE', yc._thisptr.get(), self._thisptr.get(), - self.recovery_rates.get(), + &recovery_rates[0], par_spreads) free(end_dates_c) cdef list r = [] |
