From cd2954a1b834b71c9387c472c23c2d0689b53e05 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 29 Mar 2011 14:16:32 -0400 Subject: [PATCH] logic error --- Sketch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sketch.py b/Sketch.py index bd669d2..f069950 100644 --- a/Sketch.py +++ b/Sketch.py @@ -34,8 +34,8 @@ class Sketch(object): e = equations[i] coeffs = e[0] for c in coeffs: - var_index = shape_vars[coeffs[1]] - C[i][var_index] = coeffs[0] + var_index = shape_vars[c[1]] + C[i][var_index] = c[0] d[i] = e[1] s = SLE(C, d) r = s.solve()