Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 29, 2023
1 parent d664d5f commit 58847cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions colour/volume/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from __future__ import annotations

import numpy as np

from colour.colorimetry import (
MultiSpectralDistributions,
SpectralDistribution,
Expand Down Expand Up @@ -514,9 +515,9 @@ def _is_within_visible_xy(
Examples
--------
>>> import numpy as np
>>> is_within_visible_spectrum(np.array([0.33,0.33]))
>>> is_within_visible_spectrum(np.array([0.33, 0.33]))
array(True, dtype=bool)
>>> a = np.array([[.33,.33], [.1,.1]])
>>> a = np.array([[0.33, 0.33], [0.1, 0.1]])
>>> is_within_visible_spectrum(a)
array([ True, False], dtype=bool)
"""
Expand Down
1 change: 1 addition & 0 deletions colour/volume/tests/test_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from itertools import product

import numpy as np

from colour.colorimetry import (
MSDS_CMFS,
SPECTRAL_SHAPE_DEFAULT,
Expand Down

0 comments on commit 58847cb

Please sign in to comment.