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

Reading inputs from pkl or h5 format #7

Open
albertoarturovergani opened this issue Dec 3, 2020 · 8 comments
Open

Reading inputs from pkl or h5 format #7

albertoarturovergani opened this issue Dec 3, 2020 · 8 comments
Assignees

Comments

@albertoarturovergani
Copy link
Contributor

albertoarturovergani commented Dec 3, 2020

The aim is to get as input the pkl files or h5 file and making processing and visualization.

@albertoarturovergani
Copy link
Contributor Author

albertoarturovergani commented Dec 3, 2020

@JuliaSprenger
Copy link
Collaborator

@albertoarturovergani Is this for reading a nix-hdf5 file or a generic hdf5 file?

@albertoarturovergani
Copy link
Contributor Author

@JuliaSprenger
Copy link
Collaborator

Then why don't you just use Neo and it's NixIO to load them again if you are anyway using Python?

@JuliaSprenger
Copy link
Collaborator

Just in case:
:)

import neo
with neo.Nixio('filename') as io:
    block = io.read_block()

@albertoarturovergani
Copy link
Contributor Author


AttributeError Traceback (most recent call last)
in
1 import neo
----> 2 with neo.Nixio(pathName) as io:
3 block = io.read_block()

AttributeError: module 'neo' has no attribute 'Nixio'

@JuliaSprenger
Copy link
Collaborator

JuliaSprenger commented Dec 3, 2020

sorry. my typo.
It's of course the same IO you used for saving, so

neo.NixIO(pathName)

Python is case sensitive ;)

@albertoarturovergani
Copy link
Contributor Author

Ok, now it's imported the nix-hdf5, but still to do the plotting.
I made working the pkl reading and plotted the results https://github.com/SpikeAI/2020-11_brainhack_Project7/blob/main/dev/3_C_loading_inputs.ipynb

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

3 participants