INNER CODE UNIT · Python
WaveFunction
ssebastianmag/hydrogen-wavefunctions · hwf_plots.py:19
class WaveFunction(BaseModel):
""" Wavefunction schema.
[Composite of 'hydrogen_wavefunctions.compute_psi_xz_slice'].
"""
n: int
l: int
m: int
Z: int = 1
use_reduced_mass: bool = True
M: Optional[float] = None
extent_a_mu: float = 20.0
grid_points: int = 600
phi_value: float = 0.0
phi_mode: Literal["plane", "constant"] = "plane"
def __hash__(self):
"""Returns a hash based on the value of all attributes"""
# hash a tuple of sorted (key, value) pairs