Skip to content

Commit

Permalink
in _calculate_normal_modes_and_frequencies
Browse files Browse the repository at this point in the history
each mode is represented by a python float rather than an np.float
  • Loading branch information
JohnKendrick committed Nov 13, 2024
1 parent 630aeea commit 5c9612a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PDielec/GenericOutputReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ def calculate_mass_weighted_normal_modes(self):
self.mass_weighted_normal_modes, self.frequencies = self._calculate_normal_modes_and_frequencies(hessian,self.nions)
if self.debug:
print("calculated frequencies", self.frequencies)
print("mass-weighted normal modes", self.mass_weighted_normal_modes)
# end for i
return self.mass_weighted_normal_modes

Expand Down Expand Up @@ -834,7 +835,7 @@ def _calculate_normal_modes_and_frequencies(self,hessian, natoms):
mode = []
n = 0
for _j in range(natoms):
modea = [eig_vec[n][i], eig_vec[n+1][i], eig_vec[n+2][i]]
modea = [eig_vec[n][i].item(), eig_vec[n+1][i].item(), eig_vec[n+2][i].item()]
n = n + 3
mode.append(modea)
mass_weighted_normal_modes.append(mode)
Expand Down

0 comments on commit 5c9612a

Please sign in to comment.