-
Notifications
You must be signed in to change notification settings - Fork 64
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
from_npz()
method for loading
#169
Comments
The idea was to use nap.load_file(filename) but yes I agree this could be an extra convenient way for it. |
the advantage would be to keep all the io-related naming conventions in a single place! (and a oo interface). Can do a PR with tests |
Yes go for it |
I'm similarly interested in being able to load LFP, spike, and behavior data that is already processed and saved as numpy arrays and csv files. Since this issue is still open an option to directly import from numpy files is of interest, or in the works. As of right now, what would be the path of least resistance to have a numpy arrays and pandas dataframes of data wrapped into pynapple data structures? Renaming my files and folder structure to the BIDS specification outlined here? Or directly wrangling the datatypes into the same format as data = nap.load_session() provides? Thanks in advance for your advice on the matter. |
This has now been addressed in #313, even if the method is not public the logic is there |
As far as I could find in the docs, there is a convenient method for saving a Tsd as a npc file, but putting it back together would always require to do:
which is not that much work, but it would be probably better to have a class method like (similarly to pandas from_csv()):
So that the interface would be super simple:
What would you think about that?
The text was updated successfully, but these errors were encountered: