Open R1j1t opened 7 months ago
Should the string representations for Spin.up/Spin.down be "up" and "down" respectively?
Spin.up
Spin.down
https://github.com/materialsproject/pymatgen/blob/ac8a7e9cd93ba9f7afeaced45dc28af6d4e151d4/pymatgen/electronic_structure/core.py#L29-L30
Similar to OrbitalType:
OrbitalType
https://github.com/materialsproject/pymatgen/blob/ac8a7e9cd93ba9f7afeaced45dc28af6d4e151d4/pymatgen/electronic_structure/core.py#L42-L43
Changing the __repr__ would be a safer option than changing __str__ if we want something more readable.
__repr__
__str__
Should the string representations for
Spin.up
/Spin.down
be "up" and "down" respectively?https://github.com/materialsproject/pymatgen/blob/ac8a7e9cd93ba9f7afeaced45dc28af6d4e151d4/pymatgen/electronic_structure/core.py#L29-L30
Similar to
OrbitalType
:https://github.com/materialsproject/pymatgen/blob/ac8a7e9cd93ba9f7afeaced45dc28af6d4e151d4/pymatgen/electronic_structure/core.py#L42-L43