Files
lamp-testbench/crates/tm30/tests/golden/illuminant_FL4.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_FL4",
"source": "colour.SDS_ILLUMINANTS['FL4'] (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.57,
0.7,
0.87,
0.98,
2.01,
13.75,
1.95,
1.59,
1.76,
1.93,
2.1,
30.28,
8.03,
2.55,
2.7,
2.82,
2.91,
2.99,
3.04,
3.08,
3.09,
3.09,
3.14,
3.06,
3.0,
2.98,
3.01,
3.14,
3.41,
3.9,
4.69,
5.81,
7.32,
22.59,
15.11,
13.88,
16.33,
18.68,
20.64,
24.28,
26.26,
23.28,
22.94,
22.14,
20.91,
19.43,
17.74,
16.0,
14.42,
12.56,
10.93,
9.52,
8.18,
7.01,
6.0,
5.11,
4.36,
3.69,
3.13,
2.64,
2.24,
1.91,
1.7,
1.39,
1.18,
1.03,
0.88,
0.74,
0.64,
0.54,
0.49,
0.46,
0.42,
0.37,
0.37,
0.33,
0.35,
0.36,
0.31,
0.26,
0.19
],
"expected": {
"Rf": 56.837303202318516,
"Rg": 83.53535660111531,
"CCT_K": 2939.53486990894,
"Duv": -0.0007410061280834144,
"bins": [
{
"bin": 1,
"ref_a": 24.04302150966405,
"ref_b": 5.10997829018846,
"test_a": 17.57341860898924,
"test_b": 2.7305872878775825,
"ref_a_norm": 0.9781519334170307,
"ref_b_norm": 0.20789130610134932,
"test_a_norm": 0.714946471358451,
"test_b_norm": 0.11108958305959374,
"Rcs_pct": -27.7033122228718,
"Rhs": -0.043592866727611944,
"Rf_h": 50.164101307282245
},
{
"bin": 2,
"ref_a": 20.575230038336223,
"ref_b": 15.09760023355214,
"test_a": 12.763464016203361,
"test_b": 16.214741917960943,
"ref_a_norm": 0.8062349501664928,
"ref_b_norm": 0.5915954742305191,
"test_a_norm": 0.5001329635626106,
"test_b_norm": 0.6353703758272488,
"Rcs_pct": -23.01944678460636,
"Rhs": 0.20645865248449682,
"Rf_h": 46.398225941422844
},
{
"bin": 3,
"ref_a": 14.83826877702542,
"ref_b": 22.885389501010224,
"test_a": 5.646371099267796,
"test_b": 26.193514134767515,
"ref_a_norm": 0.5440283050036825,
"ref_b_norm": 0.8390668646507383,
"test_a_norm": 0.2070177959919816,
"test_b_norm": 0.9603555044703959,
"Rcs_pct": -8.63851886941317,
"Rhs": 0.3475983551570802,
"Rf_h": 33.96316195640967
},
{
"bin": 4,
"ref_a": 2.722606049734931,
"ref_b": 20.39505163570701,
"test_a": -2.7101089576544912,
"test_b": 24.460381709136072,
"ref_a_norm": 0.13231966667499653,
"ref_b_norm": 0.9912070953191456,
"test_a_norm": -0.13171230335166464,
"test_b_norm": 1.1887836489642623,
"Rcs_pct": 14.227009351287556,
"Rhs": 0.29750394323147883,
"Rf_h": 52.472472477741185
},
{
"bin": 5,
"ref_a": -2.9307939633559266,
"ref_b": 16.775914295948922,
"test_a": -5.5728573403752595,
"test_b": 19.674175822424875,
"ref_a_norm": -0.17209595990562995,
"ref_b_norm": 0.9850801899257542,
"test_a_norm": -0.3272376855556337,
"test_b_norm": 1.155265848041859,
"Rcs_pct": 19.718223763120914,
"Rhs": 0.11895914604948242,
"Rf_h": 70.40374870481806
},
{
"bin": 6,
"ref_a": -12.748159953653811,
"ref_b": 16.870126975051445,
"test_a": -11.788338115407848,
"test_b": 20.178663319853385,
"ref_a_norm": -0.6028885365240408,
"ref_b_norm": 0.7978254273510591,
"test_a_norm": -0.5574964497062042,
"test_b_norm": 0.9542933915283157,
"Rcs_pct": 10.487986526160048,
"Rhs": -0.12467108414609135,
"Rf_h": 75.7958240519802
},
{
"bin": 7,
"ref_a": -18.74456763651917,
"ref_b": 13.090954284380043,
"test_a": -14.909792030473088,
"test_b": 18.698988245552897,
"ref_a_norm": -0.819852877801606,
"ref_b_norm": 0.5725742386454572,
"test_a_norm": -0.6521268529977549,
"test_b_norm": 0.8178593191569488,
"Rcs_pct": -0.3186003480703912,
"Rhs": -0.29713067748021565,
"Rf_h": 53.939581859616396
},
{
"bin": 8,
"ref_a": -21.446065560336635,
"ref_b": 5.644249019263171,
"test_a": -16.283019073473497,
"test_b": 7.522393584943156,
"ref_a_norm": -0.9670684601939038,
"ref_b_norm": 0.2545163910206804,
"test_a_norm": -0.7342509579852653,
"test_b_norm": 0.33920765376273,
"Rcs_pct": -21.182153346618012,
"Rhs": -0.1284843853530388,
"Rf_h": 60.501470795133294
},
{
"bin": 9,
"ref_a": -22.581724104152443,
"ref_b": -3.8800856161994943,
"test_a": -17.143204446239228,
"test_b": -2.01142473636149,
"ref_a_norm": -0.985557255536085,
"ref_b_norm": -0.16934254060979462,
"test_a_norm": -0.748198385880673,
"test_b_norm": -0.08778666472686619,
"Rcs_pct": -24.870884761948506,
"Rhs": -0.033682384281910435,
"Rf_h": 59.00447255481244
},
{
"bin": 10,
"ref_a": -18.07750182004975,
"ref_b": -11.973740159351394,
"test_a": -11.408574510622127,
"test_b": -12.31964035067702,
"ref_a_norm": -0.8337052978428275,
"ref_b_norm": -0.55220963080048,
"test_a_norm": -0.5261451004137769,
"test_b_norm": -0.5681619910825396,
"Rcs_pct": -24.686430159691053,
"Rhs": 0.18413519337224704,
"Rf_h": 49.33311362479498
},
{
"bin": 11,
"ref_a": -10.884563311180324,
"ref_b": -15.823426281232113,
"test_a": -4.2502497932852545,
"test_b": -16.63956510475005,
"ref_a_norm": -0.5667394501766059,
"ref_b_norm": -0.8238970782892233,
"test_a_norm": -0.22130279020798943,
"test_b_norm": -0.8663919450913882,
"Rcs_pct": -15.6581135247433,
"Rhs": 0.3108289687906074,
"Rf_h": 51.37674532980499
},
{
"bin": 12,
"ref_a": -6.600974058951491,
"ref_b": -21.173045753659117,
"test_a": -2.2907668488116038,
"test_b": -23.001721259701384,
"ref_a_norm": -0.29763399824549197,
"ref_b_norm": -0.9546800527341096,
"test_a_norm": -0.1032893161177373,
"test_b_norm": -1.0371339447652217,
"Rcs_pct": 4.2954796997646145,
"Rhs": 0.2066963599033793,
"Rf_h": 61.37658768833385
},
{
"bin": 13,
"ref_a": 3.2672709269195903,
"ref_b": -18.032144067817775,
"test_a": 3.7467378113965877,
"test_b": -20.3665854235673,
"ref_a_norm": 0.17828848040412848,
"ref_b_norm": -0.9839782608143265,
"test_a_norm": 0.2044520352942949,
"test_b_norm": -1.1113640856260867,
"Rcs_pct": 13.004239825600827,
"Rhs": 0.0008090879364807859,
"Rf_h": 79.19803258984062
},
{
"bin": 14,
"ref_a": 9.38069712506772,
"ref_b": -13.982957445745487,
"test_a": 7.928964221520651,
"test_b": -17.21324048617001,
"ref_a_norm": 0.5571123958690091,
"ref_b_norm": -0.8304371007903565,
"test_a_norm": 0.47089509396980284,
"test_b_norm": -1.0222811290104812,
"Rcs_pct": 11.161271326028224,
"Rhs": -0.17826989804557833,
"Rf_h": 70.29843942669612
},
{
"bin": 15,
"ref_a": 18.9123581744298,
"ref_b": -13.437178883292924,
"test_a": 15.574614373010576,
"test_b": -18.602676404125877,
"ref_a_norm": 0.8151915871907778,
"ref_b_norm": -0.5791913985664675,
"test_a_norm": 0.6713226607449009,
"test_b_norm": -0.8018431738660223,
"Rcs_pct": 0.40760581910651206,
"Rhs": -0.26505747827661,
"Rf_h": 56.84750090404851
},
{
"bin": 16,
"ref_a": 16.888801082158455,
"ref_b": -4.179200924944297,
"test_a": 12.394017060707634,
"test_b": -6.883408874607942,
"ref_a_norm": 0.9707212368227607,
"ref_b_norm": -0.24020882660986811,
"test_a_norm": 0.712373572987508,
"test_b_norm": -0.39563916608473776,
"Rcs_pct": -22.306063093694913,
"Rhs": -0.20284491801476331,
"Rf_h": 59.894339093919584
}
]
}
}