Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
yannikschaelte committed Sep 5, 2018
1 parent 0c84e73 commit 79c54e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_x_fixed.py
Expand Up @@ -23,17 +23,17 @@ def test_optimize(self):
optimizer = pypesto.ScipyOptimizer()
n_starts = 5
result = pypesto.minimize(problem, optimizer, n_starts)

optimizer_result = result.optimize_result.list[0]
self.assertEqual(len(optimizer_result.x), 5)
self.assertEqual(len(optimizer_result.grad), 5)

# maybe not what we want, but that's how it is right now
self.assertEqual(len(problem.ub), 3)

# nans written into unknown components
self.assertTrue(np.isnan(optimizer_result.grad[1]))

# fixed values written into parameter vector
self.assertEqual(optimizer_result.x[1], 1)

Expand Down

0 comments on commit 79c54e7

Please sign in to comment.