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

Support callable parameters in @mtkmodel #3182

Open
cstjean opened this issue Nov 5, 2024 · 0 comments
Open

Support callable parameters in @mtkmodel #3182

cstjean opened this issue Nov 5, 2024 · 0 comments
Assignees

Comments

@cstjean
Copy link
Contributor

cstjean commented Nov 5, 2024

As noted in #2995 (comment), callable parameters are a great new feature, that don't yet work inside of @mtkmodel.

@mtkmodel MyModel begin
	@parameters begin
		(interp::Tspline)(..)
	end
end

yields MethodError: Cannot convert an object of type Expr to an object of type Symbol while

@mtkmodel MyModel begin
	@variables begin
		x(t)
	end
	@parameters begin
		interp(::Float64)
	end
end

yields AssertionError: Multiple independent variables are used in the model Symbol Symbol (seemingly the ::Float64 is treated like the independent variable t)

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

2 participants