Skip to content

API for recording extracellular fields #515

@ntolley

Description

@ntolley

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions