Skip to content

index error when .nev file getdata() #31

Open
@JunHao-Huang

Description

@JunHao-Huang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions