Skip to content

Commit

Permalink
Fraction-literal in StateTransitionManager-constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
grayson-helmholz committed Nov 11, 2024
1 parent a6ab1f8 commit a365f9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qrules/transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from collections import defaultdict
from copy import copy, deepcopy
from enum import Enum, auto
from fractions import Fraction
from multiprocessing import Pool
from typing import TYPE_CHECKING, Literal, overload

Expand Down Expand Up @@ -242,7 +243,7 @@ def __init__( # noqa: C901, PLR0912, PLR0917
reload_pdg: bool = False,
mass_conservation_factor: float | None = 3.0,
max_angular_momentum: int = 1,
max_spin_magnitude: float = 2.0,
max_spin_magnitude: Fraction = Fraction(2, 1),
number_of_threads: int | None = None,
) -> None:
if number_of_threads is not None:
Expand Down

0 comments on commit a365f9b

Please sign in to comment.