-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdded9f
commit 7246e3a
Showing
3 changed files
with
44 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from quantlib.time.calendar cimport Calendar | ||
|
||
cdef class NullCalendar(Calendar): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
cimport quantlib.time.calendars._null_calendar as _nc | ||
from quantlib.time.calendar cimport Calendar | ||
|
||
|
||
cdef class NullCalendar(Calendar): | ||
'''Calendar for reproducing theoretical calculations. | ||
This calendar has no holidays. It ensures that dates at whole-month | ||
This calendar has no holidays. It ensures that dates at whole-month | ||
distances have the same day of month. | ||
''' | ||
|
||
def __cinit__(self): | ||
self._thisptr = _nc.NullCalendar() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters