Skip to content

Improve flexibility of C++ standalone generated code #152

Open
@thesamovar

Description

@thesamovar

At the moment, the C++ standalone generated code works, but is not terribly user readable, and even less user modifiable. Some things that would improve that:

  • Insert comments into the generated C++ code that correspond to the original Python code
  • Collect features together into classes. For example, NeuronGroup at the moment consists of a bunch of arrays, fixed set of templates (state update, threshold, reset), and in indefinite number of initialisation statements. These could be automatically grouped together into a single NeuronGroup class. This would allow users to more easily modify generated code, e.g. to loop through a set of variables and create a NeuronGroup for each iteration of the loop.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions