As mentioned in #363, I'd be interested in adding the ability to record local field potentials (and possibly EEG/current dipole). Something important to decide on is what the API would look like.
At the most minimal level there wouldn't even be an API, but instead just a tutorial notebook showing how it can be calculated (perhaps with helper functions built intoutils)
For an example of a real API, we use the following for hnn-core:
depths = list(range(-325, 2150, 100))
electrode_pos = [(135, 135, dep) for dep in depths]
net.add_electrode_array('shank1', electrode_pos)
For this repo I think net.record_lfp() might be a better fit considering the existing function names
Alternatively this could be merged with the net.record() functionality that currently exists. Something like
net.record(state='lfp', electrode_pos=electrode_pos)
This is a little confusing since the LFP isn't a state, and it'd add an obligatory argument to this method when state='lfp'.
In any case would love to hear your thoughts on this!
As mentioned in #363, I'd be interested in adding the ability to record local field potentials (and possibly EEG/current dipole). Something important to decide on is what the API would look like.
At the most minimal level there wouldn't even be an API, but instead just a tutorial notebook showing how it can be calculated (perhaps with helper functions built into
utils)For an example of a real API, we use the following for hnn-core:
For this repo I think
net.record_lfp()might be a better fit considering the existing function namesAlternatively this could be merged with the
net.record()functionality that currently exists. Something likeThis is a little confusing since the LFP isn't a state, and it'd add an obligatory argument to this method when
state='lfp'.In any case would love to hear your thoughts on this!