Skip to content

Automatically derive mechanisms from the parameter list - #2534

Open
thorstenhater wants to merge 5 commits into
arbor-sim:masterfrom
thorstenhater:ux/mechanism-global-in-map
Open

thorstenhater wants to merge 5 commits into
arbor-sim:masterfrom
thorstenhater:ux/mechanism-global-in-map

Conversation

@thorstenhater

@thorstenhater thorstenhater commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Absorb global parameters into the mechanism info by moving global parameters
from the parameter list into the derivation closure.

Example

density("pas", {{"e", 80}, {"g", 0.42}})
// becomes
density("pas/e=80", {{"g", 0.42}})

Includes a few refactorings around fvm_layout, like introducing flat_map<K, V> = vector<pair<K, V>>.
(Note, that flat_map probably wants some infrastructure from rangeutil later. For now it just establishes
a naming scheme and saves on typing.
This is exists in maputil)

@thorstenhater
thorstenhater requested a review from ErbB4 October 22, 2026 08:13
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