NeuralEnsemble / python-neo

Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
http://neo.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
318 stars 249 forks source link

about Maxwell data #1570

Open bxy666666 opened 2 days ago

bxy666666 commented 2 days ago

Which page is the problem on? The URL of the documentation page where the problem is, and either copy-paste the confusing text (for a short section of text), or give the first few and last few words (for a long section).

What is the problem? Is the documentation (a) confusing or (b) incorrect? In what way?

Suggestions for fixing the problem If the documentation is confusing, can you suggest an improvement? If the documentation is incorrect, what should it say instead?

Hello, How can I read maxwell data to Analyzing and Plotting Data with Neo Structures?

zm711 commented 1 day ago

We have a MaxwellRawIO and a MaxwellIO so it depends on what you want to do.

import neo
data = neo.MaxwellIO('path/to/data').read()

would get you all the data. If you want a lower level set of arrays then:

from neo.rawio import MaxwellRawIO

maxwell_reader = MaxwellRawIO('path/to/data')
maxwell_reader.parse_header()
data = maxwell_reader.get_analogsignal_chunk(xxx) # put in values based on what you want