Skip to content

Tests🔗

berhoel.splines.tests.test_splines 🔗

Test splines base functions.

Functions🔗

berhoel.splines.tests.test_plot_renner 🔗

Plot testst for renner splines.

Functions:

Functions🔗

berhoel.splines.tests.test_plot_renner.test_polynom 🔗

test_polynom(directory: Path, do_plot: Callable) -> None

Testing.

Source code in src/berhoel/splines/tests/test_plot_renner.py
def test_polynom(directory: Path, do_plot: Callable) -> None:  # noqa:C901,PLR0912,PLR0915
    """Testing."""

    # test the _polynom function
    vals = np.arange(0, 10, 0.1)
    poly = _polynom(vals, np.array((1.0, 3.0, 5.0, 7.0)))

    do_plot(
        ((np.asarray((np.arange(0, 10, 0.1), poly)), None),),
        directory / "poly.pdf",
        name="test_polynom",
    )

berhoel.splines.tests.test_line 🔗

Test class Line.

Classes🔗

berhoel.splines.tests.test_akima_subsplines 🔗

Tests for alima subsplines implementation.

Classes🔗