Files
lamp-testbench/crates/tm30/tests/golden/illuminant_FL3.json
T
grabowski 2a3f28001c Lamp testbench in Rust around the HPCS 6500
lampbench station / export / label / tm30 / calibrate replace the Python
lamp_station.py, lamp_export.py, label_printer.py, tm30.py and
calibration.py that lived in HPCS6500-py. The driver is a submodule
(HPCS6500/, like mppt-testbench). Workspace crates: tm30 (TM-30-18 port of
colour-science 0.4.7), brother-ql (raster protocol, byte-identical to
brother_ql) and lamp-label (QR + ID labels for the QL-820NWB).

Bundles are byte-identical to lamp_export.py's (golden tests); the station
runs end to end in a test against the simulated instrument.
2026-10-22 17:26:14 +07:00

403 lines
8.2 KiB
JSON

{
"name": "illuminant_FL3",
"source": "colour.SDS_ILLUMINANTS['FL3'] (380.0, 780.0, 5.0)",
"generator": "crates/tm30/tools/golden.py (tm30.py + colour-science 0.4.7, numpy 2.5.1)",
"wavelengths": [
380.0,
385.0,
390.0,
395.0,
400.0,
405.0,
410.0,
415.0,
420.0,
425.0,
430.0,
435.0,
440.0,
445.0,
450.0,
455.0,
460.0,
465.0,
470.0,
475.0,
480.0,
485.0,
490.0,
495.0,
500.0,
505.0,
510.0,
515.0,
520.0,
525.0,
530.0,
535.0,
540.0,
545.0,
550.0,
555.0,
560.0,
565.0,
570.0,
575.0,
580.0,
585.0,
590.0,
595.0,
600.0,
605.0,
610.0,
615.0,
620.0,
625.0,
630.0,
635.0,
640.0,
645.0,
650.0,
655.0,
660.0,
665.0,
670.0,
675.0,
680.0,
685.0,
690.0,
695.0,
700.0,
705.0,
710.0,
715.0,
720.0,
725.0,
730.0,
735.0,
740.0,
745.0,
750.0,
755.0,
760.0,
765.0,
770.0,
775.0,
780.0
],
"values": [
0.82,
1.02,
1.26,
1.44,
2.57,
14.36,
2.7,
2.45,
2.73,
3.0,
3.28,
31.85,
9.47,
4.02,
4.25,
4.44,
4.59,
4.72,
4.8,
4.86,
4.87,
4.85,
4.88,
4.77,
4.67,
4.62,
4.62,
4.73,
4.99,
5.48,
6.25,
7.34,
8.78,
23.82,
16.14,
14.59,
16.63,
18.49,
19.95,
23.11,
24.69,
21.41,
20.85,
19.93,
18.67,
17.22,
15.65,
14.04,
12.45,
10.95,
9.51,
8.27,
7.11,
6.09,
5.22,
4.45,
3.8,
3.23,
2.75,
2.33,
1.99,
1.7,
1.55,
1.27,
1.09,
0.96,
0.83,
0.71,
0.62,
0.54,
0.49,
0.46,
0.43,
0.39,
0.39,
0.35,
0.38,
0.39,
0.33,
0.28,
0.21
],
"expected": {
"Rf": 63.19778338658768,
"Rg": 84.41179198429043,
"CCT_K": 3447.3244899976953,
"Duv": 0.000743226934525114,
"bins": [
{
"bin": 1,
"ref_a": 21.94160351974977,
"ref_b": 5.530930055836527,
"test_a": 15.926537601641845,
"test_b": 3.8086806415923187,
"ref_a_norm": 0.9696672224894509,
"ref_b_norm": 0.24442888051454467,
"test_a_norm": 0.7038428830489584,
"test_b_norm": 0.16831736002147402,
"Rcs_pct": -27.556522033827733,
"Rhs": -0.022789302987542226,
"Rf_h": 55.02171738911249
},
{
"bin": 2,
"ref_a": 20.256423549029194,
"ref_b": 14.927046207598268,
"test_a": 13.326919493546331,
"test_b": 15.670520851902511,
"ref_a_norm": 0.8050319147201971,
"ref_b_norm": 0.5932315031098174,
"test_a_norm": 0.5296391779745195,
"test_b_norm": 0.622778713899594,
"Rcs_pct": -21.256514126930988,
"Rhs": 0.17756761482569922,
"Rf_h": 52.486754689794886
},
{
"bin": 3,
"ref_a": 14.597230588667905,
"ref_b": 23.155884382248217,
"test_a": 6.6059382573278755,
"test_b": 25.679746736846806,
"ref_a_norm": 0.5332736214287349,
"ref_b_norm": 0.845942814076863,
"test_a_norm": 0.24133157286387288,
"test_b_norm": 0.938145866542808,
"Rcs_pct": -8.553027566243001,
"Rhs": 0.2939662132786603,
"Rf_h": 43.01164348790252
},
{
"bin": 4,
"ref_a": 3.316550846746281,
"ref_b": 22.624087178474447,
"test_a": -1.7830098702119193,
"test_b": 25.578420583748912,
"ref_a_norm": 0.1450436063956005,
"ref_b_norm": 0.9894252635968813,
"test_a_norm": -0.0779768481668849,
"test_b_norm": 1.1186279176181193,
"Rcs_pct": 8.321092895628283,
"Rhs": 0.24394136644206482,
"Rf_h": 59.101565162166175
},
{
"bin": 5,
"ref_a": -2.459436280601042,
"ref_b": 16.577431257176915,
"test_a": -4.736494527690048,
"test_b": 18.940350406864603,
"ref_a_norm": -0.14675421640781136,
"ref_b_norm": 0.9891729878876239,
"test_a_norm": -0.2826259612471722,
"test_b_norm": 1.130168040690002,
"Rcs_pct": 16.479313485185287,
"Rhs": 0.10575423710725176,
"Rf_h": 75.49079092390846
},
{
"bin": 6,
"ref_a": -12.547433038572542,
"ref_b": 17.790683608144555,
"test_a": -11.645405540084255,
"test_b": 20.140973494984056,
"ref_a_norm": -0.5763552146748991,
"ref_b_norm": 0.8171992820096278,
"test_a_norm": -0.5349213810823491,
"test_b_norm": 0.9251577646820112,
"Rcs_pct": 6.674479314846927,
"Rhs": -0.09442949292814448,
"Rf_h": 81.96532259233045
},
{
"bin": 7,
"ref_a": -18.162833778901028,
"ref_b": 12.176502489175482,
"test_a": -14.71794049010156,
"test_b": 15.29575076480441,
"ref_a_norm": -0.8306133746748208,
"ref_b_norm": 0.5568495504274974,
"test_a_norm": -0.6730732862262714,
"test_b_norm": 0.6994974085870805,
"Rcs_pct": -5.173889246695727,
"Rhs": -0.20613194296902643,
"Rf_h": 67.23708932361353
},
{
"bin": 8,
"ref_a": -20.904662056000344,
"ref_b": 4.9270968246788245,
"test_a": -16.668193325457693,
"test_b": 6.230221065152909,
"ref_a_norm": -0.9733303906363165,
"ref_b_norm": 0.22940782607347002,
"test_a_norm": -0.7760785167064034,
"test_b_norm": 0.29008187201740954,
"Rcs_pct": -18.162481532118797,
"Rhs": -0.09799014276759675,
"Rf_h": 68.05205831616712
},
{
"bin": 9,
"ref_a": -21.15739395003704,
"ref_b": -3.08172761808492,
"test_a": -16.663319611468893,
"test_b": -2.1887544094686926,
"ref_a_norm": -0.9895578492140875,
"ref_b_norm": -0.14413626559193637,
"test_a_norm": -0.7793643562355285,
"test_b_norm": -0.10237078871842333,
"Rcs_pct": -21.430272428232136,
"Rhs": 4.37512843187824e-05,
"Rf_h": 67.72389821785953
},
{
"bin": 10,
"ref_a": -17.89426679083414,
"ref_b": -10.986787344079431,
"test_a": -11.972362228691079,
"test_b": -11.566225290410726,
"ref_a_norm": -0.8521907692186877,
"ref_b_norm": -0.5232312040183204,
"test_a_norm": -0.5701679032895102,
"test_b_norm": -0.5508261692085954,
"Rcs_pct": -21.916250175365715,
"Rhs": 0.1796278843493894,
"Rf_h": 55.299157156392866
},
{
"bin": 11,
"ref_a": -11.696949550713507,
"ref_b": -17.24521390184183,
"test_a": -6.358266082725774,
"test_b": -18.806657119480445,
"ref_a_norm": -0.5613318566742739,
"ref_b_norm": -0.8275908087228933,
"test_a_norm": -0.30513060605855213,
"test_b_norm": -0.9025238343505083,
"Rcs_pct": -8.003325473724022,
"Rhs": 0.2546541130296794,
"Rf_h": 59.388163677843494
},
{
"bin": 12,
"ref_a": -7.68788374186335,
"ref_b": -23.86426257661041,
"test_a": -3.9485698308754174,
"test_b": -26.094965734607687,
"ref_a_norm": -0.3066319071562265,
"ref_b_norm": -0.9518281743643311,
"test_a_norm": -0.1574890487986764,
"test_b_norm": -1.040799962518653,
"Rcs_pct": 5.816589192953315,
"Rhs": 0.1636346549557265,
"Rf_h": 66.68367217510365
},
{
"bin": 13,
"ref_a": 2.381520197394699,
"ref_b": -18.424037385665343,
"test_a": 2.8207209472961914,
"test_b": -20.32008769747726,
"ref_a_norm": 0.12819504041958857,
"ref_b_norm": -0.9917489761082792,
"test_a_norm": 0.15183681257316065,
"test_b_norm": -1.0938116193838667,
"Rcs_pct": 10.471381914621432,
"Rhs": 0.0032760681884188526,
"Rf_h": 82.34842258205313
},
{
"bin": 14,
"ref_a": 8.028123970338934,
"ref_b": -14.582576635749481,
"test_a": 6.542635753627454,
"test_b": -17.47432259853496,
"ref_a_norm": 0.4822741592398461,
"ref_b_norm": -0.8760203395638138,
"test_a_norm": 0.39303630199921097,
"test_b_norm": -1.0497364353902099,
"Rcs_pct": 9.486175770613587,
"Rhs": -0.17071005840010728,
"Rf_h": 73.0563273769912
},
{
"bin": 15,
"ref_a": 16.54327447560949,
"ref_b": -11.391660449608125,
"test_a": 12.860031701619093,
"test_b": -15.400410136654198,
"ref_a_norm": 0.8236196353365476,
"ref_b_norm": -0.5671425713946119,
"test_a_norm": 0.6402465628022976,
"test_b_norm": -0.7667212557879713,
"Rcs_pct": -4.158916133261492,
"Rhs": -0.2678202319737723,
"Rf_h": 60.79009280131925
},
{
"bin": 16,
"ref_a": 20.727726013825222,
"ref_b": -2.9321574752652233,
"test_a": 16.33032112389099,
"test_b": -5.8893689919089045,
"ref_a_norm": 0.9901421487236542,
"ref_b_norm": -0.1400661462342173,
"test_a_norm": 0.7800826408151038,
"test_b_norm": -0.2813290982515741,
"Rcs_pct": -17.846423856743712,
"Rhs": -0.17952920104536,
"Rf_h": 60.89249970246921
}
]
}
}