From 37f4defa6667280c2676a9bb04b319cf4cb63701 Mon Sep 17 00:00:00 2001 From: Eric Giguere Date: Mon, 1 Apr 2024 14:46:48 +0900 Subject: [PATCH 1/2] Change default step controler --- src/qutip_jax/ode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qutip_jax/ode.py b/src/qutip_jax/ode.py index 10a7448..7047c2c 100644 --- a/src/qutip_jax/ode.py +++ b/src/qutip_jax/ode.py @@ -29,7 +29,7 @@ class DiffraxIntegrator(Integrator): integrator_options: dict = { "dt0": 0.0001, "solver": diffrax.Tsit5(), - "stepsize_controller": diffrax.ConstantStepSize(), + "stepsize_controller": diffrax.PIDController(atol=1e-8, rtol=1e-6), "max_steps": 100000, } From 0f00062be4d42d38585dd5e3fcd4355010df05b9 Mon Sep 17 00:00:00 2001 From: Eric Giguere Date: Fri, 29 Mar 2024 09:55:04 +0900 Subject: [PATCH 2/2] Filter complex warnings --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 345b968..2c3aa0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ requires = [ build-backend = "setuptools.build_meta" [tool.pytest.ini_options] -addopts = "-Werror --strict-config --strict-markers" +addopts = "-Werror --strict-config --strict-markers -W \"ignore:Complex dtype:UserWarning\"" testpaths = [ "tests", ]