Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body part to ROI error with csv file #17

Open
LyleSmash opened this issue Jun 15, 2022 · 1 comment
Open

Body part to ROI error with csv file #17

LyleSmash opened this issue Jun 15, 2022 · 1 comment

Comments

@LyleSmash
Copy link

I've tried updating and am running as admin. I've also tried this same csv file in SimBA and get a similar indices error.

Traceback (most recent call last): File "C:\Users\grach\anaconda3\lib\tkinter\__init__.py", line 1892, in __call__ return self.func(*args) File "C:\WINDOWS\system32\DLC_ROI_tool\MousePositionTracker.py", line 129, in bodyparts_to_ROI My_ROI_df=pd.DataFrame(np.zeros(X_data.shape),columns=mylist) File "C:\Users\grach\anaconda3\lib\site-packages\pandas\core\frame.py", line 694, in __init__ mgr = ndarray_to_mgr( File "C:\Users\grach\anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 351, in ndarray_to_mgr _check_values_indices_shape_match(values, index, columns) File "C:\Users\grach\anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 422, in _check_values_indices_shape_match raise ValueError(f"Shape of passed values is {passed}, indices imply {implied}") ValueError: Shape of passed values is (9266, 2), indices imply (9266, 3)

@PolarBean
Copy link
Owner

I'm not sure, but some things it could be.

  1. make sure you're not using a multi animal dlc file as this is not supported.
  2. make sure you're using the correct version of pandas pip install pandas==0.25.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants