-
Notifications
You must be signed in to change notification settings - Fork 40
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
create weights as dask array in test_deterministic.py #265
Comments
But this line doesn’t trigger compute https://github.com/xarray-contrib/xskillscore/blob/master/xskillscore/tests/test_deterministic.py#L72. Does it? |
Xarray have some testing for if dask objects compute: pydata/xarray#4898 (comment)
|
See #305 |
|
To slim the test down
|
|
Is this the same issue we talk about here? If so, I don't think the issue is that computation is triggered. The issue is that you can't boolean index a numpy array using a dask array. This happens in
(My apologies if this is not what you're talking about - I'm on my phone so can't check very thoroughly right now) |
Thanks @dougiesquire i think you are right. I haven't looked at the this for a few months so going through the steps again. As fair as I can tell the code is working but the values are not expected https://github.com/xarray-contrib/xskillscore/pull/305/checks?check_run_id=2517482958#step:7:5496 |
Oh strange, that doesn't sound like the old issue then... It's likely I'm wrong and confusing things further. Bedtime here, but I can try take a closer look tomorrow (if you guys haven't solved it already 🙂) |
I think the bottleneck for #221 Is that in a testing script we have something that adjusts the weights to fit the dimensions: https://github.com/xarray-contrib/xskillscore/blob/master/xskillscore/tests/test_deterministic.py#L72
This is called on a dask array https://github.com/xarray-contrib/xskillscore/blob/master/xskillscore/tests/test_deterministic.py#L161 which I believe causes computation.
We could either move to np before the call and cast to da after or think about rewriting it.
The text was updated successfully, but these errors were encountered: