Coverage for /builds/kinetik161/ase/ase/gui/utils.py: 80.00%
5 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
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()