Skip to content

Commit

Permalink
address my own comments on PR
Browse files Browse the repository at this point in the history
- add some notes to lizard.py
- improve some docstrings, styling, etc.
  • Loading branch information
dbrakenhoff committed Jan 9, 2024
1 parent 8360487 commit 337db2a
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 207 deletions.
4 changes: 3 additions & 1 deletion hydropandas/extensions/gwobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ def get_zvec(x, y, gwf=None, ds=None):
zvec[mask] = zvec[idx[mask]]
else:
sel = ds.sel(x=x, y=y, method="nearest")
first_notna = np.nonzero(np.isfinite(np.atleast_1d(sel["top"].values)))[0][0]
first_notna = np.nonzero(np.isfinite(np.atleast_1d(sel["top"].values)))[0][
0
]
if sel["top"].values.shape == tuple():
top = np.atleast_1d(sel["top"].values)
else:
Expand Down
Loading

0 comments on commit 337db2a

Please sign in to comment.