Skip to content

Commit

Permalink
#222 Ignore type checking errors on xarray
Browse files Browse the repository at this point in the history
  • Loading branch information
astropenguin committed Nov 25, 2024
1 parent 213769f commit 5281902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decode/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def by(
dems = dems.sel({coord_dim: ~dems[coord_name].isin(exclude)})

if min is not None:
dems = dems.sel({coord_dim: dems[coord_name] >= min})
dems = dems.sel({coord_dim: dems[coord_name] >= min}) # type: ignore

if max is not None:
dems = dems.sel({coord_dim: dems[coord_name] < max})
dems = dems.sel({coord_dim: dems[coord_name] < max}) # type: ignore

if sort:
dems = dems.sortby(coord_name)
Expand Down

0 comments on commit 5281902

Please sign in to comment.