Skip to content

Commit

Permalink
fix missing insym variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaeder committed Jan 7, 2025
1 parent ec96855 commit fe84b34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/component_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ function _fill_defaults(T, @nospecialize(kwargs))

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

insym = dict[:insym]
if !isnothing(insym)
insym_flat = flatten_sym(insym)
dict[:_obssym_all] = dict[:_obssym_all] insym_flat
Expand Down Expand Up @@ -994,10 +995,8 @@ function _fill_defaults(T, @nospecialize(kwargs))

_is = if isnothing(__is)
Symbol[]
elseif __is isa NamedTuple
vcat(__is.src, __is.dst)
else
__is
flatten_sym(insym)
end
if !allunique(vcat(_s, _ps, _obss, _is, _os))
throw(ArgumentError("Symbol names must be unique. There are clashes in sym, psym, outsym, obssym and insym."))
Expand Down

0 comments on commit fe84b34

Please sign in to comment.