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

Introduce ASTExternalVariableType #1073

Open
clinssen opened this issue Jul 1, 2024 · 0 comments
Open

Introduce ASTExternalVariableType #1073

clinssen opened this issue Jul 1, 2024 · 0 comments

Comments

@clinssen
Copy link
Contributor

clinssen commented Jul 1, 2024

This is a design idea for a refactoring/cleanup.

ASTExternalVariable now covers several scenarios: fetch a variable from the postsynaptic partner, fetch a variable from the postsynaptic partner at a specific time in the spiking history buffer, and at a specific time in a continuous-time history buffer.

To keep these cases separated, it might be an option to introduce a variable type enum covering each of these cases as a class attribute.

This would help to clean up the following lines of code in the printer:

# print external variables (such as a variable in the synapse that needs to call the getter method on the postsynaptic partner)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant