Skip to content

Commit

Permalink
Merge 4b25724 into efc2c27
Browse files Browse the repository at this point in the history
  • Loading branch information
ketch committed Feb 24, 2019
2 parents efc2c27 + 4b25724 commit 1fd715f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pyclaw/gauges.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def read(self, gauge_id, path=None, use_pandas=False):
self.q = pandas.DataFrame()
else:
data = numpy.loadtxt(gauge_path, comments="#")
if len(x.shape) == 1:
x = np.array([x])
self.level = data[:, 0].astype(numpy.int64)
self.t = data[:, 1]
self.q = data[:, 2:].transpose()
Expand Down

0 comments on commit 1fd715f

Please sign in to comment.