Repository navigation
LFP Calculator - #492
LFP Calculator#492
Conversation
|
Can one of the admins verify this patch? |
2 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
389a932 to
64ae686
Compare
|
Build finished. |
Codecov Report
@@ Coverage Diff @@
## master #492 +/- ##
==========================================
+ Coverage 55.96% 56.87% +0.90%
==========================================
Files 95 97 +2
Lines 7835 7960 +125
==========================================
+ Hits 4385 4527 +142
+ Misses 3450 3433 -17
Continue to review full report at Codecov.
|
cattabiani
left a comment
There was a problem hiding this comment.
Good job! Maybe we can generalize a little the code to take care of also non-3D points (just in case one day someone comes around and needs points in 2D)
- Created new pi global parameter which is read by NEURON globals.dat or directly NEURON in online mode - Use this pi in lfp calculation and test - Removed a deprecated boost test header file
Pass PI value from NEURON to CoreNEURON
castigli
left a comment
There was a problem hiding this comment.
It looks good do me, I am not approving just because there are a couple of points that others (@tristan0x @cattabiani ) should confirm that they are satisfied with.
tristan0x
left a comment
There was a problem hiding this comment.
All symbols inside in coreneuron::lfputils are called either in lfp.cpp or in LFPCalculator::getFactor which is a private member function only called in the compilation unit lfp.cpp. So the user is not concerned by it and there is not benefits in term of performance to have them in the header. This is why I believe they should all be moved to the compilation unit.
I also made a comment regarding performance improvement in LFPCalculator::lfp member method.
cattabiani
left a comment
There was a problem hiding this comment.
LGTM! Just some ordering and the value of pi
| #include <stdint.h> | ||
|
|
||
| #include <boost/test/unit_test.hpp> | ||
| #include <boost/test/test_case_template.hpp> | ||
| #include <boost/mpl/list.hpp> |
There was a problem hiding this comment.
maybe lexicographic sort?
Co-authored-by: Tristan Carel <tristan.carel@gmail.com>
Following discussion with @bdelmarm , these symbols need to be exposed to be unit-tested. |
adressed in f80818a |
cattabiani
left a comment
There was a problem hiding this comment.
I am lost about pi. It is still hard-coded. I thought we were going to get it from neuron...
iomaganaris
left a comment
There was a problem hiding this comment.
LGTM! One last small thing
Co-authored-by: Ioannis Magkanaris <iomagkanaris@gmail.com>
* New LFP calculator class - Allows for LineSource and PointSource approximations * Read value of `pi` from NEURON in online or offline mode Co-authored-by: Del Marmol Baudouin <bdelmarm@bbpv1.epfl.ch> Co-authored-by: Pramod S Kumbhar <pramod.s.kumbhar@gmail.com> Co-authored-by: Ioannis Magkanaris <iomagkanaris@gmail.com> Co-authored-by: Tristan Carel <tristan.carel@epfl.ch> Co-authored-by: Tristan Carel <tristan.carel@gmail.com> CoreNEURON Repo SHA: BlueBrain/CoreNeuron@b234502
New LFP calculator class.
Allows for LineSource and PointSource approximations.
A unit test, testing the component, is available in /tests/unit/lfp.
Documentation below:
LFP.pdf