Skip to content

Commit 5a73d5e

Browse files
committed
refactor: add macro compatible interface for Interpolation
1 parent 19b8938 commit 5a73d5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Blocks/sources.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,10 @@ such as `LinearInterpolation`, `ConstantInterpolation` or `CubicSpline`.
755755
"""
756756
function Interpolation(interp_type, u, x, args...; name)
757757
itp = interp_type(u, x, args...)
758-
Interpolation(itp; name)
758+
Interpolation(; itp, name)
759759
end
760760

761-
function Interpolation(itp; name)
761+
function Interpolation(; itp, name)
762762
@parameters (interpolator::typeof(itp))(..) = itp
763763
@named input = RealInput()
764764
@named output = RealOutput()

0 commit comments

Comments
 (0)