Skip to content

Commit

Permalink
fix(SwtListBudget): totim was not being read correctly for SEAWAT lis…
Browse files Browse the repository at this point in the history
…t file (#910)

Closes #681
  • Loading branch information
langevin-usgs committed Jun 10, 2020
1 parent 4fc61d5 commit eed5afd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flopy/utils/mflistfile.py
Expand Up @@ -893,6 +893,14 @@ def _get_totim(self, ts, sp, seekpoint):
elif '-----------------------------------------------------------' in line:
line = self.f.readline()
break

if isinstance(self, SwtListBudget):
translen = self._parse_time_line(line)
line = self.f.readline()
if translen is None:
print('error parsing translen for ts,sp', ts, sp)
return np.NaN, np.NaN, np.NaN

tslen = self._parse_time_line(line)
if tslen is None:
print('error parsing tslen for ts,sp', ts, sp)
Expand Down

0 comments on commit eed5afd

Please sign in to comment.