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_log_encoding_CanonLog_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog_v1_2` definition domain and range scale support.
"""
x = 0.18
clog = log_encoding_CanonLog_v1_2(x)
d_r = (("reference... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog_v1_2` definition domain and range scale support.
| test_domain_range_scale_log_encoding_CanonLog_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_decoding_CanonLog_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog_v1_2` definition.
"""
np.testing.assert_allclose(
log_decoding_CanonLog_v1_2(-0.023560121389098),
-0.1,
atol=TOLERANC... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog_v1_2` definition.
| test_log_decoding_CanonLog_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_CanonLog_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog_v1_2` definition n-dimensional arrays support.
"""
clog = 0.343389649295280
x = log_decoding_CanonLog_v1_2(clog)
clog = np... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog_v1_2` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_CanonLog_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_CanonLog_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog_v1_2` definition domain and range scale support.
"""
clog = 0.343389649295280
x = log_decoding_CanonLog_v1_2(clog)
d_... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog_v1_2` definition domain and range scale support.
| test_domain_range_scale_log_decoding_CanonLog_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_encoding_CanonLog2_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog2_v1` definition.
"""
np.testing.assert_allclose(
log_encoding_CanonLog2_v1(-0.1),
-0.155370131996824,
atol=TOLERANCE_A... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog2_v1` definition.
| test_log_encoding_CanonLog2_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_CanonLog2_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog2_v1` definition n-dimensional arrays support.
"""
x = 0.18
clog2 = log_encoding_CanonLog2_v1(x)
x = np.tile(x, 6)
c... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog2_v1` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_CanonLog2_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_CanonLog2_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog2_v1` definition domain and range scale support.
"""
x = 0.18
clog2 = log_encoding_CanonLog2_v1(x)
d_r = (("reference",... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog2_v1` definition domain and range scale support.
| test_domain_range_scale_log_encoding_CanonLog2_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_decoding_CanonLog2_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog2_v1` definition.
"""
np.testing.assert_allclose(
log_decoding_CanonLog2_v1(-0.155370131996824),
-0.1,
atol=TOLERANCE_A... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog2_v1` definition.
| test_log_decoding_CanonLog2_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_CanonLog2_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog2_v1` definition n-dimensional arrays support.
"""
clog2 = 0.398254694983167
x = log_decoding_CanonLog2_v1(clog2)
clog2 = np... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog2_v1` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_CanonLog2_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_CanonLog2_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog2_v1` definition domain and range scale support.
"""
clog = 0.398254694983167
x = log_decoding_CanonLog2_v1(clog)
d_r =... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog2_v1` definition domain and range scale support.
| test_domain_range_scale_log_decoding_CanonLog2_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_encoding_CanonLog2_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog2_v1_2` definition.
"""
np.testing.assert_allclose(
log_encoding_CanonLog2_v1_2(-0.1),
-0.155370130476722,
atol=TOLER... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog2_v1_2` definition.
| test_log_encoding_CanonLog2_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_CanonLog2_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog2_v1_2` definition n-dimensional arrays support.
"""
x = 0.18
clog2 = log_encoding_CanonLog2_v1_2(x)
x = np.tile(x, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog2_v1_2` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_CanonLog2_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_CanonLog2_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog2_v1_2` definition domain and range scale support.
"""
x = 0.18
clog2 = log_encoding_CanonLog2_v1_2(x)
d_r = (("refer... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog2_v1_2` definition domain and range scale support.
| test_domain_range_scale_log_encoding_CanonLog2_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_decoding_CanonLog2_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog2_v1_2` definition.
"""
np.testing.assert_allclose(
log_decoding_CanonLog2_v1_2(-0.155370130476722),
-0.1,
atol=TOLER... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog2_v1_2` definition.
| test_log_decoding_CanonLog2_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_CanonLog2_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog2_v1_2` definition n-dimensional arrays support.
"""
clog2 = 0.398254692561492
x = log_decoding_CanonLog2_v1_2(clog2)
clog... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog2_v1_2` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_CanonLog2_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_CanonLog2_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog2_v1_2` definition domain and range scale support.
"""
clog = 0.398254692561492
x = log_decoding_CanonLog2_v1_2(clog)
... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog2_v1_2` definition domain and range scale support.
| test_domain_range_scale_log_decoding_CanonLog2_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_encoding_CanonLog3_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog3_v1` definition.
"""
np.testing.assert_allclose(
log_encoding_CanonLog3_v1(-0.1),
-0.028494506076432,
atol=TOLERANCE_A... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog3_v1` definition.
| test_log_encoding_CanonLog3_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_CanonLog3_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog3_v1` definition n-dimensional arrays support.
"""
x = 0.18
clog3 = log_encoding_CanonLog3_v1(x)
x = np.tile(x, 6)
c... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog3_v1` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_CanonLog3_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_CanonLog3_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog3_v1` definition domain and range scale support.
"""
x = 0.18
clog3 = log_encoding_CanonLog3_v1(x)
d_r = (("reference",... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog3_v1` definition domain and range scale support.
| test_domain_range_scale_log_encoding_CanonLog3_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_decoding_CanonLog3_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog3_v1` definition.
"""
np.testing.assert_allclose(
log_decoding_CanonLog3_v1(-0.028494506076432),
-0.1,
atol=TOLERANCE_A... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog3_v1` definition.
| test_log_decoding_CanonLog3_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_CanonLog3_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog3_v1` definition n-dimensional arrays support.
"""
clog3 = 0.343389369388687
x = log_decoding_CanonLog3_v1(clog3)
clog3 = np... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog3_v1` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_CanonLog3_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_CanonLog3_v1(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog3_v1` definition domain and range scale support.
"""
clog = 0.343389369388687
x = log_decoding_CanonLog3_v1(clog)
d_r =... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog3_v1` definition domain and range scale support.
| test_domain_range_scale_log_decoding_CanonLog3_v1 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_encoding_CanonLog3_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog3_v1_2` definition.
"""
np.testing.assert_allclose(
log_encoding_CanonLog3_v1_2(-0.1),
-0.028494507620494,
atol=TOLER... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog3_v1_2` definition.
| test_log_encoding_CanonLog3_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_CanonLog3_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog3_v1_2` definition n-dimensional arrays support.
"""
x = 0.18
clog3 = log_encoding_CanonLog3_v1_2(x)
x = np.tile(x, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog3_v1_2` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_CanonLog3_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_CanonLog3_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_encoding_CanonLog3_v1_2` definition domain and range scale support.
"""
x = 0.18
clog3 = log_encoding_CanonLog3_v1_2(x)
d_r = (("refer... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_encoding_CanonLog3_v1_2` definition domain and range scale support.
| test_domain_range_scale_log_encoding_CanonLog3_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_decoding_CanonLog3_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog3_v1_2` definition.
"""
np.testing.assert_allclose(
log_decoding_CanonLog3_v1_2(-0.028494507620494),
-0.1,
atol=TOLER... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog3_v1_2` definition.
| test_log_decoding_CanonLog3_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_CanonLog3_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog3_v1_2` definition n-dimensional arrays support.
"""
clog3 = 0.343389370373936
x = log_decoding_CanonLog3_v1_2(clog3)
clog... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog3_v1_2` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_CanonLog3_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_CanonLog3_v1_2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.canon.\
log_decoding_CanonLog3_v1_2` definition domain and range scale support.
"""
clog = 0.343389370373936
x = log_decoding_CanonLog3_v1_2(clog)
... |
Test :func:`colour.models.rgb.transfer_functions.canon.log_decoding_CanonLog3_v1_2` definition domain and range scale support.
| test_domain_range_scale_log_decoding_CanonLog3_v1_2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_canon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_canon.py | BSD-3-Clause |
def test_log_encoding_Cineon(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.cineon.\
log_encoding_Cineon` definition.
"""
np.testing.assert_allclose(
log_encoding_Cineon(0.0),
0.092864125122190,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.cineon.log_encoding_Cineon` definition.
| test_log_encoding_Cineon | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_cineon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_cineon.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_Cineon(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.cineon.\
log_encoding_Cineon` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_Cineon(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.cineon.log_encoding_Cineon` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_Cineon | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_cineon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_cineon.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_Cineon(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.cineon.\
log_encoding_Cineon` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_Cineon(x)
d_r = (("reference", 1), ("1", 1), ("100"... |
Test :func:`colour.models.rgb.transfer_functions.cineon.log_encoding_Cineon` definition domain and range scale support.
| test_domain_range_scale_log_encoding_Cineon | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_cineon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_cineon.py | BSD-3-Clause |
def test_log_decoding_Cineon(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.cineon.\
log_decoding_Cineon` definition.
"""
np.testing.assert_allclose(
log_decoding_Cineon(0.092864125122190),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.cineon.log_decoding_Cineon` definition.
| test_log_decoding_Cineon | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_cineon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_cineon.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_Cineon(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.cineon.\
log_decoding_Cineon` definition n-dimensional arrays support.
"""
y = 0.457319613085418
x = log_decoding_Cineon(y)
y = np.tile(y, 6)
x = np.ti... |
Test :func:`colour.models.rgb.transfer_functions.cineon.log_decoding_Cineon` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_Cineon | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_cineon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_cineon.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_Cineon(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.cineon.\
log_decoding_Cineon` definition domain and range scale support.
"""
y = 0.457319613085418
x = log_decoding_Cineon(y)
d_r = (("reference", 1), ("1... |
Test :func:`colour.models.rgb.transfer_functions.cineon.log_decoding_Cineon` definition domain and range scale support.
| test_domain_range_scale_log_decoding_Cineon | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_cineon.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_cineon.py | BSD-3-Clause |
def test_CV_range(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.common.CV_range`
definition.
"""
np.testing.assert_array_equal(CV_range(8, True, True), np.array([16, 235]))
np.testing.assert_array_equal(CV_range(8, False, True), np.array([0, 255]))... |
Test :func:`colour.models.rgb.transfer_functions.common.CV_range`
definition.
| test_CV_range | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_common.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_common.py | BSD-3-Clause |
def test_legal_to_full(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.common.legal_to_full`
definition.
"""
np.testing.assert_allclose(legal_to_full(64 / 1023), 0.0)
np.testing.assert_allclose(legal_to_full(940 / 1023), 1.0)
np.testing.asse... |
Test :func:`colour.models.rgb.transfer_functions.common.legal_to_full`
definition.
| test_legal_to_full | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_common.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_common.py | BSD-3-Clause |
def test_n_dimensional_legal_to_full(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.common.legal_to_full`
definition n-dimensional arrays support.
"""
CV_l = 0.918866080156403
CV_f = legal_to_full(CV_l, 10)
CV_l = np.tile(CV_l, 6)
CV... |
Test :func:`colour.models.rgb.transfer_functions.common.legal_to_full`
definition n-dimensional arrays support.
| test_n_dimensional_legal_to_full | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_common.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_common.py | BSD-3-Clause |
def test_full_to_legal(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.common.full_to_legal`
definition.
"""
np.testing.assert_allclose(full_to_legal(0.0), 0.062561094819159)
np.testing.assert_allclose(full_to_legal(1.0), 0.918866080156403)
... |
Test :func:`colour.models.rgb.transfer_functions.common.full_to_legal`
definition.
| test_full_to_legal | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_common.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_common.py | BSD-3-Clause |
def test_n_dimensional_full_to_legal(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.common.full_to_legal`
definition n-dimensional arrays support.
"""
CF_f = 1.0
CV_l = full_to_legal(CF_f, 10)
CF_f = np.tile(CF_f, 6)
CV_l = np.tile(C... |
Test :func:`colour.models.rgb.transfer_functions.common.full_to_legal`
definition n-dimensional arrays support.
| test_n_dimensional_full_to_legal | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_common.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_common.py | BSD-3-Clause |
def test_oetf_DaVinciIntermediate(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
davinci_intermediate.oetf_DaVinciIntermediate` definition.
"""
np.testing.assert_allclose(
oetf_DaVinciIntermediate(-0.01),
-0.104442685500000,
ato... |
Test :func:`colour.models.rgb.transfer_functions.davinci_intermediate.oetf_DaVinciIntermediate` definition.
| test_oetf_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | BSD-3-Clause |
def test_n_dimensional_oetf_DaVinciIntermediate(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
davinci_intermediate.oetf_DaVinciIntermediate` definition n-dimensional arrays
support.
"""
L = 0.18
V = oetf_DaVinciIntermediate(L)
L = np.tile... |
Test :func:`colour.models.rgb.transfer_functions.davinci_intermediate.oetf_DaVinciIntermediate` definition n-dimensional arrays
support.
| test_n_dimensional_oetf_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | BSD-3-Clause |
def test_domain_range_scale_oetf_DaVinciIntermediate(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
davinci_intermediate.oetf_DaVinciIntermediate` definition domain and range
scale support.
"""
L = 0.18
V = oetf_DaVinciIntermediate(L)
d_r ... |
Test :func:`colour.models.rgb.transfer_functions.davinci_intermediate.oetf_DaVinciIntermediate` definition domain and range
scale support.
| test_domain_range_scale_oetf_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | BSD-3-Clause |
def test_oetf_inverse_DaVinciIntermediate(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
davinci_intermediate.oetf_inverse_DaVinciIntermediate` definition.
"""
np.testing.assert_allclose(
oetf_inverse_DaVinciIntermediate(-0.104442685500000),
... |
Test :func:`colour.models.rgb.transfer_functions.davinci_intermediate.oetf_inverse_DaVinciIntermediate` definition.
| test_oetf_inverse_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | BSD-3-Clause |
def test_n_dimensional_oetf_inverse_DaVinciIntermediate(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
davinci_intermediate.oetf_inverse_DaVinciIntermediate` definition n-dimensional
arrays support.
"""
V = 0.336043272384855
L = oetf_inverse_DaVinc... |
Test :func:`colour.models.rgb.transfer_functions.davinci_intermediate.oetf_inverse_DaVinciIntermediate` definition n-dimensional
arrays support.
| test_n_dimensional_oetf_inverse_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | BSD-3-Clause |
def test_domain_range_scale_oetf_inverse_DaVinciIntermediate(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
davinci_intermediate.oetf_inverse_DaVinciIntermediate` definition domain and
range scale support.
"""
V = 0.336043272384855
L = oetf_inverse... |
Test :func:`colour.models.rgb.transfer_functions.davinci_intermediate.oetf_inverse_DaVinciIntermediate` definition domain and
range scale support.
| test_domain_range_scale_oetf_inverse_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | BSD-3-Clause |
def test_nan_oetf_inverse_DaVinciIntermediate(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
davinci_intermediate.oetf_inverse_DaVinciIntermediate` definition nan support.
"""
oetf_inverse_DaVinciIntermediate(
np.array([-1.0, 0.0, 1.0, -np.inf, np.inf,... |
Test :func:`colour.models.rgb.transfer_functions.davinci_intermediate.oetf_inverse_DaVinciIntermediate` definition nan support.
| test_nan_oetf_inverse_DaVinciIntermediate | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_davinci_intermediate.py | BSD-3-Clause |
def test_eotf_inverse_DCDM(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
dcdm.eotf_inverse_DCDM` definition.
"""
np.testing.assert_allclose(
eotf_inverse_DCDM(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose(
... |
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_inverse_DCDM` definition.
| test_eotf_inverse_DCDM | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dcdm.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dcdm.py | BSD-3-Clause |
def test_n_dimensional_eotf_inverse_DCDM(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dcdm.\
eotf_inverse_DCDM` definition n-dimensional arrays support.
"""
XYZ = 0.18
XYZ_p = eotf_inverse_DCDM(XYZ)
XYZ = np.tile(XYZ, 6)
XYZ_p = np.tile(XY... |
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_inverse_DCDM` definition n-dimensional arrays support.
| test_n_dimensional_eotf_inverse_DCDM | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dcdm.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dcdm.py | BSD-3-Clause |
def test_domain_range_scale_eotf_inverse_DCDM(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.\
dcdm.eotf_inverse_DCDM` definition domain and range scale support.
"""
XYZ = 0.18
XYZ_p = eotf_inverse_DCDM(XYZ)
d_r = (("reference", 1), ("1", 1), ("100"... |
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_inverse_DCDM` definition domain and range scale support.
| test_domain_range_scale_eotf_inverse_DCDM | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dcdm.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dcdm.py | BSD-3-Clause |
def test_eotf_DCDM(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_DCDM`
definition.
"""
np.testing.assert_allclose(eotf_DCDM(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS)
np.testing.assert_allclose(
eotf_DCDM(0.11281861), 0.18, ato... |
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_DCDM`
definition.
| test_eotf_DCDM | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dcdm.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dcdm.py | BSD-3-Clause |
def test_n_dimensional_eotf_DCDM(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_DCDM`
definition n-dimensional arrays support.
"""
XYZ_p = 0.11281861
XYZ = eotf_DCDM(XYZ_p)
XYZ_p = np.tile(XYZ_p, 6)
XYZ = np.tile(XYZ, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_DCDM`
definition n-dimensional arrays support.
| test_n_dimensional_eotf_DCDM | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dcdm.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dcdm.py | BSD-3-Clause |
def test_domain_range_scale_eotf_DCDM(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_DCDM`
definition domain and range scale support.
"""
XYZ_p = 0.11281861
XYZ = eotf_DCDM(XYZ_p)
d_r = (("reference", 1), ("1", 1), ("100", 1))
... |
Test :func:`colour.models.rgb.transfer_functions.dcdm.eotf_DCDM`
definition domain and range scale support.
| test_domain_range_scale_eotf_DCDM | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dcdm.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dcdm.py | BSD-3-Clause |
def test_eotf_inverse_DICOMGSDF(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.\
eotf_inverse_DICOMGSDF` definition.
"""
np.testing.assert_allclose(
eotf_inverse_DICOMGSDF(0.05),
0.001007281350787,
atol=TOLERANCE_ABSOLU... |
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.eotf_inverse_DICOMGSDF` definition.
| test_eotf_inverse_DICOMGSDF | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | BSD-3-Clause |
def test_n_dimensional_eotf_inverse_DICOMGSDF(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.\
eotf_inverse_DICOMGSDF` definition n-dimensional arrays support.
"""
L = 130.0662
J = eotf_inverse_DICOMGSDF(L)
L = np.tile(L, 6)
J = n... |
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.eotf_inverse_DICOMGSDF` definition n-dimensional arrays support.
| test_n_dimensional_eotf_inverse_DICOMGSDF | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | BSD-3-Clause |
def test_domain_range_scale_eotf_inverse_DICOMGSDF(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.\
eotf_inverse_DICOMGSDF` definition domain and range scale support.
"""
L = 130.0662
J = eotf_inverse_DICOMGSDF(L)
d_r = (("reference", 1),... |
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.eotf_inverse_DICOMGSDF` definition domain and range scale support.
| test_domain_range_scale_eotf_inverse_DICOMGSDF | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | BSD-3-Clause |
def test_eotf_DICOMGSDF(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.\
eotf_DICOMGSDF` definition.
"""
np.testing.assert_allclose(
eotf_DICOMGSDF(0.001007281350787),
0.050143440671692,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.eotf_DICOMGSDF` definition.
| test_eotf_DICOMGSDF | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | BSD-3-Clause |
def test_n_dimensional_eotf_DICOMGSDF(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.\
eotf_DICOMGSDF` definition n-dimensional arrays support.
"""
J = 0.500486263438448
L = eotf_DICOMGSDF(J)
J = np.tile(J, 6)
L = np.tile(L, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.eotf_DICOMGSDF` definition n-dimensional arrays support.
| test_n_dimensional_eotf_DICOMGSDF | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | BSD-3-Clause |
def test_domain_range_scale_eotf_DICOMGSDF(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.\
eotf_DICOMGSDF` definition domain and range scale support.
"""
J = 0.500486263438448
L = eotf_DICOMGSDF(J)
d_r = (("reference", 1), ("1", 1), ("10... |
Test :func:`colour.models.rgb.transfer_functions.dicom_gsdf.eotf_DICOMGSDF` definition domain and range scale support.
| test_domain_range_scale_eotf_DICOMGSDF | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dicom_gsdf.py | BSD-3-Clause |
def test_log_encoding_DJIDLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.\
log_encoding_DJIDLog` definition.
"""
np.testing.assert_allclose(
log_encoding_DJIDLog(0.0), 0.0929, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.asse... |
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.log_encoding_DJIDLog` definition.
| test_log_encoding_DJIDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.\
log_encoding_DJIDLog` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_DJIDLog(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.log_encoding_DJIDLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.\
log_encoding_DJIDLog` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_DJIDLog(x)
d_r = (("reference", 1), ("1", 1), ("1... |
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.log_encoding_DJIDLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | BSD-3-Clause |
def test_log_decoding_DJIDLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.\
log_decoding_DJIDLog` definition.
"""
np.testing.assert_allclose(
log_decoding_DJIDLog(0.0929), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.asse... |
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.log_decoding_DJIDLog` definition.
| test_log_decoding_DJIDLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.\
log_decoding_DJIDLog` definition n-dimensional arrays support.
"""
y = 0.398764556189331
x = log_decoding_DJIDLog(y)
y = np.tile(y, 6)
x = np... |
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.log_decoding_DJIDLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_DLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.\
log_decoding_DJIDLog` definition domain and range scale support.
"""
y = 0.398764556189331
x = log_decoding_DJIDLog(y)
d_r = (("reference", 1), ... |
Test :func:`colour.models.rgb.transfer_functions.dji_d_log.log_decoding_DJIDLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_DLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_dji_d_log.py | BSD-3-Clause |
def test_exponent_function_basic(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.exponent.\
exponent_function_basic` definition.
"""
a = 0.18
a_p = 0.0229932049927
np.testing.assert_allclose(
exponent_function_basic(a, 2.2), a_p, atol=TOLE... |
Test :func:`colour.models.rgb.transfer_functions.exponent.exponent_function_basic` definition.
| test_exponent_function_basic | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_exponent.py | BSD-3-Clause |
def test_n_dimensional_exponent_function_basic(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.exponent.\
exponent_function_basic` definition n-dimensional arrays support.
"""
a = 0.18
a_p = 0.0229932049927
a = np.tile(a, 6)
a_p = np.tile(a_p... |
Test :func:`colour.models.rgb.transfer_functions.exponent.exponent_function_basic` definition n-dimensional arrays support.
| test_n_dimensional_exponent_function_basic | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_exponent.py | BSD-3-Clause |
def test_nan_exponent_function_basic(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.exponent.\
exponent_function_basic` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
for case in cases:
exponent_function_basic(case,... |
Test :func:`colour.models.rgb.transfer_functions.exponent.exponent_function_basic` definition nan support.
| test_nan_exponent_function_basic | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_exponent.py | BSD-3-Clause |
def test_exponent_function_monitor_curve(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.exponent.\
exponent_function_monitor_curve` definition.
"""
a = 0.18
a_p = 0.0232240466001
np.testing.assert_allclose(
exponent_function_monitor_curve... |
Test :func:`colour.models.rgb.transfer_functions.exponent.exponent_function_monitor_curve` definition.
| test_exponent_function_monitor_curve | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_exponent.py | BSD-3-Clause |
def test_n_dimensional_exponent_function_monitor_curve(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.exponent.\
exponent_function_monitor_curve` definition n-dimensional arrays support.
"""
a = 0.18
a_p = 0.0232240466001
a = np.tile(a, 6)
a... |
Test :func:`colour.models.rgb.transfer_functions.exponent.exponent_function_monitor_curve` definition n-dimensional arrays support.
| test_n_dimensional_exponent_function_monitor_curve | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_exponent.py | BSD-3-Clause |
def test_nan_exponent_function_monitor_curve(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.exponent.\
exponent_function_monitor_curve` definition nan support.
"""
cases = [-1.0, 0.0, 1.0, -np.inf, np.inf, np.nan]
for case in cases:
exponent_func... |
Test :func:`colour.models.rgb.transfer_functions.exponent.exponent_function_monitor_curve` definition nan support.
| test_nan_exponent_function_monitor_curve | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_exponent.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_exponent.py | BSD-3-Clause |
def test_log_encoding_FilmicPro6(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.\
log_encoding_FilmicPro6` definition.
"""
np.testing.assert_allclose(
log_encoding_FilmicPro6(0.0),
-np.inf,
atol=TOLERANCE_ABSOLUTE_TESTS... |
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.log_encoding_FilmicPro6` definition.
| test_log_encoding_FilmicPro6 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_FilmicPro6(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.\
log_encoding_FilmicPro6` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_FilmicPro6(x)
x = np.tile(x, 6)
y = np... |
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.log_encoding_FilmicPro6` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_FilmicPro6 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_FilmicPro6(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.\
log_encoding_FilmicPro6` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_FilmicPro6(x)
d_r = (("reference", 1), ... |
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.log_encoding_FilmicPro6` definition domain and range scale support.
| test_domain_range_scale_log_encoding_FilmicPro6 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | BSD-3-Clause |
def test_log_decoding_FilmicPro6(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.\
log_decoding_FilmicPro6` definition.
"""
np.testing.assert_array_equal(log_decoding_FilmicPro6(-np.inf), 0.0)
np.testing.assert_allclose(
log_decoding_F... |
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.log_decoding_FilmicPro6` definition.
| test_log_decoding_FilmicPro6 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_FilmicPro6(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.\
log_decoding_FilmicPro6` definition n-dimensional arrays support.
"""
y = 0.606634519924703
x = log_decoding_FilmicPro6(y)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.log_decoding_FilmicPro6` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_FilmicPro6 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_FilmicPro6(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.\
log_decoding_FilmicPro6` definition domain and range scale support.
"""
y = 0.606634519924703
x = log_decoding_FilmicPro6(y)
d_r = (("ref... |
Test :func:`colour.models.rgb.transfer_functions.filmic_pro.log_decoding_FilmicPro6` definition domain and range scale support.
| test_domain_range_scale_log_decoding_FilmicPro6 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmic_pro.py | BSD-3-Clause |
def test_log_encoding_FilmLightTLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.\
log_encoding_FilmLightTLog` definition.
"""
np.testing.assert_allclose(
log_encoding_FilmLightTLog(0.0),
0.075,
atol=TOLERANCE_AB... |
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.log_encoding_FilmLightTLog` definition.
| test_log_encoding_FilmLightTLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_TLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.\
log_encoding_FilmLightTLog` definition n-dimensional arrays support.
"""
x = 0.18
t = log_encoding_FilmLightTLog(x)
x = np.tile(x, 6)
t... |
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.log_encoding_FilmLightTLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_TLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_TLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.\
log_encoding_FilmLightTLog` definition domain and range scale support.
"""
x = 0.18
t = log_encoding_FilmLightTLog(x)
d_r = (("reference",... |
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.log_encoding_FilmLightTLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_TLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | BSD-3-Clause |
def test_log_decoding_FilmLightTLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.\
log_decoding_FilmLightTLog` definition.
"""
np.testing.assert_allclose(
log_decoding_FilmLightTLog(0.075),
0.0,
atol=TOLERANCE_AB... |
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.log_decoding_FilmLightTLog` definition.
| test_log_decoding_FilmLightTLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_TLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.\
log_decoding_FilmLightTLog` definition n-dimensional arrays support.
"""
t = 0.396567801298332
x = log_decoding_FilmLightTLog(t)
t = np.tile(t,... |
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.log_decoding_FilmLightTLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_TLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_TLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.\
log_decoding_FilmLightTLog` definition domain and range scale support.
"""
t = 0.396567801298332
x = log_decoding_FilmLightTLog(t)
d_r = (... |
Test :func:`colour.models.rgb.transfer_functions.filmlight_t_log.log_decoding_FilmLightTLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_TLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_filmlight_t_log.py | BSD-3-Clause |
def test_log_encoding_FLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.\
log_encoding_FLog` definition.
"""
np.testing.assert_allclose(
log_encoding_FLog(0.0),
0.092864000000000,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.log_encoding_FLog` definition.
| test_log_encoding_FLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_FLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.\
log_encoding_FLog` definition n-dimensional arrays support.
"""
L_in = 0.18
V_out = log_encoding_FLog(L_in)
L_in = np.tile(L_in, 6)
V_ou... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.log_encoding_FLog` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_FLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_FLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.\
log_encoding_FLog` definition domain and range scale support.
"""
L_in = 0.18
V_out = log_encoding_FLog(L_in)
d_r = (("reference", 1), ("1"... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.log_encoding_FLog` definition domain and range scale support.
| test_domain_range_scale_log_encoding_FLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_log_decoding_FLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.\
log_decoding_FLog` definition.
"""
np.testing.assert_allclose(
log_decoding_FLog(0.092864000000000),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.log_decoding_FLog` definition.
| test_log_decoding_FLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_FLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.\
log_decoding_FLog` definition n-dimensional arrays support.
"""
V_out = 0.459318458661621
L_in = log_decoding_FLog(V_out)
V_out = np.tile(V_out,... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.log_decoding_FLog` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_FLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_FLog(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.\
log_decoding_FLog` definition domain and range scale support.
"""
V_out = 0.459318458661621
L_in = log_decoding_FLog(V_out)
d_r = (("refere... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_f_log.log_decoding_FLog` definition domain and range scale support.
| test_domain_range_scale_log_decoding_FLog | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_log_encoding_FLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.\
log_encoding_FLog2` definition.
"""
np.testing.assert_allclose(
log_encoding_FLog2(0.0),
0.092864000000000,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.log_encoding_FLog2` definition.
| test_log_encoding_FLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_FLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.\
log_encoding_FLog2` definition n-dimensional arrays support.
"""
L_in = 0.18
V_out = log_encoding_FLog2(L_in)
L_in = np.tile(L_in, 6)
V_... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.log_encoding_FLog2` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_FLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_FLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.\
log_encoding_FLog2` definition domain and range scale support.
"""
L_in = 0.18
V_out = log_encoding_FLog2(L_in)
d_r = (("reference", 1), ("... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.log_encoding_FLog2` definition domain and range scale support.
| test_domain_range_scale_log_encoding_FLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_log_decoding_FLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.\
log_decoding_FLog2` definition.
"""
np.testing.assert_allclose(
log_decoding_FLog2(0.092864000000000),
0.0,
atol=TOLERANCE_ABSOLUTE_TESTS,
... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.log_decoding_FLog2` definition.
| test_log_decoding_FLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_n_dimensional_log_decoding_FLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.\
log_decoding_FLog2` definition n-dimensional arrays support.
"""
V_out = 0.39100724189123
L_in = log_decoding_FLog2(V_out)
V_out = np.tile(V_out... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.log_decoding_FLog2` definition n-dimensional arrays support.
| test_n_dimensional_log_decoding_FLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_domain_range_scale_log_decoding_FLog2(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.\
log_decoding_FLog2` definition domain and range scale support.
"""
V_out = 0.39100724189123
L_in = log_decoding_FLog2(V_out)
d_r = (("refer... |
Test :func:`colour.models.rgb.transfer_functions.fujifilm_flog.log_decoding_FLog2` definition domain and range scale support.
| test_domain_range_scale_log_decoding_FLog2 | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_fujifilm_f_log.py | BSD-3-Clause |
def test_gamma_function(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.gamma.\
gamma_function` definition.
"""
np.testing.assert_allclose(
gamma_function(0.0, 2.2), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allclose(
... |
Test :func:`colour.models.rgb.transfer_functions.gamma.gamma_function` definition.
| test_gamma_function | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_gamma.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_gamma.py | BSD-3-Clause |
def test_n_dimensional_gamma_function(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.gamma.\
gamma_function` definition n-dimensional arrays support.
"""
a = 0.18
a_p = gamma_function(a, 2.2)
a = np.tile(a, 6)
a_p = np.tile(a_p, 6)
n... |
Test :func:`colour.models.rgb.transfer_functions.gamma.gamma_function` definition n-dimensional arrays support.
| test_n_dimensional_gamma_function | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_gamma.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_gamma.py | BSD-3-Clause |
def test_log_encoding_Protune(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.gopro.\
log_encoding_Protune` definition.
"""
np.testing.assert_allclose(
log_encoding_Protune(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allc... |
Test :func:`colour.models.rgb.transfer_functions.gopro.log_encoding_Protune` definition.
| test_log_encoding_Protune | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_gopro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_gopro.py | BSD-3-Clause |
def test_n_dimensional_log_encoding_Protune(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.gopro.\
log_encoding_Protune` definition n-dimensional arrays support.
"""
x = 0.18
y = log_encoding_Protune(x)
x = np.tile(x, 6)
y = np.tile(y, 6)
... |
Test :func:`colour.models.rgb.transfer_functions.gopro.log_encoding_Protune` definition n-dimensional arrays support.
| test_n_dimensional_log_encoding_Protune | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_gopro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_gopro.py | BSD-3-Clause |
def test_domain_range_scale_log_encoding_Protune(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.gopro.\
log_encoding_Protune` definition domain and range scale support.
"""
x = 0.18
y = log_encoding_Protune(x)
d_r = (("reference", 1), ("1", 1), ("10... |
Test :func:`colour.models.rgb.transfer_functions.gopro.log_encoding_Protune` definition domain and range scale support.
| test_domain_range_scale_log_encoding_Protune | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_gopro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_gopro.py | BSD-3-Clause |
def test_log_decoding_Protune(self) -> None:
"""
Test :func:`colour.models.rgb.transfer_functions.gopro.\
log_decoding_Protune` definition.
"""
np.testing.assert_allclose(
log_decoding_Protune(0.0), 0.0, atol=TOLERANCE_ABSOLUTE_TESTS
)
np.testing.assert_allc... |
Test :func:`colour.models.rgb.transfer_functions.gopro.log_decoding_Protune` definition.
| test_log_decoding_Protune | python | colour-science/colour | colour/models/rgb/transfer_functions/tests/test_gopro.py | https://github.com/colour-science/colour/blob/master/colour/models/rgb/transfer_functions/tests/test_gopro.py | BSD-3-Clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.