Skip to content

Commit

Permalink
actual actual docstring fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasibule committed Nov 22, 2023
1 parent e36c5f1 commit ec93856
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions quantlib/time/daycounters/actual_actual.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The day count can be calculated according to:
- the AFB convention, also known as "Actual/Actual (Euro)".
For more details, refer to
http://www.isda.org/publications/pdf/Day-Count-Fracation1999.pdf
https://www.isda.org/a/pIJEE/The-Actual-Actual-Day-Count-Fraction-1999.pdf
'''

cimport quantlib.time._daycounter as _daycounter
Expand All @@ -20,12 +20,9 @@ from quantlib.time.daycounter cimport DayCounter
cdef class ActualActual(DayCounter):

def __init__(self, Convention convention=Convention.ISDA):
self._thisptr = <_daycounter.DayCounter*> new \
_aa.ActualActual(convention)

ActualActual.__doc__ = """ Actual/Actual day count
""" Actual/Actual day count
The day count can be calculated according to:
The day count can be calculated according to:
- the ISDA convention, also known as "Actual/Actual (Historical)",
"Actual/Actual", "Act/Act", and according to ISDA also "Actual/365",
Expand All @@ -35,10 +32,10 @@ ActualActual.__doc__ = """ Actual/Actual day count
- the AFB convention, also known as "Actual/Actual (Euro)".
For more details, refer to
http://www.isda.org/publications/pdf/Day-Count-Fracation1999.pdf
Valid names for ACT/ACT daycounters are: \n {}
""".format([])
https://www.isda.org/a/pIJEE/The-Actual-Actual-Day-Count-Fraction-1999.pdf
"""
self._thisptr = <_daycounter.DayCounter*> new \
_aa.ActualActual(convention)

cdef _daycounter.DayCounter* from_name(str convention):

Expand Down

0 comments on commit ec93856

Please sign in to comment.