-
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
map_blocks error with dask==2021.4 #288
Comments
@aaronspring @dougiesquire want to continue the convo here from xgcm/xhistogram#27 (comment) (the xhist wrapper for datasets). I forget is there a way to use pytest and remove the parametrize of do you have have to change it in the code base? The 50 ways it fails doesn't help. Looks as thought the tests failings are |
May have been my PR https://github.com/xgcm/xhistogram/pull/31/files where I moved |
Trying to check this now. It is failing within |
I don't think this is an issue with anything in from xhistogram.xarray import histogram as xhist
data = np.random.randint(0, 10, size=10)
a = xr.DataArray(data, coords=[range(len(data))], dims=["x"]).chunk().rename('a')
b = a.rename('b')
xhist(a, b,
bins=[np.array([-np.inf, 0.5, np.inf]), np.array([-np.inf, 0.5, np.inf])],
**{'dim': ['x'], 'bin_dim_suffix': '_bin'}) I'm wondering if the issue with dask=2021.03 has not yet been fully resolved. Still investigating... |
I think I've found the issue - see xgcm/xhistogram#27 (comment) |
Problem description
Tests fail:
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-dim0-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-dim0-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-dim1-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-dim1-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-dim2-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-dim2-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-time-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-time-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-dim4-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges0-dim4-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-dim0-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-dim0-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-dim1-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-dim1-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-dim2-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-dim2-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-time-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-time-chunked_ds]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-dim4-chunked_da]
FAILED xskillscore/tests/test_contingency.py::test_Contingency_table[category_edges1-dim4-chunked_ds]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-Dataset-True-True-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_rps_category_edges_None[True]FAILED xskillscore/tests/test_probabilistic.py::test_rps_category_edges_None[False]FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-Dataset-True-True-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-Dataset-True-True-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-Dataset-True-False-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-Dataset-True-False-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-Dataset-True-True-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-Dataset-True-False-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-Dataset-True-False-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-DataArray-True-True-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-Dataset-True-False-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-DataArray-True-True-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-Dataset-True-False-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-DataArray-True-True-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-Dataset-True-False-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-DataArray-True-True-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-DataArray-True-False-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-DataArray-True-True-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-DataArray-True-False-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-DataArray-True-False-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-DataArray-True-True-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_tuple-DataArray-True-False-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-DataArray-True-True-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-Dataset-True-True-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-DataArray-True-True-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-Dataset-True-False-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-DataArray-True-False-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-Dataset-True-True-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-Dataset-True-False-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-DataArray-True-False-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-Dataset-True-True-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-Dataset-True-False-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-DataArray-True-False-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-Dataset-True-True-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-Dataset-True-False-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-Dataset-True-True-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-DataArray-True-False-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[area-Dataset-True-False-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-DataArray-True-True-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-DataArray-True-False-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-DataArray-True-False-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-Dataset-True-True-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-DataArray-True-True-time-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-DataArray-True-False-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-DataArray-True-False-None-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-Dataset-True-True-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-DataArray-True-True-time-observation_3d-forecast_3d]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-Dataset-True-True-None-observation_1d_long-forecast_1d_long]
FAILED xskillscore/tests/test_probabilistic.py::test_roc_returns[all_as_metric_dim-DataArray-True-True-None-observation_1d_long-forecast_1d_long]
Errors look like:
Where
I didnt change anything in contingency, only RPS.
https://github.com/xarray-contrib/xskillscore/pull/287/checks?check_run_id=2388515699
versions:
dask 2021.4.0 pyhd8ed1ab_0 conda-forge
dask-core 2021.4.0 pyhd8ed1ab_0 conda-forge
xarray 0.17.0 pyhd8ed1ab_0 conda-forge
xhistogram 0.1.3 pyhd8ed1ab_0 conda-forge
xskillscore 0.0.post1 dev_0
Likely an upstream xhist issue.
The text was updated successfully, but these errors were encountered: