Skip to content

Commit

Permalink
Fix parameter typo
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Dec 4, 2024
1 parent e229776 commit 61e94bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion coloraide/average.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def average(
hue_index = cs.hue_index() # type: ignore[attr-defined]
is_hwb = isinstance(cs, HWBish)
else:
hue_index = 1
hue_index = -1
is_hwb = False
channels = cs.channels
chan_count = len(channels)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_average.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ def test_average_ignore_undefined(self):
results.append(Color.average(colors, space='srgb').to_string(color=True))
self.assertEqual(
results,
['color(srgb 0 0.19608 0.5 / 0.66667)',
'color(srgb 0 0.19608 0.44444 / 0.75)',
'color(srgb 0 0.19608 0.4 / 0.83333)',
'color(srgb 0 0.19608 0.36364 / 0.91667)',
['color(srgb 0 0.29412 0.5 / 0.66667)',
'color(srgb 0 0.26144 0.44444 / 0.75)',
'color(srgb 0 0.23529 0.4 / 0.83333)',
'color(srgb 0 0.2139 0.36364 / 0.91667)',
'color(srgb 0 0.19608 0.33333)']
)

Expand Down

0 comments on commit 61e94bb

Please sign in to comment.