Skip to content

Commit fe84b34

Browse files
committed
fix missing insym variable
1 parent ec96855 commit fe84b34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/component_functions.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,7 @@ function _fill_defaults(T, @nospecialize(kwargs))
958958

959959
dict[:_obssym_all] = setdiff(_outsym_flat, sym) obssym
960960

961+
insym = dict[:insym]
961962
if !isnothing(insym)
962963
insym_flat = flatten_sym(insym)
963964
dict[:_obssym_all] = dict[:_obssym_all] insym_flat
@@ -994,10 +995,8 @@ function _fill_defaults(T, @nospecialize(kwargs))
994995

995996
_is = if isnothing(__is)
996997
Symbol[]
997-
elseif __is isa NamedTuple
998-
vcat(__is.src, __is.dst)
999998
else
1000-
__is
999+
flatten_sym(insym)
10011000
end
10021001
if !allunique(vcat(_s, _ps, _obss, _is, _os))
10031002
throw(ArgumentError("Symbol names must be unique. There are clashes in sym, psym, outsym, obssym and insym."))

0 commit comments

Comments
 (0)