summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/aux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aux.py b/src/aux.py
index cfe1e16..308df7e 100644
--- a/src/aux.py
+++ b/src/aux.py
@@ -110,7 +110,7 @@ def polynomially_interpolate_ramp(r, g, b): # TODO test, demo and document this
A[i] -= A[k] * m
# Eliminiate upper right
for k in reversed(range(n)):
- A[:k] = [A[i] - A[k] * M[i][k] / M[k][k] for i in range(k]]
+ A[:k] = [A[i] - A[k] * M[i][k] / M[k][k] for i in range(k)]
# Eliminiate diagonal
A = [A[k] / M[k][k] for k in range(n)]
## Construct interpolation function