Update npt.py
the dof of constrainted atoms should be removed since these atoms have no kinetic energy.
Here: Your concise description of the content of this merge request.
Checklist
- [+] I am familiar with ASE's contribution guidelines.
-
Doc strings in code changed in this MR are up to date. -
Unit tests have been added for new or changed code. -
Issue is resolved via "closes #XXXX" if applicable.