diff --git a/benchmarks/ampform.py b/benchmarks/ampform.py index 54f76c16..981688e4 100644 --- a/benchmarks/ampform.py +++ b/benchmarks/ampform.py @@ -49,7 +49,7 @@ def formulate_amplitude_model( builder = ampform.get_builder(reaction) for name in reaction.get_intermediate_particles().names: - builder.set_dynamics(name, create_relativistic_breit_wigner_with_ff) + builder.dynamics.assign(name, create_relativistic_breit_wigner_with_ff) return builder.formulate() diff --git a/pyproject.toml b/pyproject.toml index a68c3ae1..f51aaa3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -278,7 +278,6 @@ filterwarnings = [ "ignore:module 'sre_constants' is deprecated:DeprecationWarning", "ignore:numpy.ufunc size changed, may indicate binary incompatibility.*:RuntimeWarning", "ignore:os\\.fork\\(\\) was called\\. os\\.fork\\(\\) is incompatible with multithreaded code, and JAX is multithreaded, so this will likely lead to a deadlock\\.:RuntimeWarning", - "ignore:set_dynamics\\(\\) will be removed in favor of dynamics\\.assign\\(\\):DeprecationWarning", "ignore:unclosed .*:ResourceWarning", ] markers = ["slow: marks tests as slow (select with '-m slow')"]