Skip to content

Commit

Permalink
Minor format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jan 27, 2022
1 parent effe805 commit 1d68220
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyenzyme/enzymeml/models/kineticmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ def __call__(self, **variables) -> KineticModel:

try:
identifier: str = variables[stock_variable]

model.equation = model.equation.replace(
stock_variable, identifier)
stock_variable, identifier
)
except KeyError:
raise KeyError(
f"Variable {stock_variable} has not been given. Please make sure to cover all variables: [{repr(self.variables)}]"
Expand Down

0 comments on commit 1d68220

Please sign in to comment.