Skip to content

🟠 Test failure on master #5444

Closed
@max-sixty

Description

@max-sixty

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions