Skip to content

Commit

Permalink
chore: change to LAMMPS_TYPES
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLI-afk committed Oct 31, 2023
1 parent 6c1bac4 commit fde089e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apex/core/property/Phonon.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def _compute_lower(self, output_file, all_tasks, all_res):
self.supercell_size[2]))
os.system('phonopy-bandplot --gnuplot band.yaml > band.dat')

elif self.inter_param["type"] in ["deepmd", "meam", "eam_fs", "eam_alloy"]:
elif self.inter_param["type"] in LAMMPS_TYPE:
os.chdir(all_tasks[0])
assert os.path.isfile('FORCE_CONSTANTS'), "FORCE_CONSTANTS not created"
os.system('phonopy --dim="%s %s %s" -c POSCAR band.conf' % (
Expand All @@ -438,7 +438,7 @@ def _compute_lower(self, output_file, all_tasks, all_res):
with open('band.dat', 'r') as f:
ptr_data = f.read()

result_points = ptr_data.split('\n')[1]
result_points = ptr_data.split('\n')[1][4:]
result_lines = ptr_data.split('\n')[2:]
res_data[result_points] = result_lines

Expand Down

0 comments on commit fde089e

Please sign in to comment.