I am trying to save and load a Neo block in `.mat` in Python, but I discovered a behavior that I don't understand. Specifically, if I generate my spike trains by slicing an array of spike times, when I load the block I get the traceback below, however if instead of taking the slice of my data I simply generate a random array or a list, then everything works. Does anybody have any clue what might be going on? I am completely clueless at this point. Cheers
Traceback (most recent call last):
File "/home/pietro/Envs/basic/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-41-4d326bdd50e4>", line 231, in <module>
bl = r.read_block()
File "/home/pietro/Envs/basic/local/lib/python2.7/site-packages/neo/io/neomatlabio.py", line 234, in read_block
bl_struct, 'Block', cascade=cascade, lazy=lazy)
File "/home/pietro/Envs/basic/local/lib/python2.7/site-packages/neo/io/neomatlabio.py", line 359, in create_ob_from_struct
cascade=cascade, lazy=lazy)
File "/home/pietro/Envs/basic/local/lib/python2.7/site-packages/neo/io/neomatlabio.py", line 367, in create_ob_from_struct
cascade=cascade, lazy=lazy)
File "/home/pietro/Envs/basic/local/lib/python2.7/site-packages/neo/io/neomatlabio.py", line 324, in create_ob_from_struct
arr = getattr(struct, quantity_attr)
AttributeError: 'numpy.ndarray' object has no attribute 'times'