Skip to content

Commit

Permalink
Update chemistry_functionality.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Jun 7, 2024
1 parent d997050 commit 0cadeea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chemistry_functionality.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function make_compound(expr)
# Loops through all components, add the component and the coefficients to the corresponding vectors
# Cannot extract directly using e.g. "getfield.(composition, :reactant)" because then
# we get something like :([:C, :O]), rather than :([C, O]).
composition = Catalyst.recursive_find_reactants!(xpr.args[3], 1,
composition = Catalyst.recursive_find_reactants!(expr.args[3], 1,
Vector{ReactantStruct}(undef, 0))
components = :([]) # Becomes something like :([C, O]).
coefficients = :([]) # Becomes something like :([1, 2]).
Expand Down

0 comments on commit 0cadeea

Please sign in to comment.