Skip to content

Commit

Permalink
Solver does not has tolerance (yet!)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-code-magician committed Apr 27, 2015
1 parent 141d452 commit 2b9f554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_flux_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ def test_lmoma(self):
solution = lmoma(self.model, reference=pfba_solution)
distance = sum([abs(solution[v] - pfba_solution[v]) for v in list(pfba_solution.keys())])
self.assertAlmostEqual(0, distance,
delta=self.model.solver.configuration.tolerance,
delta=1e-6,
msg="lmoma distance without knockouts must be 0 (was %f)" % distance)

def test_room(self):
pfba_solution = pfba(self.model)
solution = room(self.model, reference=pfba_solution)
self.assertAlmostEqual(0, solution.objective_value,
delta=self.model.solver.configuration.tolerance,
delta=1e-6,
msg="room objective without knockouts must be 0 (was %f)" % solution.objective_value)

def test_room_shlomi_2005(self):
Expand Down

0 comments on commit 2b9f554

Please sign in to comment.