Skip to content

Commit

Permalink
fix(CellBudgetFil): get_ts() wasnt setting totim in the result contai…
Browse files Browse the repository at this point in the history
…ner if a model instance is avail (#652)

* added grid interect to util init

* fix(binaryfile): CellBudgetFile.get_ts() wasnt setting times correctly if no times were passed but model instance is available
  • Loading branch information
jtwhite79 authored and langevin-usgs committed Sep 26, 2019
1 parent 476c861 commit 7b078ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flopy/utils/binaryfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,8 @@ def get_ts(self, idx, text=None, times=None):
'not {}'.format(len(times))
raise Exception(etxt)
timesint = times
for idx, t in enumerate(timesint):
result[idx, 0] = t
for idx, t in enumerate(timesint):
result[idx, 0] = t

for itim, k in enumerate(kk):
v = self.get_data(kstpkper=k, text=text, full3D=True)
Expand Down

0 comments on commit 7b078ca

Please # to comment.