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

Respect positional arguments in @mtkmodel #3019

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

baggepinnen
Copy link
Contributor

@baggepinnen baggepinnen commented Sep 5, 2024

This PR does fix the problem in #3019,

but it introduces another one:
Keyword arguments that are passed like fun(; arg), i.e., relying on the variable and the keyword being named the same, will not work anymore. To fix this, the code must execute the correct branch, knowing which side of the keyword arg delimiter the arg appears.

src/systems/model_parsing.jl Outdated Show resolved Hide resolved
src/systems/model_parsing.jl Outdated Show resolved Hide resolved
src/systems/model_parsing.jl Outdated Show resolved Hide resolved
src/systems/model_parsing.jl Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@baggepinnen
Copy link
Contributor Author

@SebastianM-C see this

@ven-k do you think you could take ´over this one? I could not easily handle all corner cases

@ven-k
Copy link
Member

ven-k commented Oct 3, 2024

'Will take a look.

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.

2 participants