home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 219043002 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • shoyer 2
  • pwolfram 2

author_association 2

  • CONTRIBUTOR 2
  • MEMBER 2

issue 1

  • where(..., drop=True) error · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
293970117 https://github.com/pydata/xarray/issues/1350#issuecomment-293970117 https://api.github.com/repos/pydata/xarray/issues/1350 MDEyOklzc3VlQ29tbWVudDI5Mzk3MDExNw== pwolfram 4295853 2017-04-13T17:37:02Z 2017-04-13T17:37:02Z CONTRIBUTOR

Both cases are fixed by #1361.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  where(..., drop=True) error 219043002
292688233 https://github.com/pydata/xarray/issues/1350#issuecomment-292688233 https://api.github.com/repos/pydata/xarray/issues/1350 MDEyOklzc3VlQ29tbWVudDI5MjY4ODIzMw== shoyer 1217238 2017-04-08T02:15:51Z 2017-04-08T02:15:51Z MEMBER

see https://github.com/pydata/xarray/pull/1361

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  where(..., drop=True) error 219043002
291258269 https://github.com/pydata/xarray/issues/1350#issuecomment-291258269 https://api.github.com/repos/pydata/xarray/issues/1350 MDEyOklzc3VlQ29tbWVudDI5MTI1ODI2OQ== pwolfram 4295853 2017-04-03T20:07:13Z 2017-04-03T20:07:13Z CONTRIBUTOR

As it turns out this was found this hunting a more complicated bug, but I couldn't easily reproduce it via DataArrays from scratch. My guess is that solving this will most likely solve that issue:

```python ds = xr.open_dataset('mpaso.hist.0100-06-01_00000_potDensityOnly.nc') ds['latCell'] = ds.latCell*180.0/np.pi ds.set_coords('latCell', inplace=True)

potDen = ds.potentialDensity.where(ds.potentialDensity != 0, drop=True)

yieldingpython Traceback (most recent call last): File "./plot_potential_density.py", line 52, in <module> main() File "./plot_potential_density.py", line 16, in main potDen = ds.potentialDensity.where(ds.potentialDensity != 0, drop=True) File "/Users/pwolfram/anaconda/lib/python2.7/site-packages/xarray/core/common.py", line 627, in where outobj = self.sel(indexers) File "/Users/pwolfram/anaconda/lib/python2.7/site-packages/xarray/core/dataarray.py", line 672, in sel result = self.isel(drop=drop, pos_indexers) File "/Users/pwolfram/anaconda/lib/python2.7/site-packages/xarray/core/dataarray.py", line 657, in isel ds = self._to_temp_dataset().isel(drop=drop, indexers) File "/Users/pwolfram/anaconda/lib/python2.7/site-packages/xarray/core/dataset.py", line 1119, in isel new_var = var.isel(var_indexers) File "/Users/pwolfram/anaconda/lib/python2.7/site-packages/xarray/core/variable.py", line 548, in isel return self[tuple(key)] File "/Users/pwolfram/anaconda/lib/python2.7/site-packages/xarray/core/variable.py", line 378, in getitem values = self._indexable_data[key] File "/Users/pwolfram/anaconda/lib/python2.7/site-packages/xarray/core/indexing.py", line 423, in getitem return type(self)(self.array[key]) IndexError: shape mismatch: indexing arrays could not be broadcast together with shapes (1,) (235446,) (100,) ```

It is possible that ds.set_coords('latCell', inplace=True) is part of the problem for this bug, so it may actually be a few problems, not just one.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  where(..., drop=True) error 219043002
291256714 https://github.com/pydata/xarray/issues/1350#issuecomment-291256714 https://api.github.com/repos/pydata/xarray/issues/1350 MDEyOklzc3VlQ29tbWVudDI5MTI1NjcxNA== shoyer 1217238 2017-04-03T20:01:22Z 2017-04-03T20:01:22Z MEMBER

Indeed, this definitely looks like a bug. My guess is that the logic for drop=True doesn't handle dimensions without coordinates properly.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  where(..., drop=True) error 219043002

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 12.711ms · About: xarray-datasette