summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-03 15:29:11 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-03 15:29:11 +0200
commit0bb7dfc0bbd1954c00afa39d70d077fe7b76a2c3 (patch)
tree9e1b1a701fa3ef69f6926fe63018fd96182096df /src
parentadd polynomial interpolation with linear fallback, not tested or documented (diff)
downloadblueshift-0bb7dfc0bbd1954c00afa39d70d077fe7b76a2c3.tar.gz
blueshift-0bb7dfc0bbd1954c00afa39d70d077fe7b76a2c3.tar.bz2
blueshift-0bb7dfc0bbd1954c00afa39d70d077fe7b76a2c3.tar.xz
typo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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