Merge pull request #354 from rye/remove-unnecessary-assignment
lib/spark.py: Remove unnecessary assignment to color_codes
This commit is contained in:
commit
2742500337
1 changed files with 3 additions and 16 deletions
19
lib/spark.py
19
lib/spark.py
|
|
@ -302,22 +302,9 @@ def draw_wind(data, color_data):
|
||||||
def _color_code_for_wind_speed(wind_speed):
|
def _color_code_for_wind_speed(wind_speed):
|
||||||
|
|
||||||
color_codes = [
|
color_codes = [
|
||||||
(3, 82), # 82
|
(3, 241), # 82
|
||||||
(6, 118), # 118
|
(6, 242), # 118
|
||||||
(9, 154), # 154
|
(9, 243), # 154
|
||||||
(12, 250), # 190
|
|
||||||
(15, 246), # 226
|
|
||||||
(19, 253), # 220
|
|
||||||
(23, 214),
|
|
||||||
(27, 208),
|
|
||||||
(31, 202),
|
|
||||||
(-1, 196)
|
|
||||||
]
|
|
||||||
|
|
||||||
color_codes = [
|
|
||||||
(3, 241), # 82
|
|
||||||
(6, 242), # 118
|
|
||||||
(9, 243), # 154
|
|
||||||
(12, 246), # 190
|
(12, 246), # 190
|
||||||
(15, 250), # 226
|
(15, 250), # 226
|
||||||
(19, 253), # 220
|
(19, 253), # 220
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue