From bf9833deebff40fb0dfd6c72f2621b1f5a85ca0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Sierro?= Date: Wed, 8 Nov 2023 09:53:25 +0100 Subject: [PATCH] minore improvements --- pyproject.toml | 2 +- src/scgenerator/plotting.py | 2 +- tests/test_integrator.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f66d7f1..6039d1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "scgenerator" -version = "0.3.22" +version = "0.3.23" description = "Simulate nonlinear pulse propagation in optical fibers" readme = "README.md" authors = [{ name = "Benoit Sierro", email = "benoit.sierro@iap.unibe.ch" }] diff --git a/src/scgenerator/plotting.py b/src/scgenerator/plotting.py index f51683e..05e4d4b 100644 --- a/src/scgenerator/plotting.py +++ b/src/scgenerator/plotting.py @@ -1168,7 +1168,7 @@ def summary_plot( axes: tuple[Axes, Axes] | None = None, wl_db="1D", time_db=False, - cmap: str | matplotlib.colors.LinearSegmentedColormap = "viridis", + cmap: str | matplotlib.colors.LinearSegmentedColormap = None, ): wl_int = specs.wl_int time_int = specs.time_int diff --git a/tests/test_integrator.py b/tests/test_integrator.py index 5e1c02d..3073839 100644 --- a/tests/test_integrator.py +++ b/tests/test_integrator.py @@ -29,7 +29,7 @@ def test_rk43_soliton(plot=False): n = 1024 l0 = 835e-9 w0 = sc.units.m(l0) - b2 = sc.fiber.D_to_beta2(sc.units.D_ps_nm_km(24), l0) + b2 = sc.fiber.dispersion_parameter_to_beta2(sc.units.D_ps_nm_km(24), l0) gamma = 0.08 t0_fwhm = 50e-15 p0 = 1.26e3