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

Interpolate variables from surrounding scope #76

Open
lukem12345 opened this issue Sep 20, 2024 · 0 comments
Open

Interpolate variables from surrounding scope #76

lukem12345 opened this issue Sep 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lukem12345
Copy link
Member

Currently, almost all example Decapodes employ small helper variables, typically scalars. The values of these variables are passed into the simulator as a named tuple.

However, this process can become clunky even in simple scenarios. For example, simple compositions may rename a variable, causing some confusion when providing this parameter.

So, we should alternatively allow Decapodes to "interpolate" the values of local variables, storing them in the name attribute. This feature is technically easy to implement under the current parsing techniques.

@lukem12345 lukem12345 added the enhancement New feature or request label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant