home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 454161008

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/2650#issuecomment-454161008 https://api.github.com/repos/pydata/xarray/issues/2650 454161008 MDEyOklzc3VlQ29tbWVudDQ1NDE2MTAwOA== 5635139 2019-01-14T21:05:17Z 2019-01-14T21:05:17Z MEMBER

That said, if EWM preserves the dimension size/labels you probably don't nee any special logic for coordinates

The error is when applying over a dimension on a dataset where only some of the variables have the dimension; e.g. applying over time on this:

python <xarray.Dataset> Dimensions: (time: 10, x: 8, y: 2) Coordinates: * x (x) float64 0.0 0.1429 0.2857 0.4286 0.5714 0.7143 0.8571 1.0 * time (time) float64 0.0 0.1111 0.2222 0.3333 ... 0.7778 0.8889 1.0 c (y) <U1 'a' 'b' * y (y) int64 0 1 Data variables: z1 (y, x) float64 -0.1035 -0.8153 -1.583 ... 1.447 0.7768 -0.2699 z2 (time, y) float64 0.968 0.7156 -1.64 ... 0.1889 -1.142 0.7172

...rather than any issues applying on coords. I think the solution is easy - only apply on variables where the dimension exists.

If it's helpful to add that functionality directly to apply_ufunc, lmk. I'll focus on getting this working, though

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