Cleanup of the postsynaptic trace transformer used in NEST code generation#1318
Draft
clinssen wants to merge 5 commits intonest:masterfrom
Draft
Cleanup of the postsynaptic trace transformer used in NEST code generation#1318clinssen wants to merge 5 commits intonest:masterfrom
clinssen wants to merge 5 commits intonest:masterfrom
Conversation
055c64a to
be2a34b
Compare
clinssen
commented
Feb 15, 2026
|
|
||
| return neurons, synapses | ||
|
|
||
| @classmethod |
Contributor
Author
There was a problem hiding this comment.
Or whould these methods better go in NESTCodeGeneratorUtils?
Contributor
There was a problem hiding this comment.
I think we can keep the post port-based methods here and move the vt port methods to NESTCodeGeneratorUtils.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is preliminary work for the corresponding presynaptic trace transformer that will be added for the SpiNNaker code generation target.
Change lists to sets and de-duplicate methods from neuron-synapse co-generation-related transformers into a separate utils class.
Additionally, refactor the way that extra attributes and information about the model is stored in an extra "metadata" data structure, which, for every model, maps named attributes to values. (This is currently done by setting extra attributes on the neuron and synapse ASTModel class instances, which is very dirty.) The idea is that each transformer accepts metadata and can add metadata for each model using its own set of unique key/value mappings.