Commit c01a5053 authored by Ask Hjorth Larsen's avatar Ask Hjorth Larsen
Browse files

fix bug where positions would be defined assuming wrong table layout

parent d90138cf
......@@ -234,8 +234,10 @@ class MolcasContext(object):
def onClose_section_system(self, backend, gindex, section):
matrix ='coordinates')
atom_labels = matrix[:, 1]
coords = matrix[:, 2:5].astype(float)
assert matrix.shape[1] == 4
atom_labels = matrix[:, 0]
coords = matrix[:, 1:4].astype(float)
assert coords.shape[1] == 3
coords = convert_unit(coords, 'bohr')
backend.addArrayValues('atom_labels', atom_labels)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment