Skip to content

Commit 10e2743

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent de28a8a commit 10e2743

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

docs/usage/dynamics/k-matrix.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,9 +1492,9 @@
14921492
" *sp.symbols(f\"s m_a{i} m_b{i}\", nonnegative=True)\n",
14931493
" ).doit()\n",
14941494
"\n",
1495-
" expr = expr.xreplace({\n",
1496-
" sp.sqrt(rho_i(i)): 1 for i in range(n_channels)\n",
1497-
" }).xreplace({sp.conjugate(sp.sqrt(rho_i(i))): 1 for i in range(n_channels)})\n",
1495+
" expr = expr.xreplace(\n",
1496+
" {sp.sqrt(rho_i(i)): 1 for i in range(n_channels)}\n",
1497+
" ).xreplace({sp.conjugate(sp.sqrt(rho_i(i))): 1 for i in range(n_channels)})\n",
14981498
" expr = expr.xreplace({s: m**2})\n",
14991499
" expr = symplot.substitute_indexed_symbols(expr)\n",
15001500
" np_expr, sliders = symplot.prepare_sliders(expr, m)\n",

src/ampform/helicity/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
def _order_component_mapping(
7979
mapping: Mapping[str, sp.Expr]
8080
) -> OrderedDict[str, sp.Expr]:
81-
return collections.OrderedDict([
82-
(key, mapping[key]) for key in sorted(mapping, key=natural_sorting)
83-
])
81+
return collections.OrderedDict(
82+
[(key, mapping[key]) for key in sorted(mapping, key=natural_sorting)]
83+
)
8484

8585

8686
def _order_symbol_mapping(

src/ampform/helicity/align/dpd.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ def _(obj: ReactionInfo) -> ReactionInfo: # type: ignore[misc]
130130

131131
@relabel_edge_ids.register(StateTransitionCollection)
132132
def _(obj: StateTransitionCollection) -> StateTransitionCollection: # type: ignore[misc]
133-
return StateTransitionCollection([ # no attrs.evolve() for __attrs_post_init__()
134-
relabel_edge_ids(transition) for transition in obj.transitions
135-
])
133+
return StateTransitionCollection(
134+
[ # no attrs.evolve() for __attrs_post_init__()
135+
relabel_edge_ids(transition) for transition in obj.transitions
136+
]
137+
)
136138

137139

138140
@relabel_edge_ids.register(StateTransition)

src/ampform/kinematics/angles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ def __recursive_helicity_angles(
115115
sub_momenta_ids = determine_attached_final_state(topology, state_id)
116116
if len(sub_momenta_ids) > 1:
117117
# add all of these momenta together -> defines new subsystem
118-
four_momentum = ArraySum(*[
119-
four_momenta[i] for i in sub_momenta_ids
120-
])
118+
four_momentum = ArraySum(
119+
*[four_momenta[i] for i in sub_momenta_ids]
120+
)
121121

122122
# boost all of those momenta into this new subsystem
123123
phi_expr = Phi(four_momentum)

0 commit comments

Comments
 (0)