Skip to content

Commit 2e97580

Browse files
authored
Merge pull request #846 from pfebrer/840_bugnc
fixed bug reading geometry from ncSileSiesta
2 parents 08a401e + dc87328 commit 2e97580

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sisl/io/siesta/siesta_nc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ def read_geometry(self) -> Geometry:
143143
xyz.shape = (-1, 3)
144144

145145
if "BASIS" in self.groups:
146-
basis = self.read_basis()
147-
species = self.groups["BASIS"].variables["basis"][:] - 1
148-
atom = Atoms([basis[i] for i in species])
146+
atom = self.read_basis()
149147
else:
150148
atom = Atom(1)
151149

0 commit comments

Comments
 (0)