Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fixed nr["ranvier_nodes"]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinway25 authored Jun 22, 2021
1 parent a06b533 commit 3b0035a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OSS_platform/Neural_array_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_neuron_morhology(self,fib_diam,N_Ranvier): # pass fib_diam and
a = Axon(param_ax)
nr = Axon.get_axonparams(a) # we need here distances between compartments: nr["ranvier_length"], nr["para1_length"], nr["para2_length"], nr["inter_length"], nr["deltax"]

n_comp = int(((N_Ranvier - 1) + nr["inter_nodes"] + nr["para1_nodes"] + nr["para2_nodes"]) / (nr["ranvier_nodes"] - 1))
n_comp = int(((nr["ranvier_nodes"] - 1) + nr["inter_nodes"] + nr["para1_nodes"] + nr["para2_nodes"]) / (nr["ranvier_nodes"] - 1))
n_segm = int((N_Ranvier - 1)*n_comp + 1) # overall number of compartments on one axon incl. internodal

elif self.neuron_model == 'Reilly2016':
Expand Down

0 comments on commit 3b0035a

Please sign in to comment.