-
Notifications
You must be signed in to change notification settings - Fork 11
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
API for recording extracellular fields #515
Comments
Cool that you are thinking about a |
I definitely agree that a utility function seems right for this feature, this is essentially what happened with NEURON and LFPy. The only information that needs to be tracked is membrane currents (so ion channels and synapses). At the moment I'm enabling it with a code snippet like: channel_currents = [name for name in net._get_state_names()[0] if name.startswith('i_')]
synapse_currents = [name for name in net._get_state_names()[1]]
for current_name in channel_currents:
net.record(state=current_name, verbose=False)
for synapse_name in synapse_currents:
net.record(state=synapse_name, verbose=False) However, I'm not totally certain about a few things:
Thanks a bunch for the feedback!! |
Cool, the membrane currents we can just record, for the synapses is currently not implemented, which why #363 is still open. Regarding your Qs:
Lemme know in case you need any further explanations or have questions along the way :) |
Awesome! This is super helpful, in that case I think the first PR should be restricted to just recording synapse currents as you outlined above. I'll give it a shot and tag you as a reviewer once it's ready |
Awesome! :) |
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!
The text was updated successfully, but these errors were encountered: