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

Make (most) painted parameters scalable. #2141

Merged
merged 14 commits into from
Aug 3, 2023

Conversation

thorstenhater
Copy link
Contributor

Allow application of iexpr scaling onto

  • Temperature
  • Capacitance
  • Resistivity
  • Membrane potential
  • Ionic parameters: internal/external concentration, diffusivity, and reversal potential.

arbor/fvm_layout.cpp Outdated Show resolved Hide resolved
arbor/include/arbor/cable_cell_param.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@AdhocMan AdhocMan left a 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.

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

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, good catch!

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

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@thorstenhater thorstenhater merged commit fdcf511 into arbor-sim:master Aug 3, 2023
25 checks passed
@thorstenhater thorstenhater deleted the parametric-parameters branch August 3, 2023 14:57
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