Skip to content

Commit 793abb5

Browse files
fix: fix calling MTKParameters functions with just tunables vector
1 parent e563466 commit 793abb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/codegen_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ end
287287
# The user provided a single buffer/tuple for the parameter object, so wrap that
288288
# one in a tuple
289289
fargs = ntuple(Val(length(args))) do i
290-
i == paramidx ? :((args[$i],)) : :(args[$i])
290+
i == paramidx ? :((args[$i], nothing)) : :(args[$i])
291291
end
292292
return :($f($(fargs...)))
293293
end

0 commit comments

Comments
 (0)