spectrapy-colour 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spectrapy_colour-0.3.1/.gitignore +15 -0
- spectrapy_colour-0.3.1/CHANGELOG.md +49 -0
- spectrapy_colour-0.3.1/COPYING +674 -0
- spectrapy_colour-0.3.1/COPYING.LESSER +165 -0
- spectrapy_colour-0.3.1/PKG-INFO +388 -0
- spectrapy_colour-0.3.1/README.md +340 -0
- spectrapy_colour-0.3.1/docs/API.md +1593 -0
- spectrapy_colour-0.3.1/examples/getting_started.ipynb +406 -0
- spectrapy_colour-0.3.1/pyproject.toml +65 -0
- spectrapy_colour-0.3.1/src/spectrapy/__init__.py +104 -0
- spectrapy_colour-0.3.1/src/spectrapy/_util.py +121 -0
- spectrapy_colour-0.3.1/src/spectrapy/adaptation.py +56 -0
- spectrapy_colour-0.3.1/src/spectrapy/appearance.py +208 -0
- spectrapy_colour-0.3.1/src/spectrapy/atmosphere.py +89 -0
- spectrapy_colour-0.3.1/src/spectrapy/cmap.py +32 -0
- spectrapy_colour-0.3.1/src/spectrapy/colorimetry.py +189 -0
- spectrapy_colour-0.3.1/src/spectrapy/colorspaces.py +280 -0
- spectrapy_colour-0.3.1/src/spectrapy/constants.py +13 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/README.md +26 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/cmf_cie1931_2.csv +474 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/cmf_cie1964_10.csv +474 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/cri_tcs.csv +98 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/daylight_basis.csv +110 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/illuminants_cie_1nm.csv +534 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/illuminants_fl.csv +84 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/illuminants_led.csv +84 -0
- spectrapy_colour-0.3.1/src/spectrapy/data/tm30_ces.csv.gz +0 -0
- spectrapy_colour-0.3.1/src/spectrapy/gallery.py +504 -0
- spectrapy_colour-0.3.1/src/spectrapy/icc.py +105 -0
- spectrapy_colour-0.3.1/src/spectrapy/illuminants.py +153 -0
- spectrapy_colour-0.3.1/src/spectrapy/interactive.py +155 -0
- spectrapy_colour-0.3.1/src/spectrapy/io.py +89 -0
- spectrapy_colour-0.3.1/src/spectrapy/lines.py +141 -0
- spectrapy_colour-0.3.1/src/spectrapy/observers.py +70 -0
- spectrapy_colour-0.3.1/src/spectrapy/optics.py +202 -0
- spectrapy_colour-0.3.1/src/spectrapy/plot/__init__.py +26 -0
- spectrapy_colour-0.3.1/src/spectrapy/plot/_core.py +127 -0
- spectrapy_colour-0.3.1/src/spectrapy/plot/chromaticity.py +154 -0
- spectrapy_colour-0.3.1/src/spectrapy/plot/patches.py +114 -0
- spectrapy_colour-0.3.1/src/spectrapy/plot/spectra.py +287 -0
- spectrapy_colour-0.3.1/src/spectrapy/plot/tm30.py +124 -0
- spectrapy_colour-0.3.1/src/spectrapy/quality.py +206 -0
- spectrapy_colour-0.3.1/src/spectrapy/render.py +158 -0
- spectrapy_colour-0.3.1/src/spectrapy/spectrum.py +292 -0
- spectrapy_colour-0.3.1/src/spectrapy/style.py +151 -0
- spectrapy_colour-0.3.1/src/spectrapy/temperature.py +185 -0
- spectrapy_colour-0.3.1/src/spectrapy/thinfilm.py +241 -0
- spectrapy_colour-0.3.1/src/spectrapy/uniform.py +152 -0
- spectrapy_colour-0.3.1/tests/conftest.py +28 -0
- spectrapy_colour-0.3.1/tests/test_appearance_tm30.py +100 -0
- spectrapy_colour-0.3.1/tests/test_colorimetry.py +88 -0
- spectrapy_colour-0.3.1/tests/test_colorspaces.py +97 -0
- spectrapy_colour-0.3.1/tests/test_icc_output.py +69 -0
- spectrapy_colour-0.3.1/tests/test_lines_io.py +60 -0
- spectrapy_colour-0.3.1/tests/test_physics.py +181 -0
- spectrapy_colour-0.3.1/tests/test_plot.py +89 -0
- spectrapy_colour-0.3.1/tests/test_spectrum.py +70 -0
- spectrapy_colour-0.3.1/tests/test_temperature_quality.py +71 -0
- spectrapy_colour-0.3.1/tests/test_uniform_adaptation.py +62 -0
- spectrapy_colour-0.3.1/tools/build_data.py +126 -0
- spectrapy_colour-0.3.1/tools/build_notebook.py +142 -0
- spectrapy_colour-0.3.1/tools/make_api_docs.py +105 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
- **Published on PyPI** as `spectrapy-colour` (the name `spectrapy` is taken there):
|
|
6
|
+
`pip install spectrapy-colour`. The import name is unchanged: `import spectrapy`.
|
|
7
|
+
- Release workflow: publishing a GitHub release builds the sdist and wheel, checks them, smoke-tests
|
|
8
|
+
the wheel and uploads to PyPI with Trusted Publishing.
|
|
9
|
+
- README images and links are absolute so they render on PyPI; added project URLs and classifiers.
|
|
10
|
+
|
|
11
|
+
## 0.3.0
|
|
12
|
+
|
|
13
|
+
- **ANSI/IES TM-30.** `sp.tm30(spectrum)` computes the fidelity index Rf (identical to CIE 224:2017),
|
|
14
|
+
the gamut index Rg, and the 16 hue-bin metrics Rf,hj, Rcs,hj and Rhs,hj. It uses the 99 colour
|
|
15
|
+
evaluation samples and the CIE 224 reference-illuminant blend. Plots: `plot.tm30_cvg` (colour
|
|
16
|
+
vector graphic), `plot.tm30_bars` and the one-page `plot.tm30_report`. Validated against
|
|
17
|
+
colour-science.
|
|
18
|
+
- **Colour appearance models.** The new `spectrapy.appearance` module: CIECAM02 and CAM16 (J, C,
|
|
19
|
+
h, M, s, Q), the CAM02-UCS and CAM16-UCS uniform colour spaces, and the inverse CAM16.
|
|
20
|
+
- **Getting-started notebook.** `examples/getting_started.ipynb`, generated and executed by
|
|
21
|
+
`tools/build_notebook.py`. CI re-executes it on every push.
|
|
22
|
+
- **New gallery figures:** TM-30 colour vector graphics and a TM-30 report.
|
|
23
|
+
- Bundled data tables may be gzip-compressed; the CES table ships as `tm30_ces.csv.gz`.
|
|
24
|
+
|
|
25
|
+
## 0.2.0
|
|
26
|
+
|
|
27
|
+
- **Wide-gamut output.** `sp.output_space("p3")` (also `"rec2020"`, `"adobe"`) makes plots and colour
|
|
28
|
+
functions work in another RGB space. `sp.style.save` embeds the matching ICC v4 profile in
|
|
29
|
+
PNG/JPEG/TIFF files. The profiles come from the new `spectrapy.icc` module and are validated
|
|
30
|
+
against LittleCMS. The gallery takes `--space p3`.
|
|
31
|
+
- **Optics.** `optics.prism_rays` (exact 2D Snell's-law ray tracing), `optics.grating_angle` and
|
|
32
|
+
`optics.grating_screen_xyz` (diffraction-grating spectra on a screen, including line sources),
|
|
33
|
+
and the N-SF11 dense flint glass.
|
|
34
|
+
- **Interactive explorers.** `spectrapy.interactive.blackbody_explorer` and `thinfilm_explorer`,
|
|
35
|
+
built on matplotlib widgets.
|
|
36
|
+
- **New gallery figures:** prism dispersion, diffraction-grating orders, star colours.
|
|
37
|
+
- `render.compress_luminance`, a tone-compression helper for spectral pictures.
|
|
38
|
+
- **API reference.** `docs/API.md`, generated from the docstrings by `tools/make_api_docs.py`.
|
|
39
|
+
- **Faster CCT/Duv.** Coarse-to-fine search, polyline projection and Newton steps on a cubic
|
|
40
|
+
interpolation of the integrated locus: about 10× faster, accurate to better than 1e-6 relative.
|
|
41
|
+
- **Fix:** `"whiten"` highlight handling overflowed for near-neutral over-exposed colours.
|
|
42
|
+
|
|
43
|
+
## 0.1.0
|
|
44
|
+
|
|
45
|
+
First version: vectorized colorimetry (`Spectrum`, `LineSpectrum`, CIE observers and illuminants,
|
|
46
|
+
XYZ by proper integration), RGB colour spaces with gamut mapping, CIELAB/OKLab/ΔE2000, chromatic
|
|
47
|
+
adaptation, CCT/Duv, CIE 13.3 CRI, transfer-matrix thin films, Rayleigh sky, rainbows, line spectra,
|
|
48
|
+
matplotlib plotting with light/dark themes, the example gallery, and tests validated against
|
|
49
|
+
colour-science.
|