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

Improve show for Connector objects #503

Merged
merged 9 commits into from
Dec 17, 2024
Merged

Conversation

harisorgn
Copy link
Member

Changes how Connector objects are shown for user friendliness.

The Connector fields are now Vector{Vector{...}} to keep track of the fields of individual connections while being also able to reduce over them for the final system. spike_affects and learning_rule are still Dicts since their keys are other Connector fields, so accessing connection-specific affects and plasticity rules is easy.

@harisorgn harisorgn merged commit 9ca1f7e into master Dec 17, 2024
6 checks passed
@harisorgn harisorgn deleted the ho/better_show_connect branch December 17, 2024 16:43
david-hofmann pushed a commit that referenced this pull request Jan 2, 2025
* use `Vector{Vector}` and `Dict` in `Connector` fields to keep track of individual connections

* import `MTK.equations`

* improve `show` for `Connector`

* add getter functions for all `Connector` fields

* add `Vector{Vector}` wrapper function

* remove old `BloxConnector` getter functions

* change local variable name to not clash with getter function name

* add `equations(Connector)` argument to discrete callback generators to avoid accumulating them again

* adapt `AdjacencyMatrix` to new `Connector` field types
david-hofmann pushed a commit that referenced this pull request Jan 3, 2025
* use `Vector{Vector}` and `Dict` in `Connector` fields to keep track of individual connections

* import `MTK.equations`

* improve `show` for `Connector`

* add getter functions for all `Connector` fields

* add `Vector{Vector}` wrapper function

* remove old `BloxConnector` getter functions

* change local variable name to not clash with getter function name

* add `equations(Connector)` argument to discrete callback generators to avoid accumulating them again

* adapt `AdjacencyMatrix` to new `Connector` field types
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.

1 participant