Skip to content

Commit

Permalink
bug: fixed Bohr2Ang in deltanc, fixes #234
Browse files Browse the repository at this point in the history
  • Loading branch information
zerothi committed Jun 30, 2020
1 parent e0b49b9 commit 7408ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sisl/io/tbtrans/delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class deltancSileTBtrans(SileCDFTBtrans):

def read_supercell(self):
""" Returns the `SuperCell` object from this file """
cell = _a.arrayd(np.copy(self._value('cell')))
cell = _a.arrayd(np.copy(self._value('cell'))) * Bohr2Ang
cell.shape = (3, 3)

nsc = self._value('nsc')
Expand All @@ -77,7 +77,7 @@ def read_geometry(self, *args, **kwargs):
""" Returns the `Geometry` object from this file """
sc = self.read_supercell()

xyz = _a.arrayd(np.copy(self._value('xa')))
xyz = _a.arrayd(np.copy(self._value('xa'))) * Bohr2Ang
xyz.shape = (-1, 3)

# Create list with correct number of orbitals
Expand Down

0 comments on commit 7408ce5

Please sign in to comment.