Specifying diameter during axon discretization
-
Hi,
I am trying to create axons with varying diameters. Below is the script I am using. Regardless of what Diameter I set, the actual model produced has a diameter of 20µm. Does anyone know how to fix that?
Axon_name='axon' Diameter=10 axon = model.AllEntities()[Axon_name] neuron_settings=model.MotorMrgNeuronProperties neuron_settings.AxonDiameter=Diameter discretized_axon = model.CreateAxonNeuron(axon, neuron_settings()) discretized_axon.Name = Axon_name +'_neuron'
Thanks!
-
I have managed to solve this. The function below seems to work
def DiscretizeAxonModel(Axon_name, Diameter, type,folder): axon_entity = model.AllEntities()[Axon_name] if type=='motor': model_properties=model.MotorMrgNeuronProperties() elif type=='sensory': model_properties=model.SensoryMrgNeuronProperties() else: model_properties=model.MotorNeuronProperties() model_properties.AxonDiameter=Diameter discretized_axon = model.CreateAxonNeuron(axon_entity,model_properties) discretized_axon.Name = Axon_name +'_neuron' folder.Add(discretized_axon)