Skip to content

Commit

Permalink
fix usage of abs when converting to a pyomo model
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbynum committed Dec 13, 2023
1 parent 5661e43 commit 9188b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wntr/sim/aml/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def _update(arg, val_dict, aml_to_pyomo):
THEN = 1,
ELSE = -1)
elif isinstance(oper, AbsOperator):
val_dict[oper] = EXPR.AbsExpression(arg)
val_dict[oper] = arg.__abs__()
else:
return

Expand Down

0 comments on commit 9188b6e

Please sign in to comment.