From 9a8e57cbc657e486daa5f7585c27de4201eae053 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 12 Jun 2011 19:18:47 -0400 Subject: [PATCH] Fix a type error when gamma linearization == 0 --- cuburn/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuburn/render.py b/cuburn/render.py index 5dc3f1a..ee0c9c1 100644 --- a/cuburn/render.py +++ b/cuburn/render.py @@ -319,7 +319,7 @@ class _AnimRenderer(object): vib = f(vib / n) hipow = f(cen_cp.highlight_power) lin = f(cen_cp.gam_lin_thresh) - lingam = f(math.pow(cen_cp.gam_lin_thresh, gam-1.0)) if lin > 0 else 0 + lingam = f(math.pow(cen_cp.gam_lin_thresh, gam-1.0) if lin > 0 else 0) print gam, vib, lin, lingam, cen_cp.gamma # TODO: get block size from colorclip class? It actually does not