Skip to content

Commit

Permalink
Checking if compact models are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
whart222 committed Oct 8, 2024
1 parent b16bb8e commit 711f5af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/poek/poek/poek_pybind11.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def model_variable(self, *args, **kwds):


setattr(model, "add_variable", model_variable)
setattr(compact_model, "add_variable", model_variable)
try:
setattr(compact_model, "add_variable", model_variable)
except:
pass

def print_equations(self, ostream=None):
if ostream is None:
Expand Down

0 comments on commit 711f5af

Please sign in to comment.