home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 572635127

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/3660#issuecomment-572635127 https://api.github.com/repos/pydata/xarray/issues/3660 572635127 MDEyOklzc3VlQ29tbWVudDU3MjYzNTEyNw== 2448579 2020-01-09T16:19:11Z 2020-01-09T16:19:11Z MEMBER

min-all-deps fails with this weird error:

```

def test_append_with_new_variable(self):

    ds, ds_to_append, ds_with_new_var = create_append_test_data()

    # check append mode for new variable
    with self.create_zarr_target() as store_target:
        xr.concat([ds, ds_to_append], dim="time").to_zarr(store_target, mode="w")
        ds_with_new_var.to_zarr(store_target, mode="a")
        combined = xr.concat([ds, ds_to_append], dim="time")
        combined["new_var"] = ds_with_new_var["new_var"]
      assert_identical(combined, xr.open_zarr(store_target))

xarray/tests/test_backends.py:1876:


xarray/core/dataset.py:1354: in identical other, "identical" xarray/core/dataset.py:1302: in _all_compat self._variables, other._variables, compat=compat xarray/core/utils.py:338: in dict_equiv if k not in second or not compat(first[k], second[k]): xarray/core/dataset.py:1299: in compat return getattr(x, compat_str)(y) xarray/core/variable.py:1670: in identical other, equiv=equiv xarray/core/variable.py:1647: in equals self._data is other._data or equiv(self.data, other.data) xarray/core/duck_array_ops.py:224: in array_equiv flag_array = (arr1 == arr2) | (isnull(arr1) & isnull(arr2)) /usr/share/miniconda/envs/xarray-tests/lib/python3.6/site-packages/dask/array/core.py:1739: in eq return elemwise(operator.eq, self, other) /usr/share/miniconda/envs/xarray-tests/lib/python3.6/site-packages/dask/array/core.py:3749: in elemwise *blockwise_kwargs /usr/share/miniconda/envs/xarray-tests/lib/python3.6/site-packages/dask/array/blockwise.py:145: in blockwise chunkss, arrays = unify_chunks(args) /usr/share/miniconda/envs/xarray-tests/lib/python3.6/site-packages/dask/array/core.py:3020: in unify_chunks (asanyarray(a) if ind is not None else a, ind) for a, ind in partition(2, args) /usr/share/miniconda/envs/xarray-tests/lib/python3.6/site-packages/dask/array/core.py:3020: in <listcomp> (asanyarray(a) if ind is not None else a, ind) for a, ind in partition(2, args)


a = array(['2019-01-01T00:00:00.000000000', '2019-01-02T00:00:00.000000000', '2019-01-03T00:00:00.000000000', '2019-01-04T00:00:00.000000000', '2019-01-05T00:00:00.000000000'], dtype='datetime64[ns]')

def asanyarray(a):
    """Convert the input to a dask array.

    Subclasses of ``np.ndarray`` will be passed through as chunks unchanged.

    Parameters
    ----------
    a : array-like
        Input data, in any form that can be converted to a dask array.

    Returns
    -------
    out : dask array
        Dask array interpretation of a.

    Examples
    --------
    >>> import dask.array as da
    >>> import numpy as np
    >>> x = np.arange(3)
    >>> da.asanyarray(x)
    dask.array<array, shape=(3,), dtype=int64, chunksize=(3,)>

    >>> y = [[1, 2, 3], [4, 5, 6]]
    >>> da.asanyarray(y)
    dask.array<array, shape=(2, 3), dtype=int64, chunksize=(2, 3)>
    """
    if isinstance(a, Array):
        return a
    elif hasattr(a, "to_dask_array"):
        return a.to_dask_array()
  elif hasattr(a, "data") and type(a).__module__.startswith("xarray."):

E ValueError: cannot include dtype 'M' in a buffer

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  544661257
Powered by Datasette · Queries took 0.52ms · About: xarray-datasette