home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 531606126

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/3238#issuecomment-531606126 https://api.github.com/repos/pydata/xarray/issues/3238 531606126 MDEyOklzc3VlQ29tbWVudDUzMTYwNjEyNg== 14808389 2019-09-15T22:48:30Z 2019-09-15T22:48:30Z MEMBER

I'm not sure whether that belongs into hgrecco/pint#882, so I'll ask this here: In the case of full_like with other being a ndarray and fill_value having a unit, numpy complains about np.copyto not being implemented for this type of operation: ```python

np.full_like(np.arange(10), fill_value=1 * ureg.m) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<array_function internals>", line 6, in full_like File ".../lib/python3.7/site-packages/numpy/core/numeric.py", line 401, in full_like multiarray.copyto(res, fill_value, casting='unsafe') File "<array_function internals>", line 6, in copyto TypeError: no implementation found for 'numpy.copyto' on types that implement array_function: [<class 'numpy.ndarray'>, <class 'pint.quantity.build_quantity_class.\<locals>.QuantityScalar'>]

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