richardtomsett / vertexsimulator

Virtual Electrode Recording Tool for EXtracellular potentials: a Matlab simulator for spatially realistic LFP simulation in spiking neural networks
Other
10 stars 3 forks source link

corrected calculatePassiveProperties.m to allow one-compartment model… #2

Closed RokasSt closed 9 years ago

RokasSt commented 9 years ago

One-compartment models are successfully initialized and run only when NeuronArr(iGroup).numCompartments >=1 instead of >1. Thus I suggest to change to >=1. Regards, Rokas

@richardtomsett

richardtomsett commented 9 years ago

@RokasSt

Good idea but unfortunately the simple edit would have potentially caused problems for any models containing single-compartment neuron groups that did not specify R_M etc. parameters. I have made some updates to VERTEX in the main branch that should fix this issue more robustly with regard to different user input. It seems to fix the problem with the 1 compartment example in the VERTEX showcase. Sorry for the delay by the way!

RokasSt commented 9 years ago

No problem, thanks for updates anyway!