From 7fd1dca4f595a31f0c1d57f604b5fc5363e1ea6e Mon Sep 17 00:00:00 2001 From: Mahesh Balasubramaniam Date: Mon, 25 Mar 2013 20:18:30 +0000 Subject: [PATCH] corrected a little mistake on line 145 that sets the maximum value of XYZ values to be 1.0 --- lib/damask/colormaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/damask/colormaps.py b/lib/damask/colormaps.py index b9116251a..bf145b357 100644 --- a/lib/damask/colormaps.py +++ b/lib/damask/colormaps.py @@ -142,7 +142,7 @@ class Color(): else: RGB_lin[i] = self.color[i] /12.92 XYZ = numpy.dot(convert,RGB_lin) for i in xrange(3): - XYZ[i] = min(XYZ[i],1.0) + XYZ[i] = max(XYZ[i],0.0) converted = Color('XYZ', XYZ)