issues
1 row where user = 8020943 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date), closed_at (date)
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
550067372 | MDU6SXNzdWU1NTAwNjczNzI= | 3696 | AttributeError: cannot set attribute '_accessors' on a 'DataArray' object. | prisae 8020943 | closed | 0 | 6 | 2020-01-15T09:31:18Z | 2020-01-16T12:09:52Z | 2020-01-15T15:18:05Z | NONE | MCVE Code SampleCreate two The following works if you run all of it within the same environment. However, if you store it with ```python import shelve import xarray as xr import numpy as np data = xr.DataArray(data=np.arange(10), dims=["test"]) Store datawith shelve.open('test') as db: db['data'] = data Load datawith shelve.open('test') as db: newdata = db['data'] np.allclose(data, newdata) ``` Expected OutputOne should be able to load the pickle no matter what the version of Problem DescriptionStoring with KeyError Traceback (most recent call last) ~/anaconda3/envs/xarray141/lib/python3.8/shelve.py in getitem(self, key) 110 try: --> 111 value = self.cache[key] 112 except KeyError: KeyError: 'data' During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) ~/anaconda3/envs/xarray141/lib/python3.8/site-packages/xarray/core/common.py in setattr(self, name, value) 261 try: --> 262 object.setattr(self, name, value) 263 except AttributeError as e: AttributeError: 'DataArray' object has no attribute '_accessors' The above exception was the direct cause of the following exception: AttributeError Traceback (most recent call last) <ipython-input-1-f8dc3ae27b24> in <module> 5 # Load data 6 with shelve.open('test') as db: ----> 7 newdata = db['data'] 8 ~/anaconda3/envs/xarray141/lib/python3.8/shelve.py in getitem(self, key) 112 except KeyError: 113 f = BytesIO(self.dict[key.encode(self.keyencoding)]) --> 114 value = Unpickler(f).load() 115 if self.writeback: 116 self.cache[key] = value ~/anaconda3/envs/xarray141/lib/python3.8/site-packages/xarray/core/common.py in setattr(self, name, value)
268 ):
269 raise
--> 270 raise AttributeError(
271 "cannot set attribute %r on a %r object. Use setitem style"
272 "assignment (e.g., AttributeError: cannot set attribute '_accessors' on a 'DataArray' object. Use setitem styleassignment (e.g., Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3696/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issues] ( [id] INTEGER PRIMARY KEY, [node_id] TEXT, [number] INTEGER, [title] TEXT, [user] INTEGER REFERENCES [users]([id]), [state] TEXT, [locked] INTEGER, [assignee] INTEGER REFERENCES [users]([id]), [milestone] INTEGER REFERENCES [milestones]([id]), [comments] INTEGER, [created_at] TEXT, [updated_at] TEXT, [closed_at] TEXT, [author_association] TEXT, [active_lock_reason] TEXT, [draft] INTEGER, [pull_request] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [state_reason] TEXT, [repo] INTEGER REFERENCES [repos]([id]), [type] TEXT ); CREATE INDEX [idx_issues_repo] ON [issues] ([repo]); CREATE INDEX [idx_issues_milestone] ON [issues] ([milestone]); CREATE INDEX [idx_issues_assignee] ON [issues] ([assignee]); CREATE INDEX [idx_issues_user] ON [issues] ([user]);