Skip to content

Commit

Permalink
MAINT: use dynamics.assign() in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Mar 4, 2024
1 parent bcb9f21 commit 1d7f353
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/ampform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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')"]
Expand Down

0 comments on commit 1d7f353

Please sign in to comment.