Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
whoburg committed Jan 6, 2024
1 parent 8a75ec7 commit 1679a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpkit/interactive/plotting.py
Expand Up @@ -54,9 +54,9 @@ def plot_convergence(model):

it = np.array([])
cost = np.array([])
for n in range(len(model.program.gps)):
for n, gp in enumerate(model.program.gps):
try:
cost = np.append(cost, model.program.gps[n].result['cost'])
cost = np.append(cost, gp.result['cost'])
it = np.append(it, n+1)
except TypeError:
pass
Expand Down

0 comments on commit 1679a9a

Please sign in to comment.