Closed
Description
What happened:
We have a failure related to a dask release, I think. Here's a job that failed: https://github.com/pydata/xarray/pull/5365/checks?check_run_id=2757459587
It's the test: xarray/tests/test_computation.py::test_vectorize_dask_dtype_meta
References
----------
.. [1] https://docs.scipy.org/doc/numpy/reference/ufuncs.html
.. [2] https://docs.scipy.org/doc/numpy/reference/c-api/generalized-ufuncs.html
"""
# Input processing:
## Signature
if not isinstance(signature, str):
raise TypeError("`signature` has to be of type string")
input_coredimss, output_coredimss = _parse_gufunc_signature(signature)
## Determine nout: nout = None for functions of one direct return; nout = int for return tuples
nout = None if not isinstance(output_coredimss, list) else len(output_coredimss)
## Consolidate onto `meta`
if meta is not None and output_dtypes is not None:
> raise ValueError(
"Only one of `meta` and `output_dtypes` should be given (`meta` is preferred)."
)
E ValueError: Only one of `meta` and `output_dtypes` should be given (`meta` is preferred).
Should we xfail this? Does anyone have thoughts for a quick fix?
Metadata
Metadata
Assignees
Labels
No labels