Skip to content

Commit

Permalink
Update kinisi/parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
arm61 authored Jan 24, 2025
1 parent fe805a5 commit b063fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kinisi/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ def _get_molecules(structure: "ase.atoms.Atoms" or "pymatgen.core.structure.Stru
theta_bar = np.arctan2(-zeta_bar, -xi_bar) + np.pi
new_s_coords = theta_bar / (2 * np.pi)

# Implementation of improved method for center of mass calculation as described with: XXXX
# Implementation of pseudo-centre of mass approach to centre of mass calculation (paper to come).
pseudo_com_recentering = ((s_coords - (new_s_coords + 0.5)[:, :, np.newaxis]) % 1)
com_pseudo_space = np.average(pseudo_com_recentering, weights=masses, axis=2)
corrected_com = (com_pseudo_space + (new_s_coords + 0.5)) % 1
Expand Down

0 comments on commit b063fb6

Please sign in to comment.