INM-6 / hybridLFPy

Biophysics-based prediction of LFPs from point-neuron networks
GNU General Public License v3.0
10 stars 10 forks source link

speed up `helperfun` Cython extension #77

Closed espenhgn closed 2 years ago

espenhgn commented 2 years ago

With class TopoPopulation, for large networks and small mask radii the probability (Pr) for drawing a presynaptic neuron will be 0 for a large number of entries. Seems like we should only parse nodes[Pr>0] and Pr[Pr>0] to LFPy.alias_method.alias_method in helperfun._getSpCell() to avoid many comparisons to 0.