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

possible bug when using update_params() on flexmodel_to_calibrate objects #242

Open
papsti opened this issue Jul 13, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@papsti
Copy link
Collaborator

papsti commented Jul 13, 2023

see 6484d79 for a reprex

not sure if this is intended behaviour or if it's a bug... i'm just trying to manually update some parameters in a flexmodel_to_calibrate object so that simulation_history() uses those updated parameters. i'm using update_params() but the updated values aren't reflected in the sims...

i can circumvent this in the code i'm developing by toting around the original flexmodel object and just updating paramteres in that for simulation. i've tried using as.flexmodel() on the flexmodel_to_calibrate object to try to coerce it into behaving predictably with simulation_history(), but hilariously attempts at simulation_history(as.flexmodel(mod)) where mod is a flexmodel_to_calibate object crash my RStudio session 🙃

@papsti papsti added the bug Something isn't working label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant