physpyx.nuclide
Module Contents
Classes
Data
API
- physpyx.nuclide.logger
“getLogger(…)”
- class physpyx.nuclide.DecayData
Bases:
typing.TypedDict- color: str
None
- label: str
None
- ratio: float
None
- class physpyx.nuclide.PossibleDecays(color: str, label: str, channels: dict[str, str])
Bases:
enum.Enum- ALPHA
(“#3f80ae”, “$\alpha$”)
- FISSION
(“#52b552”, “SF”)
- TWO_PROTON
(“#52b552”, “$2p$”)
- PROTON
(“#7d7ad6”, “$p$”)
- BETA_PLUS
(“#d67d7a”, “$\beta^+$”)
- TWO_BETA_PLUS
(“#ca5753”, “$2\beta^+$”)
- STABLE
(“#c7522a”, “”)
- TWO_BETA_MINUS
(“#e5c185”, “$2\beta^-$”)
- BETA_MINUS
(“#fbf2c4”, “$\beta^-$”)
- NEUTRON
(“#74a892”, “$n$”)
- TWO_NEUTRON
(“#52b552”, “$2n$”)
- UNKOWN
(“#a0a0a0”, “”)
- class physpyx.nuclide.Channel(channel: str, prob: float)
Initialization
- property label: str
- property color: str
- __str__() str
- class physpyx.nuclide.DecayChannels(data: list[str])
Initialization
- __str__() str
- __getitem__(c: int) physpyx.nuclide.Channel
- class physpyx.nuclide.Radioactivity(data: list[str])
Initialization
- __str__() str
- __getitem__(c: int) physpyx.nuclide.Channel
- to_tex(N: int, Z: int) Generator[str]
- class physpyx.nuclide.Nuclide(data: list[str])
Initialization
- property stable: bool
- __str__() str
- __repr__() str
- __eq__(other: object) bool
- to_tex(*, with_symbol: bool = True, with_mass: bool = False, with_decay: bool = False) Generator[str]
- class physpyx.nuclide.NuclideTable
Initialization
- __iter__() Iterator[physpyx.nuclide.Nuclide]
- get(*, N: int | None = None, Z: int | None = None, A: int | None = None, symbol: str | None = None) physpyx.nuclide.Nuclide
Returns one Nuclide given by its symbol or either of those pairs (Z;N), (Z;A) or (N;A)
- Paramètres:
N – number of neutrons
Z – number of protons
A – number of nucleons
symbol – symbol of the nuclide (2H, 14C, 236U)
- range(*, N: Iterable[int] | None = None, Z: Iterable[int] | None = None, A: Iterable[int] | None = None) list[physpyx.nuclide.Nuclide]
- classmethod legend(nuclides: list[physpyx.nuclide.Nuclide], x: float, y: float, vertical: bool) Generator[str]
Displays a legend indicating the decay type.
- Paramètres:
nuclides – will legend only the decays given in the Nuclide list
x – x-position of the label (right of table if x=Nmax+1, left of table if x=Nmin-1)
y – y-position of the label (top of table if x=Zmax+1, bottom of table if x=Zmin-1)
vertical – orientation of the label
- classmethod define_colors() Generator[str]
Defines the colors of the decays.
- classmethod axis(nuclides: list[physpyx.nuclide.Nuclide]) Generator[str]
Displays the N-Z axis that surround the Nuclide list.