• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

colour-science / colour
98%
develop: 99%

Build:
Build:
LAST BUILD BRANCH: feature/array-api-support
DEFAULT BRANCH: develop
Repo Added 02 Sep 2014 08:53AM UTC
Files 624
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feature/array-api-support
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • develop
  • docs/pre-commit
  • feature/CLF
  • feature/CLF_execution
  • feature/PMC
  • feature/ampas_io
  • feature/apple_log_profile
  • feature/array-api-support
  • feature/barten_pupil_diameter
  • feature/benchmarks
  • feature/callback
  • feature/callback_alternative
  • feature/canon_log_v1.2
  • feature/checks
  • feature/cie2024_integration
  • feature/cie2024_varnish
  • feature/cie_sky
  • feature/cie_xyy
  • feature/cif_recommendation
  • feature/colorchecker_sg
  • feature/continuous_interpolation
  • feature/continuous_ssi
  • feature/copyless
  • feature/correction
  • feature/coverage
  • feature/delegate
  • feature/delta_e_din99_methods_staging
  • feature/delta_e_return_additional_data_staging
  • feature/devcontainer
  • feature/diagrams_models
  • feature/dimensionality_reduction
  • feature/docstrings
  • feature/domain-range-scale-annotations
  • feature/fichet2021
  • feature/flattened_hellwig2022
  • feature/flattened_hellwig2022_linear_extension
  • feature/flog2c
  • feature/fujifilm_flog2
  • feature/gamma_class
  • feature/gamma_partials
  • feature/gaussian-upsampling
  • feature/graph
  • feature/hyab_staging
  • feature/hych
  • feature/hych_staging
  • feature/idt
  • feature/in-place
  • feature/isort
  • feature/iterable_signal
  • feature/jenv
  • feature/line_locus
  • feature/literals
  • feature/lut_support_improvements
  • feature/lut_write
  • feature/metadata
  • feature/metamerism-spectral-staging
  • feature/mired
  • feature/munsell-onnx
  • feature/numpy-2
  • feature/numpy-printoptions
  • feature/numpy_1_24_0
  • feature/openimageio
  • feature/openimageio-ci
  • feature/optional-scipy
  • feature/osa-ucs
  • feature/osa_ucs
  • feature/plasa_ansi_e154
  • feature/polar_conversions
  • feature/prek
  • feature/pydot
  • feature/pyproject_upgrade
  • feature/pyright
  • feature/pytest
  • feature/python-3.12
  • feature/python-3.13
  • feature/python-3.14
  • feature/qhull-regression
  • feature/rayleigh
  • feature/rayleigh_jeans_blackbody
  • feature/reshape_sd_copy
  • feature/rgb_xyz
  • feature/robertson1968
  • feature/ruff
  • feature/scalar-type-aliases-staging
  • feature/sd_gaussian
  • feature/sd_reference_illum
  • feature/sdiv
  • feature/shape_from_array
  • feature/small_labels
  • feature/spow_bt1886
  • feature/ssi
  • feature/sucs-scam-staging
  • feature/thin_film
  • feature/tjdcs/v0.4.4
  • feature/unit_tests
  • feature/unittests
  • feature/uv
  • feature/v0.4.2
  • feature/v0.4.3
  • feature/v0.4.4
  • feature/v0.4.5
  • feature/v0.4.6
  • feature/v0.4.7
  • feature/v0.4.8
  • feature/vaab_colour
  • feature/vectorised-upsampling
  • feature/vk20
  • feature/web_colours
  • feature/wgpu
  • feature/wilkie2021
  • feature/xdist-shenanigans
  • feature/xiaomi_log_profile
  • feature/xxhash
  • feature/yrg
  • feature/yuv
  • feature_cct_improvements
  • hych_staging
  • maintenence/ctlrender
  • maintenence/poetry_packages
  • master
  • performance/cfi2017
  • performance/interpolation
  • poetry_packages
  • pre-commit-ci-update-config
  • sd_to_xyz_integration_shape
  • v0.4.2
  • v0.4.3
  • v0.4.4
  • v0.4.5
  • v0.4.6
  • v0.4.7

pending completion
27479300199

Pull #1406

github

KelSolaar
Implement support for *Python Array API Standard*.

*Colour* now dispatches array operations to the caller's backend (*NumPy*,
*JAX*, *PyTorch*) through the array-namespace machinery in
`colour.utilities.array`. Beyond the mechanical *NumPy* to namespace
conversion, this commit bundles the behaviour and public API changes
documented below so that they remain discoverable under `git blame` and
`git bisect`.

## Features

- Support for the *Python Array API Standard* was implemented: array
  operations dispatch to the input backend (*NumPy*, *JAX*, *PyTorch*)
  through the new `colour.utilities.array_namespace` and `xp_*` utilities,
  toggled with `colour.utilities.is_array_api_enabled` and
  `colour.utilities.set_array_api_enabled`.
- `colour.utilities.is_array_api_compat_installed` and
  `colour.utilities.is_array_api_extra_installed` were added.
- `colour.colorimetry.interpolate_signal`,
  `colour.colorimetry.extrapolate_signal` and
  `colour.colorimetry.trim_signal` were added, sharing the spectral
  distribution and multi-spectral distributions resampling implementation.
- `colour.colorimetry.msds_blackbody`,
  `colour.colorimetry.msds_rayleigh_jeans`,
  `colour.colorimetry.CIE_illuminant_D_series`,
  `colour.colorimetry.msds_CIE_illuminant_D_series` and
  `colour.colorimetry.msds_to_XYZ_tristimulus_weighting_factors_ASTME308`
  were added.
- `colour.appearance.eccentricity_factor_Hellwig2022` and
  `colour.appearance.hue_angle_dependency_Hellwig2022` were added.
- `colour.appearance.XYZ_to_Nayatani95` now computes the hue quadrature
  `H` correlate, previously left unset.

## Performance

- The multi-spectral distributions paths of `colour.colour_fidelity_index`,
  `colour.colour_quality_scale` and `colour.colour_rendering_index` were
  vectorised.
- The `colour.temperature` correlated colour temperature solvers were
  vectorised, replacing the *SciPy* `minimize` calls with closed-form
  Gauss-Newton iterations.

## Fixes

- `colour.colour_renderi... (continued)
Pull Request #1406: PR: Implement support for *Python Array API Standard*.

48543 of 49343 relevant lines covered (98.38%)

0.98 hits per line

Relevant lines Covered
Build:
Build:
49343 RELEVANT LINES 48543 COVERED LINES
0.98 HITS PER LINE
Source Files on develop
  • Tree
  • List 624
  • Changed 369
  • Source Changed 0
  • Coverage Changed 369
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27479300199 feature/array-api-support Implement support for *Python Array API Standard*. *Colour* now dispatches array operations to the caller's backend (*NumPy*, *JAX*, *PyTorch*) through the array-namespace machinery in `colour.utilities.array`. Beyond the mechanical *NumPy* to na... Pull #1406 13 Jun 2026 09:54PM UTC KelSolaar github pending completion  
27479101311 feature/array-api-support Merge d8252532e into 4ee3b72a2 Pull #1406 13 Jun 2026 09:48PM UTC web-flow github pending completion  
27479100297 feature/array-api-support Implement support for *Python Array API Standard*. *Colour* now dispatches array operations to the caller's backend (*NumPy*, *JAX*, *PyTorch*) through the array-namespace machinery in `colour.utilities.array`. Beyond the mechanical *NumPy* to na... push 13 Jun 2026 09:41PM UTC KelSolaar github
98.38
27479034194 feature/array-api-support Merge 98a7bdf07 into 4ee3b72a2 Pull #1406 13 Jun 2026 09:36PM UTC web-flow github pending completion  
27479033393 feature/array-api-support Implement support for *Python Array API Standard*. *Colour* now dispatches array operations to the caller's backend (*NumPy*, *JAX*, *PyTorch*) through the array-namespace machinery in `colour.utilities.array`. Beyond the mechanical *NumPy* to na... push 13 Jun 2026 09:27PM UTC KelSolaar github
98.38
27463423913 feature/array-api-support Merge ef5dfdb4e into 4ee3b72a2 Pull #1406 13 Jun 2026 10:56AM UTC web-flow github pending completion  
27462248752 feature/array-api-support Merge 0b57a7638 into 4ee3b72a2 Pull #1406 13 Jun 2026 10:52AM UTC web-flow github pending completion  
27462247849 feature/array-api-support Implement support for *Python Array API Standard*. *Colour* now dispatches array operations to the caller's backend (*NumPy*, *JAX*, *PyTorch*) through the array-namespace machinery in `colour.utilities.array`. Beyond the mechanical *NumPy* to na... push 13 Jun 2026 10:45AM UTC KelSolaar github
98.38
27462188986 feature/array-api-support Merge a844165c5 into 4ee3b72a2 Pull #1406 13 Jun 2026 10:30AM UTC web-flow github pending completion  
27462040190 feature/array-api-support Implement support for *Python Array API Standard*. *Colour* now dispatches array operations to the caller's backend (*NumPy*, *JAX*, *PyTorch*) through the array-namespace machinery in `colour.utilities.array`. Beyond the mechanical *NumPy* to na... push 13 Jun 2026 10:10AM UTC KelSolaar github
98.38
See All Builds (7042)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc