Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1def get_magmoms(atoms):
2 if atoms.calc is not None:
3 if not atoms.calc.calculation_required(atoms, ['magmoms']):
4 return atoms.get_magnetic_moments()
5 return atoms.get_initial_magnetic_moments()