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

feat: allow for overriding data variables and lookups at runtime #490

Merged
merged 147 commits into from
May 31, 2024

Conversation

chrispcampbell
Copy link
Contributor

Fixes #472

This updates the compiler so that it includes a setLookup function in generated C and JS models, and then updates the runtime packages to allow for supplying lookup overrides via a new options parameter for ModelRunner.runModel.

See this issue comment for more details on the changes included here. TL;DR this mostly adds new functionality, and there should be no impact on existing projects.

/cc @ToddFincannonEI

…he latter was causing duplicate items, since it includes a mix of const, aux, and level vars)
@chrispcampbell
Copy link
Contributor Author

I resolved one last minute issue with the runtime-async tests, otherwise I think this is ready to be merged. As with the other recent branches and PRs, Todd won't have time to review this before it gets merged, so we will merge but then keep the changes queued up on main before we publish official packages.

@chrispcampbell chrispcampbell merged commit 6c888e8 into main May 31, 2024
6 checks passed
@chrispcampbell chrispcampbell deleted the chris/472-override-lookups branch May 31, 2024 17:13
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.

Allow for overriding data variables and lookups at runtime
1 participant