Skip to content

Commit fc4175a

Browse files
committed
update
1 parent 7ef205f commit fc4175a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespaces = true
1515

1616
# ----------------------------------------- Project Metadata -------------------------------------
1717
[project]
18-
version = "0.0.0.dev3"
18+
version = "0.0.0.dev4"
1919
name = "PyColorIT"
2020
requires-python = ">=3.10"
2121
dependencies = [

src/pycolorit/color.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,12 @@ def _hxx(
395395
if explicit_alpha and len(hxx) == 3:
396396
hxx = (*hxx, 1)
397397
hxx_array = _np.array(hxx)
398-
if hue_unit != "turn":
399-
hxx_array[0] = _conversion.convert_angle(
400-
value=hxx_array[0],
401-
source_unit="turn",
402-
target_unit=hue_unit,
403-
wrap=hue_wrap,
404-
)
398+
hxx_array[0] = _conversion.convert_angle(
399+
value=hxx_array[0],
400+
source_unit="turn",
401+
target_unit=hue_unit,
402+
wrap=hue_wrap,
403+
)
405404
return hxx_array
406405

407406
def _css_hxx(

0 commit comments

Comments
 (0)