Skip to content
Snippets Groups Projects
Commit 526a8b2b authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fixing atomic_positions

parent ab86b6be
No related branches found
No related tags found
No related merge requests found
...@@ -215,9 +215,9 @@ class VasprunContext(object): ...@@ -215,9 +215,9 @@ class VasprunContext(object):
backend = parser.backend backend = parser.backend
gIndexes = parser.tagSections[pathStr] gIndexes = parser.tagSections[pathStr]
self.lastSystemDescription = gIndexes["section_system"] self.lastSystemDescription = gIndexes["section_system"]
cell = None
for el in element: for el in element:
if (el.tag == "crystal"): if (el.tag == "crystal"):
cell = None
for cellEl in el: for cellEl in el:
if cellEl.tag == "varray": if cellEl.tag == "varray":
name = cellEl.attrib.get("name", None) name = cellEl.attrib.get("name", None)
...@@ -239,7 +239,7 @@ class VasprunContext(object): ...@@ -239,7 +239,7 @@ class VasprunContext(object):
name = el.attrib.get("name", None) name = el.attrib.get("name", None)
if name == "positions": if name == "positions":
pos = getVector(el) pos = getVector(el)
backend.addArrayValues("atom_positions", np.asarray(pos)) backend.addArrayValues("atom_positions", np.dot(np.asarray(pos), np.transpose(cell)))
else: else:
backend.pwarn("Unexpected varray in structure %s" % el.attrib) backend.pwarn("Unexpected varray in structure %s" % el.attrib)
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment