Skip to content

Commit

Permalink
Chang poscar write.
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Oct 18, 2023
1 parent bc3f03c commit ff4ae5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jarvis/io/vasp/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def from_dict(self, d={}):
"""Construct Poscar object from a dictionary."""
return Poscar(atoms=Atoms.from_dict(d["atoms"]), comment=d["comment"])

def to_string(self):
def to_string(self, write_props=False):
"""Make the Poscar object to a string."""
header = (
str(self.comment)
Expand Down Expand Up @@ -101,7 +101,7 @@ def to_string(self):
else:
elcoords += " ".join(map(str, k[0])) + " " + k[1] + "\n"

if "T" in "".join(map(str, self.atoms.props[0])):
if write_props and "T" in "".join(map(str, self.atoms.props[0])):
middle = (
elname + "\n" + elcount + "\nSelective dynamics\n" + "Direct\n"
)
Expand Down

0 comments on commit ff4ae5b

Please sign in to comment.