Skip to content

Commit fb5498a

Browse files
committed
phonon.py vecs calc
1 parent 4c44d67 commit fb5498a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/phonon.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ def parseargs():
241241
else:
242242
smooth_mat = None
243243

244-
#freqs, vecs = phonons(hess_mw, bz, smooth_mat)
245-
dispersion = phonon_freqs(hess_mw, bz, smooth_mat)
244+
#dispersion = phonon_freqs(hess_mw, bz, smooth_mat)
245+
#for kvec, freqs in zip(bz, dispersion):
246+
# print " ".join([pretty(k) for k in kvec]),
247+
# print " ".join([pretty(f) for f in freqs])
248+
freqs, vecs = phonon(hess_mw, bz, smooth_mat)
246249

247-
for kvec, freqs in zip(bz, dispersion):
248-
print " ".join([pretty(k) for k in kvec]),
249-
print " ".join([pretty(f) for f in freqs])
250250
if args.binary_file:
251-
np.savez(args.binary_file, kmesh=bz, freqs=np.array(dispersion))
251+
np.savez(args.binary_file, kmesh=bz, freqs=freqs, vecs=vecs)

0 commit comments

Comments
 (0)