From b1c524e8d8edc51412d1000259132b7a9a936c72 Mon Sep 17 00:00:00 2001 From: Chen Date: Mon, 28 Aug 2017 15:51:47 -0400 Subject: [PATCH] 3rd try with removing blank lines in colormaps --- lib/damask/colormaps.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/damask/colormaps.py b/lib/damask/colormaps.py index 12a2308d4..b24743884 100644 --- a/lib/damask/colormaps.py +++ b/lib/damask/colormaps.py @@ -86,11 +86,12 @@ class Color(): def _HSV2HSL(self): - """Convert H(ue) S(aturation) V(alue or brightness) to H(ue) S(aturation) L(uminance) + """ + Convert H(ue) S(aturation) V(alue or brightness) to H(ue) S(aturation) L(uminance) + with all values in the range of 0 to 1 http://codeitdown.com/hsl-hsb-hsv-color/ """ - if self.model != 'HSV': return print "HSV: ",self.color converted = Color('HSL',np.array([ @@ -105,11 +106,12 @@ class Color(): def _HSL2HSV(self): - """Convert H(ue) S(aturation) L(uminance) to H(ue) S(aturation) V(alue or brightness) + """ + Convert H(ue) S(aturation) L(uminance) to H(ue) S(aturation) V(alue or brightness) + with all values in the range of 0 to 1 http://codeitdown.com/hsl-hsb-hsv-color/ """ - if self.model != 'HSL': return h = self.color[0]