Skip to content

Commit

Permalink
Merge pull request #25 from jackgillett101/time_grid_required_times
Browse files Browse the repository at this point in the history
Adding the requiredTimes constructor for TimeGrid
  • Loading branch information
nhaga committed Nov 13, 2020
2 parents 5b38ee3 + c1e0ca6 commit 04a60ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/dates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,12 @@ TimeGrid
t = ql.TimeGrid(10, 5)
t.dt(4)
If there are certain times that need to appear in the TimeGrid, pass them in as a list

.. function:: ql.TimeGrid(requiredTimes, steps)

.. code-block:: python
[t for t in ql.TimeGrid([1, 2.5, 4], 10)]

0 comments on commit 04a60ea

Please sign in to comment.