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

File contents documentation? #1

Open
kdharris101 opened this issue Mar 4, 2023 · 2 comments
Open

File contents documentation? #1

kdharris101 opened this issue Mar 4, 2023 · 2 comments

Comments

@kdharris101
Copy link

Thanks very much for sharing this amazing dataset.

I am trying to load it, and have succeeded in loading the numpy objects, but struggling to understand what the objects contain and how to access their contents. Is there any documentation on what these structures contain? (I tried running the code but got errors due to missing libraries.)

@carsen-stringer
Copy link
Member

Hi Kenneth, sorry I guess we're missing that, you can see how to load and use the keys from the dictionary here:

def compile_resp(dat, nskip=4, npc=0, zscore=True):
. and it's used in the decoders.py module. let me know if anything is unclear. The running variable is per trial

@kdharris101
Copy link
Author

kdharris101 commented Mar 5, 2023

Thanks! I think I figured it out.

What worked for me was to import pytorch and then run np.load(filename, allow_pickle=True).item(), which returns a python dictionary. Without .item() I couldn't get things out of the dictionary.

PS we designed a file naming convention that makes it easy for people to know what is in neurophysiology data files without needing any documentation - described here .

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