issues: 67343193
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67343193 | MDU6SXNzdWU2NzM0MzE5Mw== | 387 | Accessing virtual_variables | 10194086 | closed | 0 | 1 | 2015-04-09T11:41:08Z | 2015-04-09T13:45:29Z | 2015-04-09T13:45:29Z | MEMBER | Virtual variables such as time.date can not be accessed by dot notation. ``` In [81]: ts.time.date AttributeError Traceback (most recent call last) <ipython-input-81-4206b510e310> in <module>() ----> 1 ts.time.date /home/mathause/.local/lib/python2.7/site-packages/xray/core/common.pyc in getattr(self, name) 115 pass 116 raise AttributeError("%r object has no attribute %r" % --> 117 (type(self).name, name)) 118 119 def dir(self): AttributeError: 'DataArray' object has no attribute 'date' ``` Compare
So maybe time.date is not a useful name. time_date? Or don't show these attributes to the user? |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/387/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |