lara indexing bug #40

stroxler opened this Issue Jan 31, 2012 · 1 comment


None yet

2 participants


Indexing into a lara using a list of integers produces an error because it tries to use the take method.


Code to duplicate:

In [1]: io = la.IO('/home/kg/tmp/issue40')
In [2]: io['a'] = la.lrange(3)
In [3]: b = io['a']
In [4]: type(b)
In [5]: b[[0,2]]
AttributeError: 'Dataset' object has no attribute 'take'

Proposed solution:

  • Add unit test showing failure
  • (try...except) try to use take and if it that fails we use regular indexing.
@kwgoodman kwgoodman added the bug label Feb 11, 2014
@kwgoodman kwgoodman closed this in 5775a40 Feb 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment