-
Notifications
You must be signed in to change notification settings - Fork 61
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
Prepare extracellular potential demo for LFPy (Python) #1036
Comments
We may also need to enrich the morphology interface (in Python and/or C++) for facilitating geometry queries. |
Exact sampling provided by #1046 |
I will split this into two tasks: C++ version and a Python version. The latter will require a Python interface for the cell-wide trans membrane current probes. |
The other piece of Python infrastructure required to produce a Python LFP demo with LFPykit is #1225, which is pending review. |
I've made a basic LFPykit + .swc file example available here: https://github.com/LFPy/LFPykit/blob/master/examples/Example_Arbor_swc.ipynb (via LFPy/LFPykit#129). It's not particularly elegant though. |
Thanks, I'll take a look! |
@espenhgn Would you mind if we include the example in the notebook in the Arbor-repo? Probably we would make some small modifications. |
No objections :) |
OK, thanks! |
Shall I add the example in a PR to Arbor perhaps? |
By all means :) Although we've though of having notebooks in the repo, so far we have stuck to good old Python scripts, which also also straightforward to hook up to our testing. (All examples are run and checked for failure, which is not the most comprehensive testing procedure but it's a start.) So, if you want to post the notebook, we'd need to add something to test notebooks ( |
I can of course just export the existing notebook as a regular Python file as is (and clean it up a bit) and add that to the PR for now. |
Let's do that, we can think about how to integrate notebooks in our testing at a later point (I assume you'll keep this example as a notebook around) |
Yes, the existing LFPykit examples will remain notebooks. I like Github's ability to render them. |
Ok, I've open the PR. I did not check it with the current master as I encountered some issue with the cmake configuration. |
Arbor may be able to be well utilized as a back-end for LFPy. As a first step, we will make a simple demo in Python that computes the potential at a fixed set of electrode sites from a single morphologically detailed neuron.
Model NEURON python code: pure_neuron_example.py.txt
Once #1034 is merged, we'll need to:
The text was updated successfully, but these errors were encountered: