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

Add user function in rxode2 ui that can change code when evaluating #782

Merged
merged 20 commits into from
Oct 17, 2024

Conversation

mattfidler
Copy link
Member

Fore example

linMod(x, 3)

in the code base would translate to:

rxLM1_1 + rxNM1_2*x + rxNM1_3*x^2 + + rxNM1_4*x^4

And all the new constants would be in the ini file after evaluating the function.

@mattfidler
Copy link
Member Author

mattfidler commented Sep 8, 2024

This requires:

  • a way to register a user function that takes n arguments and changes output code
  • a way to push a new $param to the parser (error with overlapping state, lhs, params already defined)
  • a way to push population/bsv parameter estimates to the queue to integrate on evaluation of the ui (or ignoring if the model is a "simple/classic" rxode2 model)
  • A call to generate code given it is the nth call to the function within the model.

@mattfidler mattfidler closed this Oct 6, 2024
@mattfidler mattfidler reopened this Oct 10, 2024
@mattfidler
Copy link
Member Author

mattfidler commented Oct 10, 2024

For this to be more useful it also will require:

  • variable number arguments
  • named arguments
  • lhs of the current expression

And in conjunction with nlmixr2est would require:

  • A user function that can see the data to be fit/simulated.

@mattfidler mattfidler merged commit 0c46c63 into main Oct 17, 2024
5 of 7 checks passed
@mattfidler mattfidler deleted the 782-ui-user-function branch October 17, 2024 00:00
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.

1 participant