code stringlengths 66 870k | docstring stringlengths 19 26.7k | func_name stringlengths 1 138 | language stringclasses 1
value | repo stringlengths 7 68 | path stringlengths 5 324 | url stringlengths 46 389 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
def test_domain_range_scale_cctf_decoding_RIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
cctf_decoding_RIMMRGB` definition domain and range scale support.
"""
X_p = 0.291673732475746
X = cctf_decoding_RIMMRGB(X_p)
d_r = (("re... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.cctf_decoding_RIMMRGB` definition domain and range scale support.
| test_domain_range_scale_cctf_decoding_RIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_log_encoding_ERIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
log_encoding_ERIMMRGB` definition.
"""
np.testing.assert_allclose(
log_encoding_ERIMMRGB(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.log_encoding_ERIMMRGB` definition.
| test_log_encoding_ERIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_ERIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
log_encoding_ERIMMRGB` definition n-dimensional arrays support.
"""
X = 0.18
X_p = log_encoding_ERIMMRGB(X)
X = np.tile(X, 6)
X_p = n... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.log_encoding_ERIMMRGB` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_ERIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_ERIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
log_encoding_ERIMMRGB` definition domain and range scale support.
"""
X = 0.18
X_p = log_encoding_ERIMMRGB(X)
d_r = (("reference", 1), (... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.log_encoding_ERIMMRGB` definition domain and range scale support.
| test_domain_range_scale_log_encoding_ERIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_log_decoding_ERIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
log_decoding_ERIMMRGB` definition.
"""
np.testing.assert_allclose(
log_decoding_ERIMMRGB(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.log_decoding_ERIMMRGB` definition.
| test_log_decoding_ERIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_ERIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
log_decoding_ERIMMRGB` definition n-dimensional arrays support.
"""
X_p = 0.410052389492129
X = log_decoding_ERIMMRGB(X_p)
X_p = np.tile(X_p,... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.log_decoding_ERIMMRGB` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_ERIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_ERIMMRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.\
log_decoding_ERIMMRGB` definition domain and range scale support.
"""
X_p = 0.410052389492129
X = log_decoding_ERIMMRGB(X_p)
d_r = (("re... |
Test :func:`colour.models.rgb.transfer_functions.rimm_romm_rgb.log_decoding_ERIMMRGB` definition domain and range scale support.
| test_domain_range_scale_log_decoding_ERIMMRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_rimm_romm_rgb.py | BSD-3-Clause |
def test_oetf_SMPTE240M(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.\
oetf_SMPTE240M` definition.
"""
np.testing.assert_allclose(
oetf_SMPTE240M(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose(
... |
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.oetf_SMPTE240M` definition.
| test_oetf_SMPTE240M | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | BSD-3-Clause |
def test_n_dimensional_oetf_SMPTE240M(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.\
oetf_SMPTE240M` definition n-dimensional arrays support.
"""
L_c = 0.18
V_c = oetf_SMPTE240M(L_c)
L_c = np.tile(L_c, 6)
V_c = np.tile(V_c, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.oetf_SMPTE240M` definition n-dimensional arrays support.
| test_n_dimensional_oetf_SMPTE240M | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | BSD-3-Clause |
def test_domain_range_scale_oetf_SMPTE240M(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.\
oetf_SMPTE240M` definition domain and range scale support.
"""
L_c = 0.18
V_c = oetf_SMPTE240M(L_c)
d_r = (("reference", 1), ("1", 1), ("100", 100... |
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.oetf_SMPTE240M` definition domain and range scale support.
| test_domain_range_scale_oetf_SMPTE240M | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | BSD-3-Clause |
def test_eotf_SMPTE240M(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.\
eotf_SMPTE240M` definition.
"""
np.testing.assert_allclose(
eotf_SMPTE240M(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose(
... |
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.eotf_SMPTE240M` definition.
| test_eotf_SMPTE240M | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | BSD-3-Clause |
def test_n_dimensional_eotf_SMPTE240M(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.\
eotf_SMPTE240M` definition n-dimensional arrays support.
"""
V_r = 0.402285796753870
L_r = eotf_SMPTE240M(V_r)
V_r = np.tile(V_r, 6)
L_r = np.t... |
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.eotf_SMPTE240M` definition n-dimensional arrays support.
| test_n_dimensional_eotf_SMPTE240M | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | BSD-3-Clause |
def test_domain_range_scale_eotf_SMPTE240M(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.\
eotf_SMPTE240M` definition domain and range scale support.
"""
V_r = 0.402285796753870
L_r = eotf_SMPTE240M(V_r)
d_r = (("reference", 1), ("1", 1)... |
Test :func:`colour.models.rgb.transfer_functions.smpte_240m.eotf_SMPTE240M` definition domain and range scale support.
| test_domain_range_scale_eotf_SMPTE240M | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | BSD-3-Clause |
def test_log_encoding_SLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog` definition.
"""
np.testing.assert_allclose(
log_encoding_SLog(0.0),
0.088251291513446,
atol=TOLERANCE_ABSOLUTE_TESTS,
)
... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog` definition.
| test_log_encoding_SLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_SLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_SLog(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
np.t... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_SLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_SLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_SLog(x)
d_r = (("reference", 1), ("1", 1), ("100", 100))
... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_SLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_log_decoding_SLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog` definition.
"""
np.testing.assert_allclose(
log_decoding_SLog(0.088251291513446),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
)
... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog` definition.
| test_log_decoding_SLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_SLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog` definition n-dimensional arrays support.
"""
y = 0.384970815928670
x = log_decoding_SLog(y)
y = np.tile(y, 6)
x = np.tile(x, 6)... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_SLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_SLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog` definition domain and range scale support.
"""
y = 0.384970815928670
x = log_decoding_SLog(y)
d_r = (("reference", 1), ("1", 1), (... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_SLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_log_encoding_SLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog2` definition.
"""
np.testing.assert_allclose(
log_encoding_SLog2(0.0),
0.088251291513446,
atol=TOLERANCE_ABSOLUTE_TESTS,
)... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog2` definition.
| test_log_encoding_SLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_SLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog2` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_SLog2(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
n... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog2` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_SLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_SLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog2` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_SLog2(x)
d_r = (("reference", 1), ("1", 1), ("100", 100... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog2` definition domain and range scale support.
| test_domain_range_scale_log_encoding_SLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_log_decoding_SLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog2` definition.
"""
np.testing.assert_allclose(
log_decoding_SLog2(0.088251291513446),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
)... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog2` definition.
| test_log_decoding_SLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_SLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog2` definition n-dimensional arrays support.
"""
y = 0.339532524633774
x = log_decoding_SLog2(y)
y = np.tile(y, 6)
x = np.tile(x,... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog2` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_SLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_SLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog2` definition domain and range scale support.
"""
y = 0.339532524633774
x = log_decoding_SLog2(y)
d_r = (("reference", 1), ("1", 1)... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog2` definition domain and range scale support.
| test_domain_range_scale_log_decoding_SLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_log_encoding_SLog3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog3` definition.
"""
np.testing.assert_allclose(
log_encoding_SLog3(0.0),
0.092864125122190,
atol=TOLERANCE_ABSOLUTE_TESTS,
)... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog3` definition.
| test_log_encoding_SLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_SLog3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog3` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_SLog3(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
n... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog3` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_SLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_SLog3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_encoding_SLog3` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_SLog3(x)
d_r = (("reference", 1), ("1", 1), ("100", 100... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_encoding_SLog3` definition domain and range scale support.
| test_domain_range_scale_log_encoding_SLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_log_decoding_SLog3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog3` definition.
"""
np.testing.assert_allclose(
log_decoding_SLog3(0.092864125122190),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
)... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog3` definition.
| test_log_decoding_SLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_SLog3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog3` definition n-dimensional arrays support.
"""
y = 0.41055718475073
x = log_decoding_SLog3(y)
y = np.tile(y, 6)
x = np.tile(x, ... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog3` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_SLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_SLog3(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sony.\
log_decoding_SLog3` definition domain and range scale support.
"""
y = 0.41055718475073
x = log_decoding_SLog3(y)
d_r = (("reference", 1), ("1", 1),... |
Test :func:`colour.models.rgb.transfer_functions.sony.log_decoding_SLog3` definition domain and range scale support.
| test_domain_range_scale_log_decoding_SLog3 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_sony.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_sony.py | BSD-3-Clause |
def test_eotf_inverse_sRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sRGB.\
eotf_inverse_sRGB` definition.
"""
np.testing.assert_allclose(
eotf_inverse_sRGB(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose(
... |
Test :func:`colour.models.rgb.transfer_functions.sRGB.eotf_inverse_sRGB` definition.
| test_eotf_inverse_sRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_srgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_srgb.py | BSD-3-Clause |
def test_n_dimensional_eotf_inverse_sRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sRGB.\
eotf_inverse_sRGB` definition n-dimensional arrays support.
"""
L = 0.18
V = eotf_inverse_sRGB(L)
L = np.tile(L, 6)
V = np.tile(V, 6)
np.t... |
Test :func:`colour.models.rgb.transfer_functions.sRGB.eotf_inverse_sRGB` definition n-dimensional arrays support.
| test_n_dimensional_eotf_inverse_sRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_srgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_srgb.py | BSD-3-Clause |
def test_domain_range_scale_eotf_inverse_sRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sRGB.\
eotf_inverse_sRGB` definition domain and range scale support.
"""
L = 0.18
V = eotf_inverse_sRGB(L)
d_r = (("reference", 1), ("1", 1), ("100", 100))
... |
Test :func:`colour.models.rgb.transfer_functions.sRGB.eotf_inverse_sRGB` definition domain and range scale support.
| test_domain_range_scale_eotf_inverse_sRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_srgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_srgb.py | BSD-3-Clause |
def test_eotf_sRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sRGB.\
eotf_sRGB` definition.
"""
np.testing.assert_allclose(eotf_sRGB(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS)
np.testing.assert_allclose(
eotf_sRGB(0.461356129500442), 0.18, at... |
Test :func:`colour.models.rgb.transfer_functions.sRGB.eotf_sRGB` definition.
| test_eotf_sRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_srgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_srgb.py | BSD-3-Clause |
def test_n_dimensional_eotf_sRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sRGB.\
eotf_sRGB` definition n-dimensional arrays support.
"""
V = 0.461356129500442
L = eotf_sRGB(V)
V = np.tile(V, 6)
L = np.tile(L, 6)
np.testing.asse... |
Test :func:`colour.models.rgb.transfer_functions.sRGB.eotf_sRGB` definition n-dimensional arrays support.
| test_n_dimensional_eotf_sRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_srgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_srgb.py | BSD-3-Clause |
def test_domain_range_scale_eotf_sRGB(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.sRGB.\
eotf_sRGB` definition domain and range scale support.
"""
V = 0.461356129500442
L = eotf_sRGB(V)
d_r = (("reference", 1), ("1", 1), ("100", 100))
for... |
Test :func:`colour.models.rgb.transfer_functions.sRGB.eotf_sRGB` definition domain and range scale support.
| test_domain_range_scale_eotf_sRGB | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_srgb.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_srgb.py | BSD-3-Clause |
def test_eotf_inverse_ST2084(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.st_2084.\
eotf_inverse_ST2084` definition.
"""
np.testing.assert_allclose(
eotf_inverse_ST2084(0.0),
0.000000730955903,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.st_2084.eotf_inverse_ST2084` definition.
| test_eotf_inverse_ST2084 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_st_2084.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_st_2084.py | BSD-3-Clause |
def test_n_dimensional_eotf_inverse_ST2084(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.st_2084.\
eotf_inverse_ST2084` definition n-dimensional arrays support.
"""
C = 100
N = eotf_inverse_ST2084(C)
C = np.tile(C, 6)
N = np.tile(N, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.st_2084.eotf_inverse_ST2084` definition n-dimensional arrays support.
| test_n_dimensional_eotf_inverse_ST2084 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_st_2084.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_st_2084.py | BSD-3-Clause |
def test_domain_range_scale_eotf_inverse_ST2084(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.st_2084.\
eotf_inverse_ST2084` definition domain and range scale support.
"""
C = 100
N = eotf_inverse_ST2084(C)
d_r = (("reference", 1), ("1", 1), ("100"... |
Test :func:`colour.models.rgb.transfer_functions.st_2084.eotf_inverse_ST2084` definition domain and range scale support.
| test_domain_range_scale_eotf_inverse_ST2084 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_st_2084.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_st_2084.py | BSD-3-Clause |
def test_eotf_ST2084(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.st_2084.\
eotf_ST2084` definition.
"""
np.testing.assert_allclose(eotf_ST2084(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS)
np.testing.assert_allclose(
eotf_ST2084(0.508078421517399... |
Test :func:`colour.models.rgb.transfer_functions.st_2084.eotf_ST2084` definition.
| test_eotf_ST2084 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_st_2084.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_st_2084.py | BSD-3-Clause |
def test_n_dimensional_eotf_ST2084(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.st_2084.\
eotf_ST2084` definition n-dimensional arrays support.
"""
N = 0.508078421517399
C = eotf_ST2084(N)
N = np.tile(N, 6)
C = np.tile(C, 6)
np.tes... |
Test :func:`colour.models.rgb.transfer_functions.st_2084.eotf_ST2084` definition n-dimensional arrays support.
| test_n_dimensional_eotf_ST2084 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_st_2084.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_st_2084.py | BSD-3-Clause |
def test_domain_range_scale_eotf_ST2084(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.st_2084.\
eotf_ST2084` definition domain and range scale support.
"""
N = 0.508078421517399
C = eotf_ST2084(N)
d_r = (("reference", 1), ("1", 1), ("100", 1))
... |
Test :func:`colour.models.rgb.transfer_functions.st_2084.eotf_ST2084` definition domain and range scale support.
| test_domain_range_scale_eotf_ST2084 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_st_2084.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_st_2084.py | BSD-3-Clause |
def test_log_encoding_ViperLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.viper_log.\
log_encoding_ViperLog` definition.
"""
np.testing.assert_allclose(
log_encoding_ViperLog(0.0), -np.inf, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.... |
Test :func:`colour.models.rgb.transfer_functions.viper_log.log_encoding_ViperLog` definition.
| test_log_encoding_ViperLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_viper_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_viper_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_ViperLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.viper_log.\
log_encoding_ViperLog` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_ViperLog(x)
x = np.tile(x, 6)
y = np.tile(y... |
Test :func:`colour.models.rgb.transfer_functions.viper_log.log_encoding_ViperLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_ViperLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_viper_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_viper_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_ViperLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.viper_log.\
log_encoding_ViperLog` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_ViperLog(x)
d_r = (("reference", 1), ("1", 1... |
Test :func:`colour.models.rgb.transfer_functions.viper_log.log_encoding_ViperLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_ViperLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_viper_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_viper_log.py | BSD-3-Clause |
def test_log_decoding_ViperLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.viper_log.\
log_decoding_ViperLog` definition.
"""
np.testing.assert_allclose(
log_decoding_ViperLog(-np.inf), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.... |
Test :func:`colour.models.rgb.transfer_functions.viper_log.log_decoding_ViperLog` definition.
| test_log_decoding_ViperLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_viper_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_viper_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_ViperLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.viper_log.\
log_decoding_ViperLog` definition n-dimensional arrays support.
"""
y = 0.636008067010413
x = log_decoding_ViperLog(y)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.viper_log.log_decoding_ViperLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_ViperLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_viper_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_viper_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_ViperLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.viper_log.\
log_decoding_ViperLog` definition domain and range scale support.
"""
y = 0.636008067010413
x = log_decoding_ViperLog(y)
d_r = (("reference"... |
Test :func:`colour.models.rgb.transfer_functions.viper_log.log_decoding_ViperLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_ViperLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_viper_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_viper_log.py | BSD-3-Clause |
def test_raise_exception_cctf_encoding(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.aces.\
log_encoding_ACESproxy` definition raised exception.
"""
pytest.warns(
ColourUsageWarning,
cctf_encoding,
0.18,
function="ITU... |
Test :func:`colour.models.rgb.transfer_functions.aces.log_encoding_ACESproxy` definition raised exception.
| test_raise_exception_cctf_encoding | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test__init__.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test__init__.py | BSD-3-Clause |
def test_n_dimensional_JMh_CIECAM02_to_UCS_Luo2006(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.JMh_CIECAM02_to_UCS_Luo2006`
definition n-dimensional support.
"""
JMh = self._JMh
Jpapbp = JMh_CIECAM02_to_UCS_Luo2006(JMh, COEFFICIENTS_UCS_LUO2006["CAM02-LCD"])
... |
Test :func:`colour.models.cam02_ucs.JMh_CIECAM02_to_UCS_Luo2006`
definition n-dimensional support.
| test_n_dimensional_JMh_CIECAM02_to_UCS_Luo2006 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_domain_range_scale_JMh_CIECAM02_to_UCS_Luo2006(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.JMh_CIECAM02_to_UCS_Luo2006`
definition domain and range scale support.
"""
JMh = self._JMh
Jpapbp = JMh_CIECAM02_to_UCS_Luo2006(JMh, COEFFICIENTS_UCS_LUO2006["... |
Test :func:`colour.models.cam02_ucs.JMh_CIECAM02_to_UCS_Luo2006`
definition domain and range scale support.
| test_domain_range_scale_JMh_CIECAM02_to_UCS_Luo2006 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_nan_JMh_CIECAM02_to_UCS_Luo2006(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.JMh_CIECAM02_to_UCS_Luo2006`
definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
JMh_CI... |
Test :func:`colour.models.cam02_ucs.JMh_CIECAM02_to_UCS_Luo2006`
definition nan support.
| test_nan_JMh_CIECAM02_to_UCS_Luo2006 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_n_dimensional_UCS_Luo2006_to_JMh_CIECAM02(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_JMh_CIECAM02`
definition n-dimensional support.
"""
Jpapbp = np.array([54.90433134, -0.08442362, -0.06848314])
JMh = UCS_Luo2006_to_JMh_CIECAM02(Jpapb... |
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_JMh_CIECAM02`
definition n-dimensional support.
| test_n_dimensional_UCS_Luo2006_to_JMh_CIECAM02 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_domain_range_scale_UCS_Luo2006_to_JMh_CIECAM02(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_JMh_CIECAM02`
definition domain and range scale support.
"""
Jpapbp = np.array([54.90433134, -0.08442362, -0.06848314])
JMh = UCS_Luo2006_to_JMh_... |
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_JMh_CIECAM02`
definition domain and range scale support.
| test_domain_range_scale_UCS_Luo2006_to_JMh_CIECAM02 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_nan_UCS_Luo2006_to_JMh_CIECAM02(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_JMh_CIECAM02`
definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
UCS_Lu... |
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_JMh_CIECAM02`
definition nan support.
| test_nan_UCS_Luo2006_to_JMh_CIECAM02 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_UCS_Luo2006(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.XYZ_to_UCS_Luo2006` definition
n-dimensional support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
Jpapbp = XYZ_to_UCS_Luo2006(XYZ, COEFFICIENTS_UCS_LUO2006["CAM0... |
Test :func:`colour.models.cam02_ucs.XYZ_to_UCS_Luo2006` definition
n-dimensional support.
| test_n_dimensional_XYZ_to_UCS_Luo2006 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_UCS_Luo2006(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.XYZ_to_UCS_Luo2006` definition
domain and range scale support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
XYZ_w = CAM_KWARGS_CIECAM02_sRGB["XYZ_w"] / 100
... |
Test :func:`colour.models.cam02_ucs.XYZ_to_UCS_Luo2006` definition
domain and range scale support.
| test_domain_range_scale_XYZ_to_UCS_Luo2006 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_nan_XYZ_to_UCS_Luo2006(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.XYZ_to_UCS_Luo2006` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
XYZ_to_UCS_Luo2006(cases... |
Test :func:`colour.models.cam02_ucs.XYZ_to_UCS_Luo2006` definition nan
support.
| test_nan_XYZ_to_UCS_Luo2006 | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_n_dimensional_UCS_Luo2006_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_XYZ` definition
n-dimensional support.
"""
Jpapbp = np.array([46.61386154, 39.35760236, 15.96730435])
XYZ = UCS_Luo2006_to_XYZ(Jpapbp, COEFFICIENTS_UCS_LUO2006... |
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_XYZ` definition
n-dimensional support.
| test_n_dimensional_UCS_Luo2006_to_XYZ | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_domain_range_scale_UCS_Luo2006_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_XYZ` definition
domain and range scale support.
"""
Jpapbp = np.array([46.61386154, 39.35760236, 15.96730435])
XYZ = UCS_Luo2006_to_XYZ(Jpapbp, COEFFICIEN... |
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_XYZ` definition
domain and range scale support.
| test_domain_range_scale_UCS_Luo2006_to_XYZ | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_nan_UCS_Luo2006_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_XYZ` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
for case in cases:
... |
Test :func:`colour.models.cam02_ucs.UCS_Luo2006_to_XYZ` definition nan
support.
| test_nan_UCS_Luo2006_to_XYZ | python | colour-science/colour | colour/models/tests/test_cam02_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cam02_ucs.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_Lab(self) -> None:
"""
Test :func:`colour.models.cie_lab.XYZ_to_Lab` definition n-dimensional
support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
illuminant = np.array([0.31270, 0.32900])
Lab = XYZ_to_Lab(XYZ, illuminan... |
Test :func:`colour.models.cie_lab.XYZ_to_Lab` definition n-dimensional
support.
| test_n_dimensional_XYZ_to_Lab | python | colour-science/colour | colour/models/tests/test_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_lab.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_Lab(self) -> None:
"""
Test :func:`colour.models.cie_lab.XYZ_to_Lab` definition
domain and range scale support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
illuminant = np.array([0.31270, 0.32900])
Lab = XYZ_to_Lab(... |
Test :func:`colour.models.cie_lab.XYZ_to_Lab` definition
domain and range scale support.
| test_domain_range_scale_XYZ_to_Lab | python | colour-science/colour | colour/models/tests/test_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_lab.py | BSD-3-Clause |
def test_nan_XYZ_to_Lab(self) -> None:
"""Test :func:`colour.models.cie_lab.XYZ_to_Lab` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
XYZ_to_Lab(cases, cases[..., 0:2]) | Test :func:`colour.models.cie_lab.XYZ_to_Lab` definition nan support. | test_nan_XYZ_to_Lab | python | colour-science/colour | colour/models/tests/test_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_lab.py | BSD-3-Clause |
def test_n_dimensional_Lab_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_lab.Lab_to_XYZ` definition n-dimensional
support.
"""
Lab = np.array([41.52787529, 52.63858304, 26.92317922])
illuminant = np.array([0.31270, 0.32900])
XYZ = Lab_to_XYZ(Lab, illumi... |
Test :func:`colour.models.cie_lab.Lab_to_XYZ` definition n-dimensional
support.
| test_n_dimensional_Lab_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_lab.py | BSD-3-Clause |
def test_domain_range_scale_Lab_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_lab.Lab_to_XYZ` definition
domain and range scale support.
"""
Lab = np.array([41.52787529, 52.63858304, 26.92317922])
illuminant = np.array([0.31270, 0.32900])
XYZ = Lab_to_X... |
Test :func:`colour.models.cie_lab.Lab_to_XYZ` definition
domain and range scale support.
| test_domain_range_scale_Lab_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_lab.py | BSD-3-Clause |
def test_nan_Lab_to_XYZ(self) -> None:
"""Test :func:`colour.models.cie_lab.Lab_to_XYZ` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
Lab_to_XYZ(cases, cases[..., 0:2]) | Test :func:`colour.models.cie_lab.Lab_to_XYZ` definition nan support. | test_nan_Lab_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_lab.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_lab.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_Luv(self) -> None:
"""
Test :func:`colour.models.cie_luv.XYZ_to_Luv` definition n-dimensional
support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
illuminant = np.array([0.31270, 0.32900])
Luv = XYZ_to_Luv(XYZ, illuminan... |
Test :func:`colour.models.cie_luv.XYZ_to_Luv` definition n-dimensional
support.
| test_n_dimensional_XYZ_to_Luv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_Luv(self) -> None:
"""
Test :func:`colour.models.cie_luv.XYZ_to_Luv` definition
domain and range scale support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
illuminant = np.array([0.31270, 0.32900])
Luv = XYZ_to_Luv(... |
Test :func:`colour.models.cie_luv.XYZ_to_Luv` definition
domain and range scale support.
| test_domain_range_scale_XYZ_to_Luv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_nan_XYZ_to_Luv(self) -> None:
"""Test :func:`colour.models.cie_luv.XYZ_to_Luv` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
XYZ_to_Luv(cases, cases[..., 0:2]) | Test :func:`colour.models.cie_luv.XYZ_to_Luv` definition nan support. | test_nan_XYZ_to_Luv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_n_dimensional_Luv_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_luv.Luv_to_XYZ` definition n-dimensional
support.
"""
Luv = np.array([41.52787529, 96.83626054, 17.75210149])
illuminant = np.array([0.31270, 0.32900])
XYZ = Luv_to_XYZ(Luv, illumi... |
Test :func:`colour.models.cie_luv.Luv_to_XYZ` definition n-dimensional
support.
| test_n_dimensional_Luv_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_domain_range_scale_Luv_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_luv.Luv_to_XYZ` definition
domain and range scale support.
"""
Luv = np.array([41.52787529, 96.83626054, 17.75210149])
illuminant = np.array([0.31270, 0.32900])
XYZ = Luv_to_X... |
Test :func:`colour.models.cie_luv.Luv_to_XYZ` definition
domain and range scale support.
| test_domain_range_scale_Luv_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_nan_Luv_to_XYZ(self) -> None:
"""Test :func:`colour.models.cie_luv.Luv_to_XYZ` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
Luv_to_XYZ(cases, cases[..., 0:2]) | Test :func:`colour.models.cie_luv.Luv_to_XYZ` definition nan support. | test_nan_Luv_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_n_dimensional_Luv_to_uv(self) -> None:
"""
Test :func:`colour.models.cie_luv.Luv_to_uv` definition n-dimensional
support.
"""
Luv = np.array([41.52787529, 96.83626054, 17.75210149])
illuminant = np.array([0.31270, 0.32900])
uv = Luv_to_uv(Luv, illuminant... |
Test :func:`colour.models.cie_luv.Luv_to_uv` definition n-dimensional
support.
| test_n_dimensional_Luv_to_uv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_domain_range_scale_Luv_to_uv(self) -> None:
"""
Test :func:`colour.models.cie_luv.Luv_to_uv` definition
domain and range scale support.
"""
Luv = np.array([41.52787529, 96.83626054, 17.75210149])
illuminant = np.array([0.31270, 0.32900])
uv = Luv_to_uv(L... |
Test :func:`colour.models.cie_luv.Luv_to_uv` definition
domain and range scale support.
| test_domain_range_scale_Luv_to_uv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_nan_Luv_to_uv(self) -> None:
"""Test :func:`colour.models.cie_luv.Luv_to_uv` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
Luv_to_uv(cases, cases[..., 0:2]) | Test :func:`colour.models.cie_luv.Luv_to_uv` definition nan support. | test_nan_Luv_to_uv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_n_dimensional_uv_to_Luv(self) -> None:
"""
Test :func:`colour.models.cie_luv.uv_to_Luv` definition n-dimensional
support.
"""
uv = np.array([0.37720213, 0.50120264])
illuminant = np.array([0.31270, 0.32900])
Luv = uv_to_Luv(uv, illuminant)
uv = ... |
Test :func:`colour.models.cie_luv.uv_to_Luv` definition n-dimensional
support.
| test_n_dimensional_uv_to_Luv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_domain_range_scale_uv_to_Luv(self) -> None:
"""
Test :func:`colour.models.cie_luv.uv_to_Luv` definition
domain and range scale support.
"""
uv = np.array([0.37720213, 0.50120264])
illuminant = np.array([0.31270, 0.32900])
L = 100
Luv = uv_to_Luv(... |
Test :func:`colour.models.cie_luv.uv_to_Luv` definition
domain and range scale support.
| test_domain_range_scale_uv_to_Luv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_nan_uv_to_Luv(self) -> None:
"""Test :func:`colour.models.cie_luv.uv_to_Luv` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=2))))
uv_to_Luv(cases, cases[..., 0:2]) | Test :func:`colour.models.cie_luv.uv_to_Luv` definition nan support. | test_nan_uv_to_Luv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_n_dimensional_Luv_uv_to_xy(self) -> None:
"""
Test :func:`colour.models.cie_luv.Luv_uv_to_xy` definition
n-dimensional arrays support.
"""
uv = np.array([0.37720213, 0.50120264])
xy = Luv_uv_to_xy(uv)
uv = np.tile(uv, (6, 1))
xy = np.tile(xy, (6... |
Test :func:`colour.models.cie_luv.Luv_uv_to_xy` definition
n-dimensional arrays support.
| test_n_dimensional_Luv_uv_to_xy | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_nan_Luv_uv_to_xy(self) -> None:
"""
Test :func:`colour.models.cie_luv.Luv_uv_to_xy` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=2))))
Luv_uv_to_xy(cases) |
Test :func:`colour.models.cie_luv.Luv_uv_to_xy` definition nan
support.
| test_nan_Luv_uv_to_xy | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_n_dimensional_xy_to_Luv_uv(self) -> None:
"""
Test :func:`colour.models.cie_luv.xy_to_Luv_uv` definition
n-dimensional arrays support.
"""
xy = np.array([0.54369558, 0.32107944])
uv = xy_to_Luv_uv(xy)
xy = np.tile(xy, (6, 1))
uv = np.tile(uv, (6... |
Test :func:`colour.models.cie_luv.xy_to_Luv_uv` definition
n-dimensional arrays support.
| test_n_dimensional_xy_to_Luv_uv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_nan_xy_to_Luv_uv(self) -> None:
"""
Test :func:`colour.models.cie_luv.xy_to_Luv_uv` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=2))))
xy_to_Luv_uv(cases) |
Test :func:`colour.models.cie_luv.xy_to_Luv_uv` definition nan
support.
| test_nan_xy_to_Luv_uv | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_CIE1976UCS(self) -> None:
"""
Test :func:`colour.models.cie_luv.XYZ_to_CIE1976UCS` definition n-dimensional
support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
illuminant = np.array([0.31270, 0.32900])
Luv = XYZ_to_CIE1... |
Test :func:`colour.models.cie_luv.XYZ_to_CIE1976UCS` definition n-dimensional
support.
| test_n_dimensional_XYZ_to_CIE1976UCS | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_CIE1976UCS(self) -> None:
"""
Test :func:`colour.models.cie_luv.XYZ_to_CIE1976UCS` definition
domain and range scale support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
illuminant = np.array([0.31270, 0.32900])
uvL... |
Test :func:`colour.models.cie_luv.XYZ_to_CIE1976UCS` definition
domain and range scale support.
| test_domain_range_scale_XYZ_to_CIE1976UCS | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_nan_XYZ_to_CIE1976UCS(self) -> None:
"""
Test :func:`colour.models.cie_luv.XYZ_to_CIE1976UCS` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
XYZ_to_CIE1976UCS(cases, cas... |
Test :func:`colour.models.cie_luv.XYZ_to_CIE1976UCS` definition nan
support.
| test_nan_XYZ_to_CIE1976UCS | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_n_dimensional_CIE1976UCS_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_luv.CIE1976UCS_to_XYZ` definition n-dimensional
support.
"""
Luv = np.array([0.37720213, 0.50120264, 41.52787529])
illuminant = np.array([0.31270, 0.32900])
XYZ = CIE1976UCS... |
Test :func:`colour.models.cie_luv.CIE1976UCS_to_XYZ` definition n-dimensional
support.
| test_n_dimensional_CIE1976UCS_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_domain_range_scale_CIE1976UCS_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_luv.CIE1976UCS_to_XYZ` definition
domain and range scale support.
"""
uvL = np.array([0.37720213, 0.50120264, 41.52787529])
illuminant = np.array([0.31270, 0.32900])
XY... |
Test :func:`colour.models.cie_luv.CIE1976UCS_to_XYZ` definition
domain and range scale support.
| test_domain_range_scale_CIE1976UCS_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_nan_CIE1976UCS_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_luv.CIE1976UCS_to_XYZ` definition nan
support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
CIE1976UCS_to_XYZ(cases, cas... |
Test :func:`colour.models.cie_luv.CIE1976UCS_to_XYZ` definition nan
support.
| test_nan_CIE1976UCS_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_luv.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_luv.py | BSD-3-Clause |
def test_n_dimensional_XYZ_to_UCS(self) -> None:
"""
Test :func:`colour.models.cie_ucs.XYZ_to_UCS` definition n-dimensional
support.
"""
XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
UCS = XYZ_to_UCS(XYZ)
UCS = np.tile(UCS, (6, 1))
XYZ = np.tile(X... |
Test :func:`colour.models.cie_ucs.XYZ_to_UCS` definition n-dimensional
support.
| test_n_dimensional_XYZ_to_UCS | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_domain_range_scale_XYZ_to_UCS(self) -> None:
"""
Test :func:`colour.models.cie_ucs.XYZ_to_UCS` definition domain and
range scale support.
"""
XYZ = np.array([0.0704953400, 0.1008000000, 0.0955831300])
UCS = XYZ_to_UCS(XYZ)
d_r = (("reference", 1), ("1",... |
Test :func:`colour.models.cie_ucs.XYZ_to_UCS` definition domain and
range scale support.
| test_domain_range_scale_XYZ_to_UCS | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_nan_XYZ_to_UCS(self) -> None:
"""Test :func:`colour.models.cie_ucs.XYZ_to_UCS` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
XYZ_to_UCS(cases) | Test :func:`colour.models.cie_ucs.XYZ_to_UCS` definition nan support. | test_nan_XYZ_to_UCS | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_n_dimensional_UCS_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_ucs.UCS_to_XYZ` definition n-dimensional
support.
"""
UCS = np.array([0.13769339, 0.12197225, 0.10537310])
XYZ = UCS_to_XYZ(UCS)
UCS = np.tile(UCS, (6, 1))
XYZ = np.tile(X... |
Test :func:`colour.models.cie_ucs.UCS_to_XYZ` definition n-dimensional
support.
| test_n_dimensional_UCS_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_domain_range_scale_UCS_to_XYZ(self) -> None:
"""
Test :func:`colour.models.cie_ucs.UCS_to_XYZ` definition domain and
range scale support.
"""
UCS = np.array([0.0469968933, 0.1008000000, 0.1637438950])
XYZ = UCS_to_XYZ(UCS)
d_r = (("reference", 1), ("1",... |
Test :func:`colour.models.cie_ucs.UCS_to_XYZ` definition domain and
range scale support.
| test_domain_range_scale_UCS_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_nan_UCS_to_XYZ(self) -> None:
"""Test :func:`colour.models.cie_ucs.UCS_to_XYZ` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
UCS_to_XYZ(cases) | Test :func:`colour.models.cie_ucs.UCS_to_XYZ` definition nan support. | test_nan_UCS_to_XYZ | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_n_dimensional_UCS_to_uv(self) -> None:
"""
Test :func:`colour.models.cie_ucs.UCS_to_uv` definition n-dimensional
support.
"""
UCS = np.array([0.13769339, 0.12197225, 0.10537310])
uv = UCS_to_uv(UCS)
UCS = np.tile(UCS, (6, 1))
uv = np.tile(uv, (6... |
Test :func:`colour.models.cie_ucs.UCS_to_uv` definition n-dimensional
support.
| test_n_dimensional_UCS_to_uv | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_domain_range_scale_UCS_to_uv(self) -> None:
"""
Test :func:`colour.models.cie_ucs.UCS_to_uv` definition domain and
range scale support.
"""
UCS = np.array([0.0469968933, 0.1008000000, 0.1637438950])
uv = UCS_to_uv(UCS)
d_r = (("reference", 1), ("1", 1),... |
Test :func:`colour.models.cie_ucs.UCS_to_uv` definition domain and
range scale support.
| test_domain_range_scale_UCS_to_uv | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_nan_UCS_to_uv(self) -> None:
"""Test :func:`colour.models.cie_ucs.UCS_to_uv` definition nan support."""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
cases = np.array(list(set(product(cases, repeat=3))))
UCS_to_uv(cases) | Test :func:`colour.models.cie_ucs.UCS_to_uv` definition nan support. | test_nan_UCS_to_uv | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
def test_n_dimensional_uv_to_UCS(self) -> None:
"""
Test :func:`colour.models.cie_ucs.uv_to_UCS` definition n-dimensional
support.
"""
uv = np.array([0.37720213, 0.33413508])
UCS = uv_to_UCS(uv)
uv = np.tile(uv, (6, 1))
UCS = np.tile(UCS, (6, 1))
... |
Test :func:`colour.models.cie_ucs.uv_to_UCS` definition n-dimensional
support.
| test_n_dimensional_uv_to_UCS | python | colour-science/colour | colour/models/tests/test_cie_ucs.py | https://github.com/colour-science/colour/blob/master/colour/models/tests/test_cie_ucs.py | BSD-3-Clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.