Skip to content
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

Merged
merged 6 commits into from
Aug 8, 2024
Merged

fixed typo and code style #2344

merged 6 commits into from
Aug 8, 2024

Conversation

ErbB4
Copy link
Collaborator

@ErbB4 ErbB4 commented Jul 31, 2024

Thorsten please add the units

Thorsten please add the units
decor = arbor.decor()
decor.set_property(rL=100, cm=0.1)
decor = A.decor()
decor.set_property(rL=100 [unit], cm=0.1[unit])
Copy link
Contributor

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

.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.

Copy link
Contributor

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 Show resolved Hide resolved
# 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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@thorstenhater thorstenhater merged commit 16c8687 into master Aug 8, 2024
3 checks passed
@thorstenhater thorstenhater deleted the ErbB4-patch-8 branch August 8, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants