Files
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

435 lines
8.8 KiB
JSON

{
"name": "illuminant_A",
"source": "colour.SDS_ILLUMINANTS['A'] (300.0, 780.0, 5.0)",
"generator": "crates/tm30/tools/golden.py (tm30.py + colour-science 0.4.7, numpy 2.5.1)",
"wavelengths": [
300.0,
305.0,
310.0,
315.0,
320.0,
325.0,
330.0,
335.0,
340.0,
345.0,
350.0,
355.0,
360.0,
365.0,
370.0,
375.0,
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.930483,
1.12821,
1.35769,
1.62219,
1.92508,
2.2698,
2.65981,
3.09861,
3.58968,
4.13648,
4.74238,
5.4107,
6.14462,
6.9472,
7.82135,
8.7698,
9.7951,
10.8996,
12.0853,
13.3543,
14.708,
16.148,
17.6753,
19.2907,
20.995,
22.7883,
24.6709,
26.6425,
28.7027,
30.8508,
33.0859,
35.4068,
37.8121,
40.3002,
42.8693,
45.5174,
48.2423,
51.0418,
53.9132,
56.8539,
59.8611,
62.932,
66.0635,
69.2525,
72.4959,
75.7903,
79.1326,
82.5193,
85.947,
89.4124,
92.912,
96.4423,
100.0,
103.582,
107.184,
110.803,
114.436,
118.08,
121.731,
125.386,
129.043,
132.697,
136.346,
139.988,
143.618,
147.235,
150.836,
154.418,
157.979,
161.516,
165.028,
168.51,
171.963,
175.383,
178.769,
182.118,
185.429,
188.701,
191.931,
195.118,
198.261,
201.359,
204.409,
207.411,
210.365,
213.268,
216.12,
218.92,
221.667,
224.361,
227.0,
229.585,
232.115,
234.589,
237.008,
239.37,
241.675
],
"expected": {
"Rf": 99.99869291550083,
"Rg": 100.00142490961754,
"CCT_K": 2855.658424436243,
"Duv": 5.602647302014208e-07,
"bins": [
{
"bin": 1,
"ref_a": 24.136909279209537,
"ref_b": 5.229907397606012,
"test_a": 24.137018759075897,
"test_b": 5.229857888375308,
"ref_a_norm": 0.9773210976977805,
"ref_b_norm": 0.2117627729200895,
"test_a_norm": 0.9773255306175851,
"test_b_norm": 0.21176076825515341,
"Rcs_pct": 0.00039566517656954746,
"Rhs": -2.8309656136092595e-06,
"Rf_h": 99.99914960196838
},
{
"bin": 2,
"ref_a": 20.635749303334617,
"ref_b": 15.117385918248889,
"test_a": 20.63579074873976,
"test_b": 15.117494792519082,
"ref_a_norm": 0.8066937954547886,
"ref_b_norm": 0.5909696442075071,
"test_a_norm": 0.8066954156407429,
"test_b_norm": 0.590973900326195,
"Rcs_pct": 0.00037117082385003115,
"Rhs": 2.638706267201798e-06,
"Rf_h": 99.9994710754886
},
{
"bin": 3,
"ref_a": 14.883650579138424,
"ref_b": 22.814856273616257,
"test_a": 14.883616086070193,
"test_b": 22.815123318109993,
"ref_a_norm": 0.5463810094158151,
"ref_b_norm": 0.8375367410148374,
"test_a_norm": 0.5463797431701896,
"test_b_norm": 0.8375465442576152,
"Rcs_pct": 0.0007447610094472131,
"Rhs": 6.499234633723335e-06,
"Rf_h": 99.99861265505554
},
{
"bin": 4,
"ref_a": 2.7313615072020565,
"ref_b": 20.27457142594694,
"test_a": 2.7312555695770624,
"test_b": 20.27491693656199,
"ref_a_norm": 0.13351246430088187,
"ref_b_norm": 0.9910471340336471,
"test_a_norm": 0.13350728593348604,
"test_b_norm": 0.9910640230370015,
"Rcs_pct": 0.0015554236527902362,
"Rhs": 8.37374762130058e-06,
"Rf_h": 99.99800522273162
},
{
"bin": 5,
"ref_a": -2.916946634944088,
"ref_b": 16.648697650654817,
"test_a": -2.9170369010753667,
"test_b": 16.648995447888737,
"ref_a_norm": -0.17257691611880005,
"ref_b_norm": 0.9849960446737461,
"test_a_norm": -0.17258225658351048,
"test_b_norm": 0.9850136634150843,
"Rcs_pct": 0.001832207514385362,
"Rhs": 1.8006032572946633e-06,
"Rf_h": 99.99835089928493
},
{
"bin": 6,
"ref_a": -12.78811185147957,
"ref_b": 16.67776522160597,
"test_a": -12.788216323142862,
"test_b": 16.678121997181808,
"ref_a_norm": -0.6084862388576454,
"ref_b_norm": 0.7935644253120704,
"test_a_norm": -0.6084912098471239,
"test_b_norm": 0.7935814014717083,
"Rcs_pct": 0.0016876894655425449,
"Rhs": -5.298222271354322e-06,
"Rf_h": 99.99794401089322
},
{
"bin": 7,
"ref_a": -18.858176701885924,
"ref_b": 12.829907885756011,
"test_a": -18.858307387056858,
"test_b": 12.830382647229602,
"ref_a_norm": -0.8267970724158379,
"ref_b_norm": 0.5625003120395573,
"test_a_norm": -0.8268028020321441,
"test_b_norm": 0.5625211269572806,
"Rcs_pct": 0.001632815053854683,
"Rhs": -1.4123767303124144e-05,
"Rf_h": 99.99713439230325
},
{
"bin": 8,
"ref_a": -21.43131842553025,
"ref_b": 5.397620101060722,
"test_a": -21.43141604529075,
"test_b": 5.3979967879530255,
"ref_a_norm": -0.9697173902639312,
"ref_b_norm": 0.24422977504741347,
"test_a_norm": -0.9697218073313981,
"test_b_norm": 0.24424681925453587,
"Rcs_pct": 0.0007657354610068032,
"Rhs": -1.5854980347317808e-05,
"Rf_h": 99.99783109559098
},
{
"bin": 9,
"ref_a": -22.605603031423193,
"ref_b": -4.097787913662709,
"test_a": -22.605739585711888,
"test_b": -4.097475149876053,
"ref_a_norm": -0.9839641677943557,
"ref_b_norm": -0.17836624259304473,
"test_a_norm": -0.9839701116537983,
"test_b_norm": -0.17835262878417507,
"Rcs_pct": 0.0003173727493836111,
"Rhs": -1.451181280226966e-05,
"Rf_h": 99.99815349325311
},
{
"bin": 10,
"ref_a": -17.988122649657015,
"ref_b": -12.152577514803381,
"test_a": -17.988304389346204,
"test_b": -12.152289452130033,
"ref_a_norm": -0.8286222905114721,
"ref_b_norm": -0.5598080918203322,
"test_a_norm": -0.8286306623444013,
"test_b_norm": -0.559794822222562,
"Rcs_pct": -4.112688453262384e-05,
"Rhs": -1.5684408484632164e-05,
"Rf_h": 99.99813643492921
},
{
"bin": 11,
"ref_a": -10.731221135729598,
"ref_b": -15.926586201616235,
"test_a": -10.731364910326578,
"test_b": -15.926424013221872,
"ref_a_norm": -0.5587849573216191,
"ref_b_norm": -0.8293125897217988,
"test_a_norm": -0.5587924438025164,
"test_b_norm": -0.8293041444168446,
"Rcs_pct": -0.00028627484994255437,
"Rhs": -1.091674141050841e-05,
"Rf_h": 99.99897621405914
},
{
"bin": 12,
"ref_a": -6.3973210833032175,
"ref_b": -21.19469432764121,
"test_a": -6.397326691976124,
"test_b": -21.19468166250686,
"ref_a_norm": -0.28895999942073014,
"ref_b_norm": -0.9573411715448007,
"test_a_norm": -0.2889602527583536,
"test_b_norm": -0.9573405994745284,
"Rcs_pct": -5.116543839038093e-05,
"Rhs": -3.600751857156605e-07,
"Rf_h": 99.99991204399312
},
{
"bin": 13,
"ref_a": 3.455764185404833,
"ref_b": -17.941587719437408,
"test_a": 3.4558346842791927,
"test_b": -17.941691875644658,
"ref_a_norm": 0.18913549607111174,
"ref_b_norm": -0.9819509988415586,
"test_a_norm": 0.189139354505559,
"test_b_norm": -0.9819566993566603,
"Rcs_pct": 0.000634372452134341,
"Rhs": 2.672180384374638e-06,
"Rf_h": 99.99956247217781
},
{
"bin": 14,
"ref_a": 9.649406737373276,
"ref_b": -13.851337352612092,
"test_a": 9.649461083704963,
"test_b": -13.851343113959588,
"ref_a_norm": 0.5716110122170811,
"ref_b_norm": -0.8205247410725433,
"test_a_norm": 0.5716142315820132,
"test_b_norm": -0.8205250823629214,
"Rcs_pct": 0.00020723559039248677,
"Rhs": 2.487193337050201e-06,
"Rf_h": 99.99957407223089
},
{
"bin": 15,
"ref_a": 19.086325322231154,
"ref_b": -13.206748447027783,
"test_a": 19.086419070045523,
"test_b": -13.206959414811967,
"ref_a_norm": 0.822330518304195,
"ref_b_norm": -0.5690101217601969,
"test_a_norm": 0.822334557410072,
"test_b_norm": -0.5690192112650851,
"Rcs_pct": 0.0008408252146359298,
"Rhs": -5.3136401121213934e-06,
"Rf_h": 99.9988534915704
},
{
"bin": 16,
"ref_a": 17.05724171424712,
"ref_b": -4.0672592476200915,
"test_a": 17.057296374586834,
"test_b": -4.067190784471482,
"ref_a_norm": 0.9727289193841027,
"ref_b_norm": -0.23194492750184473,
"test_a_norm": 0.9727320365172285,
"test_b_norm": -0.23194102323140756,
"Rcs_pct": 0.0002295552910066237,
"Rhs": 4.437373480797696e-06,
"Rf_h": 99.99918968710665
}
]
}
}