From d49d5c4a7c1ab00950c19f5980624c9896026d83 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Fri, 4 Nov 2016 18:09:12 -0400 Subject: fix pickling --- pyisda/legs.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyisda/legs.pyx b/pyisda/legs.pyx index a2d9d0d..5665e43 100644 --- a/pyisda/legs.pyx +++ b/pyisda/legs.pyx @@ -109,7 +109,7 @@ cdef class FeeLeg: def __reduce__(self): return (self.__class__, (TDate_to_pydate(self._thisptr.accStartDates[0]), - TDate_to_pydate(self._thisptr.accEndDates[self._thisptr.nbDates-1]), + TDate_to_pydate(self._thisptr.payDates[self._thisptr.nbDates-1]), self._thisptr.accrualPayConv, self._thisptr.notional, self._thisptr.couponRate, -- cgit v1.2.3-70-g09d2