File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -273,8 +273,9 @@ function make_reaction_system(ex::Expr, name)
273
273
options = Dict (Symbol (String (arg. args[1 ])[2 : end ]) => arg for arg in option_lines)
274
274
allunique (arg. args[1 ] for arg in option_lines) ||
275
275
error (" Some options where given multiple times." )
276
- (sum (length, [reaction_lines, option_lines]) != length (ex. args)) &&
277
- error (" @reaction_network input contain $(length (ex. args) - sum (length .([reaction_lines,option_lines]))) malformed lines." )
276
+ numlines = length (reaction_lines) + length (option_lines)
277
+ (numlines != length (ex. args)) &&
278
+ error (" @reaction_network input contain $(length (ex. args) - $ numlines) malformed lines." )
278
279
any (! in (option_keys), keys (options)) &&
279
280
error (" The following unsupported options were used: $(filter (opt_in-> ! in (opt_in,option_keys), keys (options))) " )
280
281
You can’t perform that action at this time.
0 commit comments