Skip to content

Lickometer tests fail if there are 0 licks detected #94

@bruno-f-cruz

Description

@bruno-f-cruz
Traceback (most recent call last): File "C:\Users\huy.nguyen\Documents\Huy_Repo\Aind.Behavior.VrForaging\.venv\Lib\site-packages\contraqctor\qc\base.py", line 764, in run_test result = test_method() File "C:\Users\huy.nguyen\Documents\Huy_Repo\Aind.Behavior.VrForaging\.venv\Lib\site-packages\contraqctor\qc\harp\lickety_split.py", line 124, in test_lick_duration first_lick_onset = lick[lick == 1].index[0] ~~~~~~~~~~~~~~~~~~~~~^^^ File "C:\Users\huy.nguyen\Documents\Huy_Repo\Aind.Behavior.VrForaging\.venv\Lib\site-packages\pandas\core\indexes\base.py", line 5401, in __getitem__ return getitem(key) IndexError: index 0 is out of bounds for axis 0 with size 0

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