Skip to content

Commit 9db05c0

Browse files
I hate Travis with the fire of a thousand suns
1 parent dfb82fd commit 9db05c0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

adafruit_fancyled/fastled_helpers.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,15 @@
3333
__version__ = "0.0.0-auto.0"
3434
__repo__ = "https://github.com/Adafruit/Adafruit_CircuitPython_FancyLED.git"
3535

36-
import adafruit_fancyled as fancy
3736
from math import floor
37+
import adafruit_fancyled as fancy
3838

39+
# These are helper functions that provide more FastLED-like calls for
40+
# fancyled functions.
3941
# Function names are kept the same as FastLED, which normally upsets pylint.
4042
# Disable name-checking so this passes muster.
4143
# pylint: disable=invalid-name
4244

43-
"""
44-
These are helper functions that provide more FastLED-like calls for
45-
fancyled functions.
46-
"""
47-
4845
GFACTOR = 2.5 # Default gamma-correction factor for function below
4946

5047
def applyGamma_video(n, g_r=GFACTOR, g_g=None, g_b=None, inplace=False):
@@ -74,7 +71,7 @@ def applyGamma_video(n, g_r=GFACTOR, g_g=None, g_b=None, inplace=False):
7471
# If single gamma value is passed, keep that, otherwise convert
7572
# gamma values to tuple for gamma_adjust function.
7673
if g_g is not None and g_b is not None:
77-
g_r = (g_r, g_g, g_b)
74+
g_r = (g_r, g_g, g_b)
7875

7976
return fancy.gamma_adjust(n, g_r, inplace=inplace)
8077

0 commit comments

Comments
 (0)