cortex-lab / phylib

Lightweight electrophysiological data analysis library
BSD 3-Clause "New" or "Revised" License
11 stars 23 forks source link

Bug for sparse export #9

Closed yger closed 5 years ago

yger commented 5 years ago

In io/model.py, _get_template_sparse(), L729

channel_ids = channel_ids.astype(np.uint32)

should be put after L733

channel_ids = channel_ids[used]

in order to work. Otherwise, the conversion to uint32 is messing around with -1, thus leading to errors. I can make a PR, but this is just a matter of shifting one line of code

yagui commented 5 years ago

I was not being able to load my data and this change fixed it. Thanks.