You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your code. It's great but I met a problem below and do not know what happened.
I am using brpylib ver 2.0.3. Error below occationally happens for some .nev files, not all.
Thanks for your time.
*******\20231110\TR141\OP02\datafile.nev opened
Traceback (most recent call last):
File ~.conda\envs\ephys\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File h:\filez\hjh\hjhcode\hjhprivate.py:14
b = a.getdata()
File ~.conda\envs\ephys\lib\brpylib.py:737 in getdata
trueCommentsidx = np.asarray(commentPackets)[trueComments]
IndexError: arrays used as indices must be of integer (or boolean) type
The text was updated successfully, but these errors were encountered:
Hi, here's a sample file attached. Would you please have a look into it? With exactly the same recording config, some but not all .nev files go wrong, like below.
Oh plus, those files can be open with NPMK. datafile(1).zip
import brpylib
from pathlib imort Path
fpath = Path(r'I:datafile(1).nev')
a = brpylib.NevFile(str(fpath))
b = a.getdata('Tracking')
Hi, thanks for your code. It's great but I met a problem below and do not know what happened.
I am using brpylib ver 2.0.3. Error below occationally happens for some .nev files, not all.
Thanks for your time.
*******\20231110\TR141\OP02\datafile.nev opened
Traceback (most recent call last):
File ~.conda\envs\ephys\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File h:\filez\hjh\hjhcode\hjhprivate.py:14
b = a.getdata()
File ~.conda\envs\ephys\lib\brpylib.py:737 in getdata
trueCommentsidx = np.asarray(commentPackets)[trueComments]
IndexError: arrays used as indices must be of integer (or boolean) type
The text was updated successfully, but these errors were encountered: