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

SampledData no longer allows a tunable buffer #272

Open
AayushSabharwal opened this issue Feb 22, 2024 · 0 comments
Open

SampledData no longer allows a tunable buffer #272

AayushSabharwal opened this issue Feb 22, 2024 · 0 comments

Comments

@AayushSabharwal
Copy link
Member

As of MTKv9, parameter values are required to match their symtype. SampledData.buffer is updated to reflect this (in #271) but since it does not have a fixed size, it is marked as Constant and not Tunable.

Changing the definition to @parameters buffer[1:length(buffer)] would solve this issue, except ModelingToolkit.get_u0 scalarizes all default values, which causes varmap_to_vars to take very long for initialization.

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

No branches or pull requests

1 participant