open-ephys / analysis-tools

Archived code for reading data saved by the Open Ephys GUI
59 stars 176 forks source link

Using analysis tools in Jupyter Notebook #94

Open BenATemple opened 3 years ago

BenATemple commented 3 years ago

Hello, I'm trying to use the analysis tools to load my OpenEphys data in Jupyter notebook, but am not having any success. Has anyone done this and could guide me through? Ben

jsiegle commented 3 years ago

Hi Ben – which format did you use to save your data? I can put together a small notebook that shows how to load it.

BenATemple commented 3 years ago

Thanks, Josh! Much appreciated. I saved to binary

jsiegle commented 3 years ago

I made an example notebook here: https://github.com/open-ephys/analysis-tools/blob/master/Python3/Binary_data_loading_example.ipynb

Let me know if this has what you were looking for! The Binary.py actually only load the continuous data, so I also showed how to load spike times with standard numpy functions.

Just so you're aware, we are working on consolidating Open Ephys-related Python code in a separate repository: https://github.com/open-ephys/open-ephys-python-tools

It's not quite ready for widespread release, but you may already find it to be more useful than what's in the analysis-tools repo.

BenATemple commented 3 years ago

Josh, sorry for the slow reply -- I tried this and it worked well. Many thanks!

I tried the other Python code you link to before I posted my original message, but ran into problems here and there. I'll try again at some point soon.