Coverage for /builds/debichem-team/python-ase/ase/gui/utils.py: 80.00%

5 statements  

« prev     ^ index     » next       coverage.py v7.5.3, created at 2025-03-06 04:00 +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()