You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abacus/stru: return spins only when atomic magnetic moment is specified (#800)
The old version will induce a bug that dpdata will always store the spin
information, and when dpdata save it to lammps format, the spin
information will also be written, which is invalid for a non-spin lammps
job.
Now, the spin information is saved to dpdata only when the magnetic
moment of one atom is specified, which is necessary for a spin job.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Spin data is now processed to include only explicitly defined moments,
ensuring accurate output.
- **Documentation**
- User-facing documentation has been updated to clarify when spin
information appears.
- **Tests**
- Test entries for atomic positions have been streamlined by removing
redundant markers.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: root <pxlxingliang>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
0 commit comments