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

Apply some polish to model construction. #2134

Merged
merged 7 commits into from
Jul 26, 2023

Conversation

thorstenhater
Copy link
Contributor

Make single cell model a bit more convenient by allowing to build from {morph | segment_tree, decor, {labels}.
Allow kwargs to construct mechanisms (density, scaled, junction, synapse, voltage), thus we can write

mech = arbor.mechanism('mech_name', param1=1.2, param2=3.14)

instead of

mech = arbor.mechanism('mech_name', {'param1': 1.2, 'param2': 3.14})

Copy link
Contributor

@brenthuisman brenthuisman left a comment

Choose a reason for hiding this comment

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

Could you add a line to doc/python/mechanisms.rst?

@thorstenhater
Copy link
Contributor Author

Done and fixed the examples to the new nice syntax ;)

brenthuisman
brenthuisman previously approved these changes Jun 28, 2023
Copy link
Contributor

@brenthuisman brenthuisman left a comment

Choose a reason for hiding this comment

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

lgtm, tests are not passing though...

@brenthuisman brenthuisman added this to the v0.9 milestone Jul 4, 2023
* C/V error in doc
* Syntax error in example
* Try to appease gcc-12 in CI
@brenthuisman brenthuisman self-requested a review July 26, 2023 11:42
Copy link
Contributor

@brenthuisman brenthuisman left a comment

Choose a reason for hiding this comment

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

Amazing!

@thorstenhater thorstenhater merged commit ad1fd65 into arbor-sim:master Jul 26, 2023
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