Skip to content

Commit

Permalink
ensure tracked variables are of type Num
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Feb 27, 2024
1 parent f7e2617 commit 9e5bebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function processes_to_mtkmodel(_processes, _default = [];
processes = expand_multi_processes(_processes)
default = default_dict(_default)
# Setup: obtain lhs-variables so we can track new variables that are not
# in this vector
lhs_vars = map(lhs_variable, processes)
# in this vector. The vector has to be of type `Num`
lhs_vars = Num[lhs_variable(p) for p in processes]
ensure_unique_vars(lhs_vars)
# First pass: generate equations from given processes
# and collect variables without equations
Expand Down

0 comments on commit 9e5bebb

Please sign in to comment.