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

403 lines
8.2 KiB
JSON

{
"name": "illuminant_LED_V1",
"source": "colour.SDS_ILLUMINANTS['LED-V1'] (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.01,
0.03,
0.14,
0.61,
2.62,
8.43,
16.51,
17.9,
11.26,
5.94,
3.31,
2.25,
2.07,
2.29,
2.68,
3.15,
3.64,
4.18,
4.83,
5.57,
6.4,
7.27,
8.08,
8.73,
9.21,
9.54,
9.75,
9.91,
10.06,
10.26,
10.51,
10.82,
11.17,
11.55,
11.92,
12.3,
12.68,
13.07,
13.52,
14.06,
14.7,
15.46,
16.38,
17.39,
18.5,
19.51,
20.52,
21.52,
22.38,
23.07,
23.51,
23.71,
23.67,
23.35,
22.81,
22.01,
21.03,
19.91,
18.69,
17.39,
16.05,
14.69,
13.36,
12.04,
10.8,
9.62,
8.54,
7.57,
6.68,
5.86,
5.12,
4.46,
3.88,
3.37,
2.94,
2.54,
2.21,
1.9,
1.65,
1.44,
1.22
],
"expected": {
"Rf": 87.40227499670121,
"Rg": 101.99359743128507,
"CCT_K": 2725.1353468122957,
"Duv": -0.0019451515113612736,
"bins": [
{
"bin": 1,
"ref_a": 24.291933494347198,
"ref_b": 5.423445269783677,
"test_a": 24.316356953127922,
"test_b": 5.306995830399406,
"ref_a_norm": 0.9759718578923219,
"ref_b_norm": 0.21789660989150272,
"test_a_norm": 0.9769531140137387,
"test_b_norm": 0.21321804547287243,
"Rcs_pct": 0.004965892118745242,
"Rhs": -0.004780100687918423,
"Rf_h": 92.00472391931135
},
{
"bin": 2,
"ref_a": 20.73595605343819,
"ref_b": 15.138282542113616,
"test_a": 20.79081247108082,
"test_b": 15.492488241920373,
"ref_a_norm": 0.8076677993055854,
"ref_b_norm": 0.5896377921782767,
"test_a_norm": 0.8098044628865184,
"test_b_norm": 0.603434143662007,
"Rcs_pct": 0.9441413047895768,
"Rhs": 0.010284180335823383,
"Rf_h": 94.22740317966917
},
{
"bin": 3,
"ref_a": 14.959219889422693,
"ref_b": 22.68235785007494,
"test_a": 14.931871970718754,
"test_b": 23.275781316609727,
"ref_a_norm": 0.5505566799660914,
"ref_b_norm": 0.8347977851819653,
"test_a_norm": 0.5495501716430023,
"test_b_norm": 0.8566380453000998,
"Rcs_pct": 1.7600326549417213,
"Rhs": 0.012970679488218784,
"Rf_h": 94.18661135104001
},
{
"bin": 4,
"ref_a": 2.744614713721124,
"ref_b": 20.06360331086559,
"test_a": 2.2189557831408924,
"test_b": 21.94605544442389,
"ref_a_norm": 0.13553345730619396,
"ref_b_norm": 0.9907727700894036,
"test_a_norm": 0.1095755799147903,
"test_b_norm": 1.0837312624413837,
"Rcs_pct": 8.610819032815435,
"Rhs": 0.043594406263082135,
"Rf_h": 85.81803015210764
},
{
"bin": 5,
"ref_a": -2.8927957442201673,
"ref_b": 16.427970836569386,
"test_a": -3.491568227466292,
"test_b": 17.679609127010657,
"ref_a_norm": -0.17342149278649568,
"ref_b_norm": 0.9848476967733149,
"test_a_norm": -0.2093175694768369,
"test_b_norm": 1.0598827147799448,
"Rcs_pct": 8.059621833632828,
"Rhs": 0.020567737816712804,
"Rf_h": 90.08465676928014
},
{
"bin": 6,
"ref_a": -12.481443190115826,
"ref_b": 16.686258036496433,
"test_a": -13.286636142437564,
"test_b": 17.62174889047256,
"ref_a_norm": -0.5989782841072364,
"ref_b_norm": 0.8007652684575868,
"test_a_norm": -0.6376190955591402,
"test_b_norm": 0.8456590117513407,
"Rcs_pct": 5.879546795366832,
"Rhs": 0.007187033094137112,
"Rf_h": 91.63060583663557
},
{
"bin": 7,
"ref_a": -17.606404368111182,
"ref_b": 13.143623062282316,
"test_a": -18.346737191806415,
"test_b": 15.112938046394666,
"ref_a_norm": -0.8013345965627797,
"ref_b_norm": 0.598216402609931,
"test_a_norm": -0.8350299662813413,
"test_b_norm": 0.6878474365964579,
"Rcs_pct": 7.781301043396587,
"Rhs": -0.05580533667283079,
"Rf_h": 85.47539104405307
},
{
"bin": 8,
"ref_a": -21.39957451581042,
"ref_b": 4.982722730823428,
"test_a": -22.384538301883957,
"test_b": 6.478953612666154,
"ref_a_norm": -0.9739469661879827,
"ref_b_norm": 0.22677589610279195,
"test_a_norm": -1.0187750766974977,
"test_b_norm": 0.2948730223802723,
"Rcs_pct": 5.725184122986823,
"Rhs": -0.05804312857603689,
"Rf_h": 87.82182376464858
},
{
"bin": 9,
"ref_a": -24.033542076050725,
"ref_b": -4.195071635834407,
"test_a": -25.06008665608581,
"test_b": -1.9552794112068899,
"ref_a_norm": -0.9851055280098112,
"ref_b_norm": -0.17195086124969214,
"test_a_norm": -1.0271823362198162,
"test_b_norm": -0.08014451430790466,
"Rcs_pct": 2.335778435072505,
"Rhs": -0.09825109179119804,
"Rf_h": 83.34371506935615
},
{
"bin": 10,
"ref_a": -17.392050616646547,
"ref_b": -11.63952140921492,
"test_a": -18.841841860347134,
"test_b": -8.94038591085631,
"ref_a_norm": -0.8310604855190737,
"ref_b_norm": -0.5561820470033185,
"test_a_norm": -0.9003372051796004,
"test_b_norm": -0.42720675207169734,
"Rcs_pct": -1.4053347421202473,
"Rhs": -0.14572712175803398,
"Rf_h": 79.25365871633241
},
{
"bin": 11,
"ref_a": -10.472589979545097,
"ref_b": -16.088915092995304,
"test_a": -12.253571916076185,
"test_b": -13.471208933325693,
"ref_a_norm": -0.5455300283525646,
"ref_b_norm": -0.8380912767507187,
"test_a_norm": -0.638303556985776,
"test_b_norm": -0.701731759354118,
"Rcs_pct": -6.183658414270978,
"Rhs": -0.15289565873906533,
"Rf_h": 78.67404841595159
},
{
"bin": 12,
"ref_a": -6.045794361430085,
"ref_b": -21.22131411563845,
"test_a": -7.732734135177502,
"test_b": -19.711551901005393,
"ref_a_norm": -0.2739904060985276,
"ref_b_norm": -0.9617324250361761,
"test_a_norm": -0.35044112308313274,
"test_b_norm": -0.8933112486662813,
"Rcs_pct": -5.219168765657565,
"Rhs": -0.08833004722549909,
"Rf_h": 84.20107133486145
},
{
"bin": 13,
"ref_a": 3.7795521158976357,
"ref_b": -17.77949134268055,
"test_a": 3.057598977501098,
"test_b": -17.92258669034859,
"ref_a_norm": 0.20793298604156615,
"ref_b_norm": -0.9781430740519701,
"test_a_norm": 0.16821455717867442,
"test_b_norm": -0.9860154996772496,
"Rcs_pct": -0.002752190249293503,
"Rhs": -0.04049108443975082,
"Rf_h": 93.41621022317837
},
{
"bin": 14,
"ref_a": 10.098275474531759,
"ref_b": -13.621743908509181,
"test_a": 9.46891721879173,
"test_b": -12.235471057150162,
"ref_a_norm": 0.5955357549396535,
"ref_b_norm": -0.8033288022898576,
"test_a_norm": 0.5584199776066906,
"test_b_norm": -0.721574739314593,
"Rcs_pct": -8.859644010777899,
"Rhs": 0.014559482828120671,
"Rf_h": 86.92319847697603
},
{
"bin": 15,
"ref_a": 19.375625526566203,
"ref_b": -12.816727310606495,
"test_a": 19.396926339699657,
"test_b": -13.718326675861016,
"ref_a_norm": 0.8340387274707728,
"ref_b_norm": -0.5517059008918918,
"test_a_norm": 0.8349556373819166,
"test_b_norm": -0.5905159401473626,
"Rcs_pct": 2.2324085280996906,
"Rhs": -0.03175996044020077,
"Rf_h": 92.65137595186246
},
{
"bin": 16,
"ref_a": 17.335351150569675,
"ref_b": -3.878218920081843,
"test_a": 16.437054724224215,
"test_b": -1.7062694369933484,
"ref_a_norm": 0.9758770911949222,
"ref_b_norm": -0.21832064236104093,
"test_a_norm": 0.9253083489780105,
"test_b_norm": -0.09605281372758045,
"Rcs_pct": -7.345034807516706,
"Rhs": 0.11005301438751473,
"Rf_h": 82.92767045128039
}
]
}
}