Skip to content

Commit

Permalink
Merge pull request #4 from coltonlloyd/division-fix
Browse files Browse the repository at this point in the history
Fix bug in float/integer division
  • Loading branch information
laurenceyang33 authored Dec 1, 2017
2 parents 1a59c55 + 78ee8b6 commit 564528f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qminospy/me1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import print_function, absolute_import
from __future__ import print_function, absolute_import, division
#============================================================
# File me1.py
#
Expand Down Expand Up @@ -200,7 +200,7 @@ def varyme(self, mu_fixed, rxns_fva0, basis=None, verbosity=0):
fva_result = {
(self.me.reactions[obj_inds0[2*i]].id):{
'maximum':obj_vals[2*i],
'minimum':obj_vals[2*i+1] } for i in range(0, nVary/2) }
'minimum':obj_vals[2*i+1] } for i in range(0, nVary//2) }

# Save updated basis
self.hs = hs
Expand Down

0 comments on commit 564528f

Please sign in to comment.