home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 134637212

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/549#issuecomment-134637212 https://api.github.com/repos/pydata/xarray/issues/549 134637212 MDEyOklzc3VlQ29tbWVudDEzNDYzNzIxMg== 2443309 2015-08-25T15:46:39Z 2015-08-25T15:46:39Z MEMBER

@shoyer -

Maybe the only place to silently convert is in the to_dataset method of DataArray, when splitting an existing dimension to create a dataset with new variables? Otherwise that method is not guaranteed to succeed, which seems like a Bad Thing.

If you are splitting a dataset along a dimension, we don't use the name argument: https://github.com/xray/xray/blob/master/xray/core/dataarray.py#L243-L273. So I don't think any changes are needed in that case. In fact, in _to_dataset_split(), the labels are cast to strings.

I'm going to close this PR and open a new one with errors raised instead of silently converting.

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