home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 99016865

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
99016865 MDU6SXNzdWU5OTAxNjg2NQ== 515 pickle hits recursion limit while loading a xray.DataArray 563026 closed 0     1 2015-08-04T17:18:05Z 2015-08-14T16:43:40Z 2015-08-14T16:43:40Z NONE      

Hi,

The following code raises RuntimeError in pickle:

``` python import pickle import xray import numpy

signal = xray.DataArray(numpy.random.random((3,3)), dims=('id', 'time'))

with open('signal.pickle', 'w') as signal_file: pickle.dump(signal, signal_file)

with open('signal.pickle') as signal_file: signal = pickle.load(signal_file) ```

The backtrace is following (I shortened it but I think you'll get the point):

``` python

RuntimeError Traceback (most recent call last) <ipython-input-16-2d6533ac9fa3> in <module>() 8 9 with open('signal.pickle') as signal_file: ---> 10 signal = pickle.load(signal_file)

/usr/lib/python2.7/pickle.pyc in load(file) 1376 1377 def load(file): -> 1378 return Unpickler(file).load() 1379 1380 def loads(str):

/usr/lib/python2.7/pickle.pyc in load(self) 856 while 1: 857 key = read(1) --> 858 dispatchkey 859 except _Stop, stopinst: 860 return stopinst.value

/usr/lib/python2.7/pickle.pyc in load_build(self) 1213 state = stack.pop() 1214 inst = stack[-1] -> 1215 setstate = getattr(inst, "setstate", None) 1216 if setstate: 1217 setstate(state)

/usr/local/lib/python2.7/dist-packages/xray/core/common.pyc in getattr(self, name) 128 129 def getattr(self, name): --> 130 for source in self.attr_sources: 131 try: 132 return source[name]

/usr/local/lib/python2.7/dist-packages/xray/core/dataarray.pyc in attr_sources(self) 383 def attr_sources(self): 384 """List of places to look-up items for attribute-style access""" --> 385 return [self.coords, self.attrs] 386 387 def contains(self, key):

/usr/local/lib/python2.7/dist-packages/xray/core/dataarray.pyc in coords(self) 423 """Dictionary-like container of coordinate arrays. 424 """ --> 425 return DataArrayCoordinates(self) 426 427 def reset_coords(self, names=None, drop=False, inplace=False):

/usr/local/lib/python2.7/dist-packages/xray/core/coordinates.pyc in init(self, dataarray) 181 def init(self, dataarray): 182 self._dataarray = dataarray --> 183 self._dataset = dataarray._dataset 184 185 def update(self, other):

/usr/local/lib/python2.7/dist-packages/xray/core/common.pyc in getattr(self, name) 128 129 def getattr(self, name): --> 130 for source in self.attr_sources: 131 try: 132 return source[name]

/usr/local/lib/python2.7/dist-packages/xray/core/dataarray.pyc in attr_sources(self) 383 def attr_sources(self): 384 """List of places to look-up items for attribute-style access""" --> 385 return [self.coords, self.attrs] 386 387 def contains(self, key):

/usr/local/lib/python2.7/dist-packages/xray/core/dataarray.pyc in coords(self) 423 """Dictionary-like container of coordinate arrays. 424 """ --> 425 return DataArrayCoordinates(self) 426 427 def reset_coords(self, names=None, drop=False, inplace=False):

/usr/local/lib/python2.7/dist-packages/xray/core/coordinates.pyc in init(self, dataarray) 181 def init(self, dataarray): 182 self._dataarray = dataarray --> 183 self._dataset = dataarray._dataset 184 185 def update(self, other):

... : maximum recursion depth exceeded while calling a Python object ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/515/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 60.9ms · About: xarray-datasette