INNER CODE UNIT · Python

__hash__

ssebastianmag/hydrogen-wavefunctions · hwf_plots.py:34

    def __hash__(self):
        """Returns a hash based on the value of all attributes"""
        # hash a tuple of sorted (key, value) pairs
        # Sort to make sure changing the order of attributes doesn't affect the hash
        return hash(tuple(sorted(self.__dict__.items())))

def plot_hydrogen_wavefunction_xz(
        wf: WaveFunction,
        colormap: str = "rocket",
        use_dark_theme: bool = False,
        k: Optional[float] = None,
        exposure: Optional[float] = 0.0
):
    """ Plot hydrogen wavefunction restricted to the y=0 (x–z) plane.

        Parameters:
            wf (WaveFunction): Wavefunction parameters.
            colormap (str): Seaborn colormap name.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…