-
Notifications
You must be signed in to change notification settings - Fork 61
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
fixed typo and code style #2344
Conversation
Thorsten please add the units
doc/python/decor.rst
Outdated
decor = arbor.decor() | ||
decor.set_property(rL=100, cm=0.1) | ||
decor = A.decor() | ||
decor.set_property(rL=100 [unit], cm=0.1[unit]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
the units are explained here
Line 626 in 7d20a79
.def("set_property", |
in the code. Note, however, that only the dimension needs to match, not the scale.
So, you could happily pass kOhm
to any resistance-type argument and Arbor will
scale it properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did mean to say that you could find the units there, not that they aren't needed
" * Vm: initial membrane voltage [mV].\n"
" * cm: membrane capacitance [F/m²].\n"
" * rL: axial resistivity [Ω·cm].\n"
" * tempK: temperature [Kelvin].\n"
doc/python/decor.rst
Outdated
# Specialize resistivity and capacitance on the axon, where | ||
# axon is defined using a region expression. | ||
decor.paint('(tag 2)', cm=0.05, rL=80) | ||
decor.paint('(tag 2)', cm=0.05 * U.F/m², rL=80 * U.Ω·cm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here.
doc/python/decor.rst
Outdated
@@ -90,10 +92,10 @@ Cable cell decoration | |||
.. code-block:: Python | |||
|
|||
# Specialize resistivity on soma | |||
decor.paint('"soma"', rL=100) | |||
decor.paint('"soma"', rL=100 * U.Ω·cm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Co-authored-by: Thorsten Hater <[email protected]>
Thorsten please add the units