From 5281902bb0f4c062c0d037119520fee71b41a784 Mon Sep 17 00:00:00 2001 From: Akio Taniguchi Date: Mon, 25 Nov 2024 16:36:25 +0000 Subject: [PATCH] #222 Ignore type checking errors on xarray --- decode/select.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decode/select.py b/decode/select.py index 8e816ad..7ef2057 100644 --- a/decode/select.py +++ b/decode/select.py @@ -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)