Closed yger closed 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
I was not being able to load my data and this change fixed it. Thanks.
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