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

Reproducing figure 2 #1

Open
nshervt opened this issue Apr 16, 2024 · 0 comments
Open

Reproducing figure 2 #1

nshervt opened this issue Apr 16, 2024 · 0 comments

Comments

@nshervt
Copy link

nshervt commented Apr 16, 2024

Hello,

I'm trying to reproduce figure 2. While running the second cell, I get the following error:

AssertionError                            Traceback (most recent call last)
Cell In[5], line 4
      1 print(type(GoodDataList_CO))
      2 print(GoodDataList_CO)
----> 4 full_list_MCx_monkey, allDFs_MCx_monkey = dt.get_full_monkey_data(GoodDataList_CO)
      5 print(type(GoodDataList_CO))
      6 quit()

File ~/.../Codes/preserved-dynamics/tools/dataTools.py:333, in get_full_monkey_data(data_list)
    331 for animal, session in full_list_MCx:
    332     path = params.root/animal/session
--> 333     allDFs_MCx.append(monkey_defs.prep_general(load_pyal_data(path)))
    335 return full_list_MCx, allDFs_MCx

File ~/.../Codes/preserved-dynamics/tools/dataTools.py:62, in load_pyal_data(path)
     59 if isinstance(path, str):
     60     path = pathlib.Path(path)
---> 62 assert path.is_file(), f'path is not to a file: {path}'
     64 if path.suffix == '.p':
     65     return load_pickle(path)

AssertionError: path is not to a file: /data/Chewie/Chewie_CO_CS_2016-10-14.mat

Where is the file Chewie_CO_CS_2016-10-14.mat located at? Thansk!

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

1 participant