Skip to content

TypeError: Cannot do inplace boolean setting on mixed-types with a non np.nan valueΒ #9

@saulobritto

Description

@saulobritto

Hi,

I'm usign this tool to predict ROI in zebrafish videos. I'm analysing about 66 videos. In some of them, I got this error when Load the DLC File. Do you have any idea what is going on? Am I doing something wrong?

##################
test1920
1920
top_left_X 0
im_width 1920
1920
top_left_X 0
im_width 1920
1920
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\User\anaconda3\envs\ROI_ENV\lib\tkinter_init_.py", line 1883, in call
return self.func(*args)
File "C:\Windows\System32\DLC_ROI_tool\MousePositionTracker.py", line 194, in bodyparts_to_ROI
My_ROI_df[truth_array]=ROI[1]['ROI']
File "C:\Users\User\anaconda3\envs\ROI_ENV\lib\site-packages\pandas\core\frame.py", line 3482, in setitem
self._setitem_frame(key, value)
File "C:\Users\User\anaconda3\envs\ROI_ENV\lib\site-packages\pandas\core\frame.py", line 3528, in _setitem_frame
self._check_inplace_setting(value)
File "C:\Users\User\anaconda3\envs\ROI_ENV\lib\site-packages\pandas\core\generic.py", line 5304, in _check_inplace_setting
raise TypeError(
TypeError: Cannot do inplace boolean setting on mixed-types with a non np.nan value
###################

Thank you in advance for your support.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions