home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 345408160

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/issues/1727#issuecomment-345408160 https://api.github.com/repos/pydata/xarray/issues/1727 345408160 MDEyOklzc3VlQ29tbWVudDM0NTQwODE2MA== 4160723 2017-11-18T01:37:08Z 2017-11-18T01:37:08Z MEMBER

Sorry my example above was wrong. In the example below myvar is not a coordinate, but it still triggers data loading when pressing tab generally (not only trying to auto-complete myvar).

``` In [1]: import xarray as xr

In [2]: ds = xr.open_dataset('test.nc')

In [3]: ds Out[3]: <xarray.Dataset> Dimensions: (x: 1000000000) Dimensions without coordinates: x Data variables: myvar (x) float64 ...

In [4]: ds['myvar'] Out[4]: <xarray.DataArray 'myvar' (x: 1000000000)> [1000000000 values with dtype=float64] Dimensions without coordinates: x

In [5]: ds['myvar'].variable._in_memory Out[5]: False

In [6]: ds.anything # pressed [Tab] and then [Enter]

AttributeError Traceback (most recent call last) <ipython-input-6-5e7144cb0cd3> in <module>() ----> 1 ds.anything

~/GitRepos/xarray_dev/xarray/core/common.py in getattr(self, name) 174 return source[name] 175 raise AttributeError("%r object has no attribute %r" % --> 176 (type(self).name, name)) 177 178 def setattr(self, name, value):

AttributeError: 'Dataset' object has no attribute 'anything'

In [7]: ds['myvar'].variable._in_memory Out[7]: True ```

Unless I miss something obvious (it's late), this is weird.

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