summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-02 23:20:50 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-02 23:20:50 +0200
commitb551d150dd90da7084293e1e7edb3f5f3521f477 (patch)
tree8ba818386071a7456fc23200a0ea3ba466702f42 /src
parentability to function without argparser (diff)
downloadblueshift-b551d150dd90da7084293e1e7edb3f5f3521f477.tar.gz
blueshift-b551d150dd90da7084293e1e7edb3f5f3521f477.tar.bz2
blueshift-b551d150dd90da7084293e1e7edb3f5f3521f477.tar.xz
typo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/blackbody.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blackbody.py b/src/blackbody.py
index 83b2b9d..ac2e5ed 100644
--- a/src/blackbody.py
+++ b/src/blackbody.py
@@ -136,11 +136,11 @@ def cmf_xdeg(temperature, lut, temp_min = 1000, temp_max = 40000, temp_step = 10
# x component floor and y component floor
floor = lut[int(temp // temp_step)]
# x component ceiling and y component ceiling
- celiing = lut[int(temp // temp_step + 1)]
+ ceiling = lut[int(temp // temp_step + 1)]
# Weight
temp = (temp % temp_step) / temp_step
# Interpolation
- (x, y) = [c1 * (1 - temp) + c2 * temp for c1, c2 in zip(floor, ceilng)]
+ (x, y) = [c1 * (1 - temp) + c2 * temp for c1, c2 in zip(floor, ceiling)]
# Convert to sRGB
return ciexyy_to_srgb(x, y, 1.0)