suny-downstate-medical-center / netpyne

A Python package to facilitate the development, parallel simulation, optimization and analysis of multiscale biological neuronal networks in NEURON.

Home Page:http://www.netpyne.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LFP recording error when pop has multiple cell morphologies

vvbragin opened this issue · comments

This happens because NetPyNE calculates segment coords only once per population (in Pop.calcRelativeSegCoords()), and then reuses it for all cells in this pop, assuming that they all have the same morphology. But if this assumption is broken, it crashes.
To solve this, need to either calculate it per each cell, without per-pop caching (bulletproof but might be expensive), or once per cellType (more efficient but still vulnerable in case some subset of cells of given cellType has the modified morphology modified by modifyCells())