-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This addresses an old inconsistency described in #459. For now the old option should still work but raise a DeprecationWarning. We will probably remove the `interval` argument in about 6 months or so. Closes #459
- Loading branch information
1 parent
df40854
commit 58c2625
Showing
21 changed files
with
187 additions
and
140 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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -17,33 +17,33 @@ | |
~trackers.RuntimeTracker | ||
~trackers.ConsistencyTracker | ||
~interactive.InteractivePlotTracker | ||
Some trackers can also be referenced by name for convenience when using them in | ||
simulations. The lit of supported names is returned by | ||
:func:`~pde.trackers.base.get_named_trackers`. | ||
Multiple trackers can be collected in a :class:`~base.TrackerCollection`, which provides | ||
methods for handling them efficiently. Moreover, custom trackers can be implemented by | ||
deriving from :class:`~.trackers.base.TrackerBase`. Note that trackers generally receive | ||
a view into the current state, implying that they can adjust the state by modifying it | ||
in-place. Moreover, trackers can interrupt the simulation by raising the special | ||
exception :class:`StopIteration`. | ||
in-place. Moreover, trackers can abort the simulation by raising the special exception | ||
:class:`StopIteration`. | ||
For each tracker, the time intervals at which it is called can be decided using one | ||
of the following classes, which determine when the simulation will be interrupted: | ||
For each tracker, the time at which the simulation is interrupted can be decided using | ||
one of the following classes: | ||
.. autosummary:: | ||
:nosignatures: | ||
~interrupts.FixedInterrupts | ||
~interrupts.ConstantInterrupts | ||
~interrupts.LogarithmicInterrupts | ||
~interrupts.RealtimeInterrupts | ||
In particular, interrupts can be specified conveniently using | ||
:func:`~interrupts.interval_to_interrupts`. | ||
:func:`~interrupts.parse_interrupt`. | ||
.. codeauthor:: David Zwicker <[email protected]> | ||
""" | ||
|
||
|
@@ -55,6 +55,6 @@ | |
FixedInterrupts, | ||
LogarithmicInterrupts, | ||
RealtimeInterrupts, | ||
interval_to_interrupts, | ||
parse_interrupt, | ||
) | ||
from .trackers import * |
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
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
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
Oops, something went wrong.