Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/1041176461/phonopy into …
Browse files Browse the repository at this point in the history
…develop
  • Loading branch information
1041176461 committed Oct 20, 2023
2 parents 15aedfb + 4b0a497 commit 8db4364
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions phonopy/interface/abacus.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _get_index(labels, num):
atom_magnetism = mags

magnetic_moments = atom_magnetism if atom_magnetism.all() else None

# to ase
if atom_pos_type == "Direct":
atoms = PhonopyAtoms(
Expand All @@ -204,9 +204,7 @@ def _get_index(labels, num):
magnetic_moments=magnetic_moments,
)
else:
warnings.warn(
"Only 'Direct' and 'Cartesian' are supported."
)
warnings.warn("Only 'Direct' and 'Cartesian' are supported.")

fd.close()
return atoms, atom_potential, atom_basis, atom_offsite_basis
Expand Down Expand Up @@ -295,9 +293,7 @@ def get_abacus_structure(atoms, pps, orbitals=None, abfs=None):
)
else:
line.append(
" ".join(_list_elem2str(atoms.scaled_positions[j]))
+ " "
+ "1 1 1"
" ".join(_list_elem2str(atoms.scaled_positions[j])) + " " + "1 1 1"
)
line.append(empty_line)
index += numbers[i]
Expand Down

0 comments on commit 8db4364

Please sign in to comment.