Skip to content

Commit 9a9d861

Browse files
committed
up
1 parent 37096a3 commit 9a9d861

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reactionsystem.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ function Reaction(rate, subs, prods, substoich, prodstoich;
196196
deleteat!(metadata, findfirst(:only_use_rate == entry[1] for entry in metadata))
197197
end
198198

199+
# Ensures metadata have the correct type.
200+
metadata = convert(Vector{Pair{Symbol, Any}}, metadata)
201+
199202
Reaction(value(rate), subs, prods, substoich′, prodstoich′, ns, only_use_rate, metadata)
200203
end
201204

0 commit comments

Comments
 (0)