-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: clean up the
get_solution
function using new optlang feat…
…ures (#481) * chore: depend on new optlang version * refactor: use new optlang `is_integer` property The newly released optlang 1.1.4 has an `interface.Model.is_integer` property that we can use to declutter the `get_solution` function. Also use this opportunity to make slight optimizations that avoid multiple loops over reactions and metabolites.
- Loading branch information
1 parent
b44bdec
commit b3fe058
Showing
2 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters