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.
435 lines
8.7 KiB
JSON
435 lines
8.7 KiB
JSON
{
|
|
"name": "illuminant_D50",
|
|
"source": "colour.SDS_ILLUMINANTS['D50'] (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.019,
|
|
1.035,
|
|
2.051,
|
|
4.914,
|
|
7.778,
|
|
11.263,
|
|
14.748,
|
|
16.348,
|
|
17.948,
|
|
19.479,
|
|
21.01,
|
|
22.476,
|
|
23.942,
|
|
25.451,
|
|
26.961,
|
|
25.724,
|
|
24.488,
|
|
27.179,
|
|
29.871,
|
|
39.589,
|
|
49.308,
|
|
52.91,
|
|
56.513,
|
|
58.273,
|
|
60.034,
|
|
58.926,
|
|
57.818,
|
|
66.321,
|
|
74.825,
|
|
81.036,
|
|
87.247,
|
|
88.93,
|
|
90.612,
|
|
90.99,
|
|
91.368,
|
|
93.238,
|
|
95.109,
|
|
93.536,
|
|
91.963,
|
|
93.843,
|
|
95.724,
|
|
96.169,
|
|
96.613,
|
|
96.871,
|
|
97.129,
|
|
99.614,
|
|
102.099,
|
|
101.427,
|
|
100.755,
|
|
101.536,
|
|
102.317,
|
|
101.159,
|
|
100.0,
|
|
98.868,
|
|
97.735,
|
|
98.327,
|
|
98.918,
|
|
96.208,
|
|
93.499,
|
|
95.593,
|
|
97.688,
|
|
98.478,
|
|
99.269,
|
|
99.155,
|
|
99.042,
|
|
97.382,
|
|
95.722,
|
|
97.29,
|
|
98.857,
|
|
97.262,
|
|
95.667,
|
|
96.929,
|
|
98.19,
|
|
100.597,
|
|
103.003,
|
|
101.068,
|
|
99.133,
|
|
93.257,
|
|
87.381,
|
|
89.492,
|
|
91.604,
|
|
92.246,
|
|
92.889,
|
|
84.872,
|
|
76.854,
|
|
81.683,
|
|
86.511,
|
|
89.546,
|
|
92.58,
|
|
85.405,
|
|
78.23,
|
|
67.961,
|
|
57.692,
|
|
70.307,
|
|
82.923,
|
|
80.599,
|
|
78.274
|
|
],
|
|
"expected": {
|
|
"Rf": 99.9832901493645,
|
|
"Rg": 99.99983345768199,
|
|
"CCT_K": 5001.067238721512,
|
|
"Duv": 0.003206776575092496,
|
|
"bins": [
|
|
{
|
|
"bin": 1,
|
|
"ref_a": 23.476902397290555,
|
|
"ref_b": 4.934814612361608,
|
|
"test_a": 23.475905619487904,
|
|
"test_b": 4.93343812288507,
|
|
"ref_a_norm": 0.9786143669015133,
|
|
"ref_b_norm": 0.20570347807937106,
|
|
"test_a_norm": 0.9785728170811079,
|
|
"test_b_norm": 0.20564610030632277,
|
|
"Rcs_pct": -0.005194530047760248,
|
|
"Rhs": -4.816930738548327e-05,
|
|
"Rf_h": 99.9839228703664
|
|
},
|
|
{
|
|
"bin": 2,
|
|
"ref_a": 17.83894735047625,
|
|
"ref_b": 12.025027476598268,
|
|
"test_a": 17.837367424860794,
|
|
"test_b": 12.025236710712873,
|
|
"ref_a_norm": 0.8291990350997083,
|
|
"ref_b_norm": 0.5589534508254805,
|
|
"test_a_norm": 0.8291255961926849,
|
|
"test_b_norm": 0.5589631765521466,
|
|
"Rcs_pct": -0.005565889532046267,
|
|
"Rhs": 4.888711686800449e-05,
|
|
"Rf_h": 99.98774482339923
|
|
},
|
|
{
|
|
"bin": 3,
|
|
"ref_a": 14.547664221552239,
|
|
"ref_b": 22.064293382121082,
|
|
"test_a": 14.546149429750127,
|
|
"test_b": 22.064842715001987,
|
|
"ref_a_norm": 0.550452873345259,
|
|
"ref_b_norm": 0.8348662373254462,
|
|
"test_a_norm": 0.5503955568243871,
|
|
"test_b_norm": 0.8348870229208595,
|
|
"Rcs_pct": -0.001456076189696359,
|
|
"Rhs": 5.920480347510379e-05,
|
|
"Rf_h": 99.98784937492641
|
|
},
|
|
{
|
|
"bin": 4,
|
|
"ref_a": 4.076717109026536,
|
|
"ref_b": 21.998266602307645,
|
|
"test_a": 4.076166231334031,
|
|
"test_b": 21.999789542951614,
|
|
"ref_a_norm": 0.18221734962954564,
|
|
"ref_b_norm": 0.9832582760872058,
|
|
"test_a_norm": 0.1821927270054062,
|
|
"test_b_norm": 0.9833263470865824,
|
|
"Rcs_pct": 0.006195939853868955,
|
|
"Rhs": 3.7429500509186814e-05,
|
|
"Rf_h": 99.98561707932677
|
|
},
|
|
{
|
|
"bin": 5,
|
|
"ref_a": -2.054258575968485,
|
|
"ref_b": 19.16102293825853,
|
|
"test_a": -2.055199500099042,
|
|
"test_b": 19.163108325017934,
|
|
"ref_a_norm": -0.1065993982477314,
|
|
"ref_b_norm": 0.9943020508342632,
|
|
"test_a_norm": -0.10664822459670595,
|
|
"test_b_norm": 0.9944102655333603,
|
|
"Rcs_pct": 0.01156609321421135,
|
|
"Rhs": 2.677652387631138e-05,
|
|
"Rf_h": 99.98120224919917
|
|
},
|
|
{
|
|
"bin": 6,
|
|
"ref_a": -10.828082553293017,
|
|
"ref_b": 17.50437009420907,
|
|
"test_a": -10.828354034540771,
|
|
"test_b": 17.5058653726995,
|
|
"ref_a_norm": -0.5260751363126394,
|
|
"ref_b_norm": 0.8504380935456959,
|
|
"test_a_norm": -0.526088326047176,
|
|
"test_b_norm": 0.8505107406493551,
|
|
"Rcs_pct": 0.006773168300435089,
|
|
"Rhs": -2.9393704846565135e-05,
|
|
"Rf_h": 99.98808734213112
|
|
},
|
|
{
|
|
"bin": 7,
|
|
"ref_a": -17.88444758203982,
|
|
"ref_b": 11.801800126314143,
|
|
"test_a": -17.88494337227294,
|
|
"test_b": 11.804004144841127,
|
|
"ref_a_norm": -0.8346509266584013,
|
|
"ref_b_norm": 0.5507792939356669,
|
|
"test_a_norm": -0.8346740647383227,
|
|
"test_b_norm": 0.550882153478713,
|
|
"Rcs_pct": 0.007638431063998727,
|
|
"Rhs": -7.266975592455702e-05,
|
|
"Rf_h": 99.98452357318033
|
|
},
|
|
{
|
|
"bin": 8,
|
|
"ref_a": -22.255349205247978,
|
|
"ref_b": 4.3023968277173275,
|
|
"test_a": -22.255179526855017,
|
|
"test_b": 4.304878130428077,
|
|
"ref_a_norm": -0.9818217199390649,
|
|
"ref_b_norm": 0.18980545370430352,
|
|
"test_a_norm": -0.9818142343709851,
|
|
"test_b_norm": 0.18991491938254068,
|
|
"Rcs_pct": 0.0014013959428971934,
|
|
"Rhs": -0.00010882268781150778,
|
|
"Rf_h": 99.98325074316794
|
|
},
|
|
{
|
|
"bin": 9,
|
|
"ref_a": -18.6309347775359,
|
|
"ref_b": -2.5538984750008566,
|
|
"test_a": -18.63161578440114,
|
|
"test_b": -2.5509714932484395,
|
|
"ref_a_norm": -0.9907351240732684,
|
|
"ref_b_norm": -0.13580837208186233,
|
|
"test_a_norm": -0.9907713378987788,
|
|
"test_b_norm": -0.13565272430228137,
|
|
"Rcs_pct": 0.0005152611568235503,
|
|
"Rhs": -0.0001597220180207308,
|
|
"Rf_h": 99.97953815977952
|
|
},
|
|
{
|
|
"bin": 10,
|
|
"ref_a": -19.80275334617307,
|
|
"ref_b": -11.994426214565234,
|
|
"test_a": -19.80450778099068,
|
|
"test_b": -11.991341290613356,
|
|
"ref_a_norm": -0.8553364599157997,
|
|
"ref_b_norm": -0.5180729102536704,
|
|
"test_a_norm": -0.8554122388764227,
|
|
"test_b_norm": -0.5179396637355735,
|
|
"Rcs_pct": -0.0011019896098213666,
|
|
"Rhs": -0.0001528909655539891,
|
|
"Rf_h": 99.97563020595287
|
|
},
|
|
{
|
|
"bin": 11,
|
|
"ref_a": -12.900334771940969,
|
|
"ref_b": -19.322573550217715,
|
|
"test_a": -12.902268902100746,
|
|
"test_b": -19.319823265146887,
|
|
"ref_a_norm": -0.5552548884177753,
|
|
"ref_b_norm": -0.831680232353856,
|
|
"test_a_norm": -0.5553381370500812,
|
|
"test_b_norm": -0.8315618548654329,
|
|
"Rcs_pct": -0.00521768223557674,
|
|
"Rhs": -0.00013498571685560063,
|
|
"Rf_h": 99.97759787759166
|
|
},
|
|
{
|
|
"bin": 12,
|
|
"ref_a": -3.128242899681709,
|
|
"ref_b": -20.746804281216868,
|
|
"test_a": -3.1295228205293357,
|
|
"test_b": -20.746724255192817,
|
|
"ref_a_norm": -0.14909657211816565,
|
|
"ref_b_norm": -0.9888226393962734,
|
|
"test_a_norm": -0.1491575749932887,
|
|
"test_b_norm": -0.9888188252404521,
|
|
"Rcs_pct": 0.000816020266496709,
|
|
"Rhs": -6.057482687032535e-05,
|
|
"Rf_h": 99.99161741874514
|
|
},
|
|
{
|
|
"bin": 13,
|
|
"ref_a": 2.7176102058558462,
|
|
"ref_b": -15.57869260910705,
|
|
"test_a": 2.7162101579268594,
|
|
"test_b": -15.578861662878905,
|
|
"ref_a_norm": 0.17184890000570494,
|
|
"ref_b_norm": -0.9851233199791939,
|
|
"test_a_norm": 0.17176036755317248,
|
|
"test_b_norm": -0.985134010145382,
|
|
"Rcs_pct": -0.0006787067031015733,
|
|
"Rhs": -8.891687424588761e-05,
|
|
"Rf_h": 99.98804851663168
|
|
},
|
|
{
|
|
"bin": 14,
|
|
"ref_a": 13.613424128801427,
|
|
"ref_b": -17.947106267304473,
|
|
"test_a": 13.611478159638267,
|
|
"test_b": -17.948211404985702,
|
|
"ref_a_norm": 0.604340777156097,
|
|
"ref_b_norm": -0.7967259410025287,
|
|
"test_a_norm": 0.6042543897413468,
|
|
"test_b_norm": -0.7967750013828429,
|
|
"Rcs_pct": -0.0007202060743431581,
|
|
"Rhs": -9.908499717342722e-05,
|
|
"Rf_h": 99.983547959729
|
|
},
|
|
{
|
|
"bin": 15,
|
|
"ref_a": 12.877324738057629,
|
|
"ref_b": -8.259933165250223,
|
|
"test_a": 12.875106255916956,
|
|
"test_b": -8.259244789845068,
|
|
"ref_a_norm": 0.8417235542388836,
|
|
"ref_b_norm": -0.5399087499193371,
|
|
"test_a_norm": 0.8415785436322205,
|
|
"test_b_norm": -0.5398637544094417,
|
|
"Rcs_pct": -0.014557007881929485,
|
|
"Rhs": -4.315117736605328e-05,
|
|
"Rf_h": 99.9762059950624
|
|
},
|
|
{
|
|
"bin": 16,
|
|
"ref_a": 22.83244776608982,
|
|
"ref_b": -4.132109648046074,
|
|
"test_a": 22.831096464131445,
|
|
"test_b": -4.133082083208234,
|
|
"ref_a_norm": 0.9840155542122202,
|
|
"ref_b_norm": -0.17808253442832928,
|
|
"test_a_norm": 0.9839573168230843,
|
|
"test_b_norm": -0.17812444370300848,
|
|
"Rcs_pct": -0.004894228014100552,
|
|
"Rhs": -5.246555071765966e-05,
|
|
"Rf_h": 99.98547585324518
|
|
}
|
|
]
|
|
}
|
|
} |