Files
lamp-testbench/crates/tm30/tests/golden/daylight_10000K.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

455 lines
9.4 KiB
JSON

{
"name": "daylight_10000K",
"source": "sd_CIE_illuminant_D_series(CCT_to_xy_CIE_D(10000*1.4388/1.4380))",
"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,
785.0,
790.0,
795.0,
800.0,
805.0,
810.0,
815.0,
820.0,
825.0,
830.0
],
"values": [
0.06008,
4.92104,
9.782,
30.199800000000003,
50.6176,
72.4788,
94.33999999999999,
94.76599999999999,
95.192,
98.1464,
101.1008,
99.40119999999999,
97.7016,
103.41320000000002,
109.1248,
105.03739999999999,
100.95,
100.72419999999998,
100.4984,
119.6384,
138.7784,
145.1238,
151.4692,
150.8512,
150.2332,
142.3616,
134.49,
143.09679999999997,
151.7036,
157.2072,
162.7108,
160.9858,
159.2608,
154.7646,
150.26839999999999,
148.4612,
146.654,
140.4984,
134.34279999999998,
132.12980000000002,
129.9168,
127.22399999999999,
124.53119999999998,
120.0536,
115.576,
115.4342,
115.29239999999999,
112.49659999999999,
109.7008,
108.0594,
106.418,
103.209,
100.0,
97.16,
94.32000000000001,
92.861,
91.402,
88.1076,
84.8132,
84.1562,
83.4992,
82.53080000000001,
81.5624,
79.79919999999998,
78.036,
75.3106,
72.5852,
72.138,
71.6908,
70.08080000000001,
68.4708,
67.929,
67.38719999999999,
67.31240000000001,
67.23760000000001,
65.56479999999999,
63.892,
60.34479999999999,
56.7976,
57.105799999999995,
57.413999999999994,
58.8672,
60.32040000000001,
55.201,
50.081599999999995,
53.669200000000004,
57.256800000000005,
59.532,
61.807199999999995,
57.1504,
52.4936,
45.2244,
37.9552,
46.2936,
54.632,
53.343999999999994,
52.056,
52.4188,
52.7816,
50.843799999999995,
48.906000000000006,
45.9244,
42.94279999999999,
45.1304,
47.318,
48.4934,
49.6688
],
"expected": {
"Rf": 99.99210779924667,
"Rg": 100.00186042541752,
"CCT_K": 10001.55264159118,
"Duv": 0.00305309456192554,
"bins": [
{
"bin": 1,
"ref_a": 22.18838088403679,
"ref_b": 4.799264696646001,
"test_a": 22.188520710286628,
"test_b": 4.798446827645167,
"ref_a_norm": 0.9773979943072114,
"ref_b_norm": 0.21140757016776976,
"test_a_norm": 0.9774041536523596,
"test_b_norm": 0.21137154304505182,
"Rcs_pct": -9.875479140922549e-05,
"Rhs": -3.65365002854078e-05,
"Rf_h": 99.99314185101497
},
{
"bin": 2,
"ref_a": 21.90994680755508,
"ref_b": 13.492408657268621,
"test_a": 21.909653927911684,
"test_b": 13.492212320307129,
"ref_a_norm": 0.8514958325226968,
"ref_b_norm": 0.524361370808796,
"test_a_norm": 0.8514844502131926,
"test_b_norm": 0.5243537404797062,
"Rcs_pct": -0.0013703228180926522,
"Rhs": -2.0714426495737255e-08,
"Rf_h": 99.99620041852005
},
{
"bin": 3,
"ref_a": 12.787207145707102,
"ref_b": 19.296561081623867,
"test_a": 12.786917468422585,
"test_b": 19.296815372213008,
"ref_a_norm": 0.5523902498110285,
"ref_b_norm": 0.8335856356210258,
"test_a_norm": 0.55237773613969,
"test_b_norm": 0.8335966206344427,
"Rcs_pct": 0.00021814815453883758,
"Rhs": 1.650768392004511e-05,
"Rf_h": 99.99449203157278
},
{
"bin": 4,
"ref_a": 4.845979263670448,
"ref_b": 21.4548724836471,
"test_a": 4.845963979167345,
"test_b": 21.45494383353854,
"ref_a_norm": 0.22031843244807647,
"ref_b_norm": 0.9754280026345472,
"test_a_norm": 0.22031773755080575,
"test_b_norm": 0.9754312464982499,
"Rcs_pct": 0.0003045966038851729,
"Rhs": 1.3143914288665618e-06,
"Rf_h": 99.99342815569689
},
{
"bin": 5,
"ref_a": -1.9771713361437273,
"ref_b": 22.099668211917926,
"test_a": -1.9775837629732882,
"test_b": 22.10084386693833,
"ref_a_norm": -0.0891101930608291,
"ref_b_norm": 0.9960217736037007,
"test_a_norm": -0.08912878094632683,
"test_b_norm": 0.9960747598289843,
"Rcs_pct": 0.005559442638961152,
"Rhs": 7.893624737003795e-06,
"Rf_h": 99.98788014288363
},
{
"bin": 6,
"ref_a": -10.933143884607434,
"ref_b": 17.459252297941575,
"test_a": -10.933662599603819,
"test_b": 17.459837284710108,
"ref_a_norm": -0.530735686571021,
"ref_b_norm": 0.8475373920954679,
"test_a_norm": -0.5307608669365816,
"test_b_norm": 0.8475657895406593,
"Rcs_pct": 0.003760107430568532,
"Rhs": 5.159933548185024e-06,
"Rf_h": 99.99414432231491
},
{
"bin": 7,
"ref_a": -18.458653808432654,
"ref_b": 11.06047032852331,
"test_a": -18.459589860385137,
"test_b": 11.061053885283826,
"ref_a_norm": -0.8577946072914588,
"ref_b_norm": 0.5139926183338551,
"test_a_norm": -0.8578381066888319,
"test_b_norm": 0.5140197368793034,
"Rcs_pct": 0.005123468368302473,
"Rhs": 1.6187238646207667e-06,
"Rf_h": 99.99266475432061
},
{
"bin": 8,
"ref_a": -19.359818172583513,
"ref_b": 2.95690071064537,
"test_a": -19.36023911467728,
"test_b": 2.958306038150122,
"ref_a_norm": -0.9885363559636104,
"ref_b_norm": 0.15098302201964936,
"test_a_norm": -0.9885578497896235,
"test_b_norm": 0.15105477978710866,
"Rcs_pct": 0.003508007413392976,
"Rhs": -6.61857246404508e-05,
"Rf_h": 99.98993698744763
},
{
"bin": 9,
"ref_a": -17.34756228260965,
"ref_b": -4.0906645168098015,
"test_a": -17.348117812857765,
"test_b": -4.089429972734792,
"ref_a_norm": -0.9733059099746574,
"ref_b_norm": -0.22951166769557554,
"test_a_norm": -0.9733370786694199,
"test_b_norm": -0.22944240211089248,
"Rcs_pct": 0.0017056751811937037,
"Rhs": -7.401537659369243e-05,
"Rf_h": 99.99014828881192
},
{
"bin": 10,
"ref_a": -15.247579240244248,
"ref_b": -10.538936071737847,
"test_a": -15.248699801029943,
"test_b": -10.537044406837277,
"ref_a_norm": -0.8226232185175713,
"ref_b_norm": -0.5685868802177835,
"test_a_norm": -0.8226836739712239,
"test_b_norm": -0.56848482287187,
"Rcs_pct": -0.0006433150840366035,
"Rhs": -0.0001184448323123706,
"Rf_h": 99.98539300539889
},
{
"bin": 11,
"ref_a": -15.449477144532276,
"ref_b": -23.900159103111296,
"test_a": -15.450474632886824,
"test_b": -23.89840749058577,
"ref_a_norm": -0.5428714818687844,
"ref_b_norm": -0.8398157858563925,
"test_a_norm": -0.5429065321152177,
"test_b_norm": -0.8397542368163509,
"Rcs_pct": -0.0031703282882718188,
"Rhs": -6.333802933100343e-05,
"Rf_h": 99.98672712794286
},
{
"bin": 12,
"ref_a": -2.421484236018484,
"ref_b": -18.821977395974585,
"test_a": -2.421948161530651,
"test_b": -18.821848069451377,
"ref_a_norm": -0.12760031395796165,
"ref_b_norm": -0.9918256701042929,
"test_a_norm": -0.12762476055155295,
"test_b_norm": -0.9918188552323566,
"Rcs_pct": -0.0001914632267107102,
"Rhs": -2.5306374710897864e-05,
"Rf_h": 99.99524427837768
},
{
"bin": 13,
"ref_a": 3.2763903513870067,
"ref_b": -16.80036188663644,
"test_a": 3.2761280392280767,
"test_b": -16.800162845884355,
"ref_a_norm": 0.19141304936640335,
"ref_b_norm": -0.9815095743456886,
"test_a_norm": 0.19139772458368767,
"test_b_norm": -0.9814979460007056,
"Rcs_pct": -0.0014394626389645422,
"Rhs": -1.2761743745637245e-05,
"Rf_h": 99.99550495618061
},
{
"bin": 14,
"ref_a": 13.452165680845233,
"ref_b": -15.995505897616043,
"test_a": 13.451770491729658,
"test_b": -15.995843390143026,
"ref_a_norm": 0.6436391555120018,
"ref_b_norm": -0.7653291040407371,
"test_a_norm": 0.6436202470927441,
"test_b_norm": -0.7653452518796956,
"Rcs_pct": 0.00029214825054357135,
"Rhs": -2.4693034682405967e-05,
"Rf_h": 99.99310443491726
},
{
"bin": 15,
"ref_a": 13.41601592408982,
"ref_b": -7.809342321264181,
"test_a": 13.415642030323333,
"test_b": -7.809097749759966,
"ref_a_norm": 0.8642458256858581,
"ref_b_norm": -0.5030697295450893,
"test_a_norm": 0.8642217398373645,
"test_b_norm": -0.5030539745025495,
"Rcs_pct": -0.0028779683764082646,
"Rhs": -2.815413476524658e-07,
"Rf_h": 99.99700722994918
},
{
"bin": 16,
"ref_a": 25.331243453732935,
"ref_b": -3.6577874837770095,
"test_a": 25.33120087985063,
"test_b": -3.6585851285175033,
"ref_a_norm": 0.9897348234650585,
"ref_b_norm": -0.1429159865815921,
"test_a_norm": 0.9897331600309691,
"test_b_norm": -0.1429471519200747,
"Rcs_pct": 0.00044485842505622347,
"Rhs": -3.0891025134651155e-05,
"Rf_h": 99.99422981302662
}
]
}
}