Skip to content

Issue to generate path plot #492

@DorianBattivelli

Description

@DorianBattivelli

Hello,

I'm using SimBA v4.2.5 on Windows 11, with Python 3.10
I imported DLC 3 CSV from single animal project.

I'm getting the following error when using CREATE PATH PLOTS function (Visualizations tab):

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\battivel\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "C:\Users\battivel\simba-env\lib\site-packages\simba\ui\tkinter_functions.py", line 424, in execute_command
cmd(**evaluated_kwargs)
File "C:\Users\battivel\simba-env\lib\site-packages\simba\ui\pop_ups\path_plot_pop_up.py", line 362, in _run
threading.Thread(target=path_plotter.run()).start()
File "C:\Users\battivel\simba-env\lib\site-packages\simba\plotting\path_plotter_mp.py", line 307, in run
last_frm = PlottingMixin.make_path_plot(data=line_data,
File "C:\Users\battivel\simba-env\lib\site-packages\simba\mixins\plotting_mixin.py", line 1471, in make_path_plot
cv2.line(
cv2.error: OpenCV(4.8.1) 👎 error: (-5:Bad argument) in function 'line'

Overload resolution failed:

  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type
  • Can't parse 'pt1'. Sequence item with index 0 has a wrong type

I precise that my true DLC bodyparts does not respect the expected ones from DLC 4 body parts. Rather I labeled:

  • Nose
  • Minisco
  • Back
  • Tail_base

Since SimBA does not show me these true labels but the pre defined ones (ear_left etc.), I select the nose as BP to plot, that should correspond to my "Back" label (3rd body part in both lists)... right?

How can I fix this error?
Thank you
Best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions