Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix boolean dask index in tests #165

Merged
merged 8 commits into from
Jun 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 9, 2023
commit bdcffa9ef88130edbebc41a80fe83b46eaf9ba07
2 changes: 1 addition & 1 deletion xarrayutils/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _linregress_ufunc(a, b, nanmask=False):
idxa = idxa.load()
if isinstance(idxb, dsa.core.Array):
idxb = idxb.load()

mask = np.logical_and(~idxa, ~idxb)
if sum(~mask) < len(b): # only applies the mask if not all nan
a = a[mask]
Expand Down
Loading