colour-science / colour

Colour Science for Python
https://www.colour-science.org
BSD 3-Clause "New" or "Revised" License
2.13k stars 263 forks source link

PR: Use `colour.algebra.spow` in *ITU-R BT.1886* colour component transfer functions #1296

Closed KelSolaar closed 1 month ago

KelSolaar commented 1 month ago

Summary

This PR ensures that colour.algebra.spow is used in ITU-R BT.1886 colour component transfer functions to avoid NaN generation when negative values are passed.

References #1295

Preflight

Code Style and Quality

Documentation

coveralls commented 1 month ago

Coverage Status

coverage: 99.835%. remained the same when pulling ed810be07ca90dda819e5cf8796569cdc9a98648 on feature/spow_bt1886 into dc875229aef4a241451e49df47ed9632d9b92ae7 on develop.