Skip to content
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

LFP recording error when pop has multiple cell morphologies #772

Open
vvbragin opened this issue Aug 21, 2023 · 1 comment
Open

LFP recording error when pop has multiple cell morphologies #772

vvbragin opened this issue Aug 21, 2023 · 1 comment

Comments

@vvbragin
Copy link
Collaborator

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())

@urdapile
Copy link
Collaborator

Fixed when "diversity" is used. It takes one cell template per subpopulation (cfg.includeParamsLabel should be True, as it is by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants