Skip to content

Commit 696c378

Browse files
committed
fix missing type check
1 parent 82f04d4 commit 696c378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symbolicindexing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ function observed_symbols(nw::Network)
402402
end
403403

404404
function SII.observed(nw::Network, snis)
405-
if any(sni -> sni isa ObservableExpression, snis)
405+
if (snis isa AbstractVector || snis isa Tuple) && any(sni -> sni isa ObservableExpression, snis)
406406
throw(ArgumentError("Cannot mix normal symbolic indices with @obsex currently!"))
407407
end
408408

0 commit comments

Comments
 (0)