# Easily get LFP out of point neuron simulations!

**URL:** <https://brian.discourse.group/t/easily-get-lfp-out-of-point-neuron-simulations/1162>\
**Category:** Showcase\
**Created:** [12 March 2024 16:59 UTC](https://brian.discourse.group/t/easily-get-lfp-out-of-point-neuron-simulations/1162 "2024-03-12T16:59:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjohnsen](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/kjohnsen/32/200_2.png) [@kjohnsen](https://brian.discourse.group/u/kjohnsen)\
**Post date:** [12 March 2024 16:59 UTC](https://brian.discourse.group/t/easily-get-lfp-out-of-point-neuron-simulations/1162/1 "2024-03-12T16:59:01Z")

</div>

**For all the point neuron fans:**

Mazzoni, Lindén _et al_., 2015 is a cool paper that presents a (good, R²\>0.9) proxy for LFP you can compute from point neurons (as opposed to the expensive multi-compartment models you need to simulate the physics behind it), but there was no easy-to-use implementation of it…until now! [`wslfp`](https://github.com/siplab-gt/wslfp) is a Python package that lets you plug in neuron and electrode coordinates and synaptic currents and get LFP out. It also lets you synthesize synaptic currents from spikes alone so you don’t even have to simulate synaptic dynamics.

![image](https://global.discourse-cdn.com/free1/uploads/brian/original/1X/faeca82a31e8ff70d3946b315194a5ce6a66bf61.png) ![image](https://global.discourse-cdn.com/free1/uploads/brian/original/1X/fa5168eadd4f9220f6beca5a2ac04da2f9c9f1e1.png)

⬇⬇⬇

 ![image](https://global.discourse-cdn.com/free1/uploads/brian/original/1X/40e3542078941b64eb9243f767979fd84b2a8d5e.png)

Soon to be integrated into [Cleo](https://cleosim.rtfd.io)! I’ve shared Cleo here before, but it’s a testbed for turning Brian simulations into virtual experiments (ephys, optogenetics, calcium imaging, closed-loop stimulation). Also, compare `wslfp` with [`tklfp`](https://github.com/siplab-gt/tklfp).

---

<div class="post-metadata">

**Author:** ![kjohnsen](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/kjohnsen/32/200_2.png) [@kjohnsen](https://brian.discourse.group/u/kjohnsen)\
**Post date:** [22 March 2024 19:12 UTC](https://brian.discourse.group/t/easily-get-lfp-out-of-point-neuron-simulations/1162/2 "2024-03-22T19:12:12Z")

</div>

[Now in Cleo](https://cleosim.readthedocs.io/latest/tutorials/electrodes.html#specifying-signals-to-record). All you have to do is set up the electrode, add the RWSLFP signal, and specify synapses for the pyramidal cells being recorded from. Cleo will then do everything else for you: setting up the spike monitors and calling `wslfp` as needed.
