-
Notifications
You must be signed in to change notification settings - Fork 55
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
scaling of cell positions #202
Comments
@jasmainak I just realized that in nrn-space, the apical dendrite extends along the y-axis and contributes to the net dipole along with all other dendrites with a y-components. Note that the soma and apical dendrite are modeled as cylinders who's aligned axes extends along the 2nd dimension. |
not sure I follow. |
The points that define the extent of the cylindrical soma and apical dendrites create an axis along the 2nd dimension. Unless these compartments get rotated somewhere in the code that I'm unaware of, this convention is maintained by translating the 2nd (y) dimension of the nrn model by I think you're right that it doesn't explicitly calculate the y-component, however, across the population, the net contribution of other components should be negligible. (I don't completely understand what is going on |
My head's spinning with the orientations here. Can we agree on what the three cardinal axes are? It seems like |
Correct, that is my understanding. Personally, I think we should change this in the model so that 'z' || apical dendrite orientation. |
I think so too, though I'd like to understand the original reason for choosing the axis order. Is there a NEURON convention this is following? Or is it simply that HNN was conceived as a 2D (xz-)model, so it made sense to align the dipole moment with the second? @samnemo perhaps you can shed light here too? |
see here: Lines 30 to 32 in 00ebb0f
this may (or may not) answer some questions |
I discovered in #200 that the cell positions are scaled in a somewhat odd way:
hnn-core/hnn_core/cell.py
Line 154 in bb559b7
This seems like a bug to me but maybe we are missing something. Two questions:
self.pos[2]
passed instead ofself.pos[1]
for y coordinateself.pos[2]
not scaled by 100?It's not super-clear where this factor 100 comes from. Since the dipole moment = current * distance, this will affect the final result. cc @stephanie-r-jones @rythorpe
The text was updated successfully, but these errors were encountered: