Unverified Commit 122bbe40 authored by Stefan Doerr's avatar Stefan Doerr Committed by GitHub
Browse files

fix minor issue in error message with non-existent self.lines (#4464)

parent 669c7fc7
...@@ -1334,7 +1334,7 @@ class AmberAsciiRestart(object): ...@@ -1334,7 +1334,7 @@ class AmberAsciiRestart(object):
hasbox = hasvels = True hasbox = hasvels = True
else: else:
raise TypeError('Badly formatted restart file. Has %d lines ' raise TypeError('Badly formatted restart file. Has %d lines '
'for %d atoms.' % (len(self.lines), self.natom)) 'for %d atoms.' % (len(lines), self.natom))
if self._asNumpy: if self._asNumpy:
coordinates = np.zeros((self.natom, 3), np.float32) coordinates = np.zeros((self.natom, 3), np.float32)
......
Markdown is supported
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