Skip to content

Commit

Permalink
refactor: use canonical-helicity by default (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Jun 17, 2021
1 parent c409ece commit db38847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/qrules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def generate_transitions( # pylint: disable=too-many-arguments
final_state: Sequence[StateDefinition],
allowed_intermediate_particles: Optional[List[str]] = None,
allowed_interaction_types: Optional[Union[str, List[str]]] = None,
formalism: str = "helicity",
formalism: str = "canonical-helicity",
particle_db: Optional[ParticleCollection] = None,
mass_conservation_factor: Optional[float] = 3.0,
max_angular_momentum: int = 2,
Expand Down
2 changes: 2 additions & 0 deletions tests/channels/test_jpsi_to_gamma_pi0_pi0.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_number_of_solutions(
allowed_interaction_types="strong and EM",
allowed_intermediate_particles=allowed_intermediate_particles,
number_of_threads=1,
formalism="helicity",
)
assert len(result.transitions) == number_of_solutions
assert result.get_intermediate_particles().names == set(
Expand All @@ -49,6 +50,7 @@ def test_id_to_particle_mappings(particle_database):
allowed_interaction_types="strong",
allowed_intermediate_particles=["f(0)(980)"],
number_of_threads=1,
formalism="helicity",
)
assert len(result.transitions) == 4
iter_solutions = iter(result.transitions)
Expand Down

0 comments on commit db38847

Please sign in to comment.