hassonlab / 247-encoding

Contains python scripts for performing encoding on 247 data.
0 stars 9 forks source link

Read data from pickle #6

Closed zkokaja closed 2 years ago

zkokaja commented 3 years ago

I expected this project to read signal data from the pickle, but it looks like it's getting it from the conversations folder:

https://github.com/hassonlab/247-encoding/blob/ad13bd0e2b0a00517d7c5edced555557f97d627c/code/tfsenc_main.py#L97

I suppose this is faster than loading the entire 12GB, was that the reason for implementing it this way?

hvgazula commented 3 years ago

I expected this project to read signal data from the pickle, but it looks like it's getting it from the conversations folder:

https://github.com/hassonlab/247-encoding/blob/ad13bd0e2b0a00517d7c5edced555557f97d627c/code/tfsenc_main.py#L97

I suppose this is faster than loading the entire 12GB, was that the reason for implementing it this way?

Yes.

zkokaja commented 3 years ago

If we save the signal file as a numpy archive, do you know if it's possible to just read one electrode at a time without reading the full thing?

hvgazula commented 3 years ago

Need to check this https://msgpack.org/