tests.paper.test_plane
Plot the absolute and relative relative errors of different integrators for the \(\xi, v\) plane. See Hindmarsh et al., 2019 fig. 9 Excerpts of these plots are in Hindmarsh et al., 2019 fig. 10 and Hindmarsh et al., 2021 fig. 15.
Classes
- class tests.paper.test_plane.TestPlane(methodName='runTest')
Bases:
TestCase- FIGSIZE = array([27.2, 15.3])
- FIG_PATH = '/home/docs/checkouts/readthedocs.org/user_builds/pttools/checkouts/main/test-results/figures/integrators'
- grid_shape: Tuple[int, int] = (2, 5)
- iter_times: Dict[int, float] = {}
- mean_abs_diffs: Dict[int, float] = {}
- mean_rel_diffs: Dict[int, float] = {}
- names: Dict[int, str] = {}
- classmethod process_output(name, fig, axs, diffs)
- classmethod setUpClass()
Hook method for setting up class fixture before running tests in the class.
- Return type:
None
- classmethod tearDownClass()
Hook method for deconstructing the class fixture after running all tests in the class.
- Return type:
None
- test_plane_bdf()
- test_plane_dop853()
- test_plane_lsoda()
- test_plane_numba_lsoda()
- test_plane_odeint()
- test_plane_radau()
- test_plane_rk23()
- test_plane_rk45()
- validate_plane(method='odeint', rtol=1e-7, i=None, ax=None, perf_iters=10)
- Parameters:
method (str)
rtol (float)
i (int)
ax (Tuple[int, int])
perf_iters (int)