Skip to content

Commit

Permalink
Add hasSolvers() to Model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-dv committed Jun 17, 2024
1 parent b821ffd commit f4d8e49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/end2end/scripts/python/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ def __init__(self, filename, expsolution, tags, otherFiles=None,
self._name = overrideName if overrideName else filename.stem
self._description = description

def hasSolvers(self):
return (self._description is not None) and \
("solvers" in self._description)

def getSolvers(self):
return self._description["solvers"]

Expand Down

0 comments on commit f4d8e49

Please sign in to comment.