home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 979096277

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/5984#issuecomment-979096277 https://api.github.com/repos/pydata/xarray/issues/5984 979096277 IC_kwDOAMm_X846W9LV 10194086 2021-11-25T11:02:18Z 2021-11-25T11:02:18Z MEMBER

How about we raise DeprecationWarning for now asking the user to pass in .data instead.

Makes sense - how about:

python msg = ( "Passing a `DataArray` object to the `DataArray` constructor is ambiguous.\n" "Pass `da.data`, or use `da.copy(deep=True)`, or one of the `xarray.*_like` (e.g. " "`xarray.zeros_like`) functions instead,\n" "depending on your use case." ) warnings.warn(msg, FutureWarning)

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