-
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
Make (most) painted parameters scalable. #2141
Make (most) painted parameters scalable. #2141
Conversation
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.
This looks good now. Happy to see you could make the exclusive use of iexpr
work!
I just got some minor comments on the documentation.
doc/concepts/decor.rst
Outdated
@@ -194,6 +202,9 @@ Currently, only parameters of :ref:`density mechanisms <cablecell-density-mechs> | |||
# paint a scaled density mechanism, where 'g' is scaled with the distance from the root. | |||
decor.paint('"dend"', arbor.scaled_mechanism(arbor.density(m), {'g': '(distance 1.0 (root))'})) | |||
|
|||
# initial value for the membrane potential | |||
decor.paint('(all)', Vm=(42, '(diameter)')) |
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.
Is this still correct syntax with the recent changes?
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.
Nope, good catch!
doc/python/decor.rst
Outdated
@@ -71,17 +71,19 @@ Cable cell decoration | |||
|
|||
.. method:: paint(region, Vm=None, cm=None, rL=None, tempK=None) | |||
|
|||
Set cable properties on a region. | |||
Set cable properties on a region. If a pair of float ``v`` and a string |
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.
This should probably be changed to "float or string" as well. Same with the following lines.
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.
👍
Allow application of
iexpr
scaling onto