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.
403 lines
8.2 KiB
JSON
403 lines
8.2 KiB
JSON
{
|
|
"name": "illuminant_LED_V2",
|
|
"source": "colour.SDS_ILLUMINANTS['LED-V2'] (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.06,
|
|
0.26,
|
|
1.15,
|
|
4.47,
|
|
11.98,
|
|
19.89,
|
|
20.24,
|
|
14.39,
|
|
8.95,
|
|
5.78,
|
|
4.65,
|
|
4.86,
|
|
5.78,
|
|
6.97,
|
|
8.1,
|
|
9.05,
|
|
9.82,
|
|
10.52,
|
|
11.21,
|
|
11.87,
|
|
12.5,
|
|
12.98,
|
|
13.23,
|
|
13.3,
|
|
13.21,
|
|
13.05,
|
|
12.88,
|
|
12.74,
|
|
12.68,
|
|
12.7,
|
|
12.77,
|
|
12.91,
|
|
13.04,
|
|
13.16,
|
|
13.26,
|
|
13.35,
|
|
13.42,
|
|
13.52,
|
|
13.64,
|
|
13.83,
|
|
14.07,
|
|
14.42,
|
|
14.82,
|
|
15.26,
|
|
15.64,
|
|
16.03,
|
|
16.4,
|
|
16.67,
|
|
16.88,
|
|
16.93,
|
|
16.85,
|
|
16.62,
|
|
16.23,
|
|
15.72,
|
|
15.07,
|
|
14.31,
|
|
13.45,
|
|
12.57,
|
|
11.64,
|
|
10.69,
|
|
9.78,
|
|
8.87,
|
|
8.0,
|
|
7.17,
|
|
6.37,
|
|
5.65,
|
|
5.01,
|
|
4.42,
|
|
3.88,
|
|
3.39,
|
|
2.95,
|
|
2.58,
|
|
2.24,
|
|
1.95,
|
|
1.7,
|
|
1.47,
|
|
1.3,
|
|
1.1,
|
|
0.96,
|
|
0.84
|
|
],
|
|
"expected": {
|
|
"Rf": 94.13034422268701,
|
|
"Rg": 99.35726071554775,
|
|
"CCT_K": 4072.0031708244155,
|
|
"Duv": 0.0009839134171622573,
|
|
"bins": [
|
|
{
|
|
"bin": 1,
|
|
"ref_a": 21.5060867171481,
|
|
"ref_b": 5.007649330915021,
|
|
"test_a": 21.557581923302045,
|
|
"test_b": 5.208036801982339,
|
|
"ref_a_norm": 0.973945705154785,
|
|
"ref_b_norm": 0.2267813118635409,
|
|
"test_a_norm": 0.9762777674927324,
|
|
"test_b_norm": 0.23585625512865963,
|
|
"Rcs_pct": 0.40576860179117874,
|
|
"Rhs": 0.008445607982451024,
|
|
"Rf_h": 96.38391861015214
|
|
},
|
|
{
|
|
"bin": 2,
|
|
"ref_a": 20.630920648407702,
|
|
"ref_b": 14.380110712747545,
|
|
"test_a": 21.036284334360513,
|
|
"test_b": 14.393706475244537,
|
|
"ref_a_norm": 0.8203798075987003,
|
|
"ref_b_norm": 0.5718190022063968,
|
|
"test_a_norm": 0.836498922608487,
|
|
"test_b_norm": 0.5723596319345374,
|
|
"Rcs_pct": 1.37029120918879,
|
|
"Rhs": -0.008505783291600615,
|
|
"Rf_h": 96.61477906598672
|
|
},
|
|
{
|
|
"bin": 3,
|
|
"ref_a": 14.622294834728901,
|
|
"ref_b": 22.303904625594615,
|
|
"test_a": 15.127811319217063,
|
|
"test_b": 22.10561841543097,
|
|
"ref_a_norm": 0.5482726226863643,
|
|
"ref_b_norm": 0.8362996659168385,
|
|
"test_a_norm": 0.5672272978515265,
|
|
"test_b_norm": 0.8288647932297719,
|
|
"Rcs_pct": 0.434878258768598,
|
|
"Rhs": -0.01989083036212275,
|
|
"Rf_h": 95.69314220880628
|
|
},
|
|
{
|
|
"bin": 4,
|
|
"ref_a": 3.769770709177344,
|
|
"ref_b": 22.127817724956213,
|
|
"test_a": 4.219662830874597,
|
|
"test_b": 22.165617201936684,
|
|
"ref_a_norm": 0.1679436790236388,
|
|
"ref_b_norm": 0.9857965919377105,
|
|
"test_a_norm": 0.18798642005763544,
|
|
"test_b_norm": 0.987480562587123,
|
|
"Rcs_pct": 0.5561758427983128,
|
|
"Rhs": -0.019329099008818133,
|
|
"Rf_h": 95.18000601010866
|
|
},
|
|
{
|
|
"bin": 5,
|
|
"ref_a": -2.217523432762202,
|
|
"ref_b": 19.124082564681437,
|
|
"test_a": -2.10661583016451,
|
|
"test_b": 19.284154879390456,
|
|
"ref_a_norm": -0.11518274385686728,
|
|
"ref_b_norm": 0.9933443187120985,
|
|
"test_a_norm": -0.10942197407511271,
|
|
"test_b_norm": 1.0016588051122437,
|
|
"Rcs_pct": 0.7030855443592059,
|
|
"Rhs": -0.007272154034939679,
|
|
"Rf_h": 95.81532579603898
|
|
},
|
|
{
|
|
"bin": 6,
|
|
"ref_a": -11.157340095902983,
|
|
"ref_b": 17.152251674891072,
|
|
"test_a": -11.33149120032817,
|
|
"test_b": 17.00371406149607,
|
|
"ref_a_norm": -0.5452761023870739,
|
|
"ref_b_norm": 0.8382565073803849,
|
|
"test_a_norm": -0.5537871305202254,
|
|
"test_b_norm": 0.8309972493319863,
|
|
"Rcs_pct": -0.13073785919348146,
|
|
"Rhs": 0.011109688947665881,
|
|
"Rf_h": 96.96149806443553
|
|
},
|
|
{
|
|
"bin": 7,
|
|
"ref_a": -18.237593596836113,
|
|
"ref_b": 11.222035534667716,
|
|
"test_a": -18.664431924418686,
|
|
"test_b": 11.310144313459473,
|
|
"ref_a_norm": -0.8516812234756594,
|
|
"ref_b_norm": 0.5240602003386672,
|
|
"test_a_norm": -0.8716142364102659,
|
|
"test_b_norm": 0.5281748107515961,
|
|
"Rcs_pct": 1.885964960265469,
|
|
"Rhs": 0.007653015116047939,
|
|
"Rf_h": 96.48888368661963
|
|
},
|
|
{
|
|
"bin": 8,
|
|
"ref_a": -22.806196021133083,
|
|
"ref_b": 3.54697595002376,
|
|
"test_a": -23.33073606006459,
|
|
"test_b": 3.7733062482550697,
|
|
"ref_a_norm": -0.988120775782414,
|
|
"ref_b_norm": 0.15367931697909307,
|
|
"test_a_norm": -1.0108474466273745,
|
|
"test_b_norm": 0.1634854972672986,
|
|
"Rcs_pct": 2.4203075107480765,
|
|
"Rhs": -0.005184003750154394,
|
|
"Rf_h": 95.66959381950386
|
|
},
|
|
{
|
|
"bin": 9,
|
|
"ref_a": -19.359967811921063,
|
|
"ref_b": -2.1647198155949408,
|
|
"test_a": -19.99812391779566,
|
|
"test_b": -1.5967133632439834,
|
|
"ref_a_norm": -0.9938068017864939,
|
|
"ref_b_norm": -0.11112173830038952,
|
|
"test_a_norm": -1.0265653210557895,
|
|
"test_b_norm": -0.0819642168990673,
|
|
"Rcs_pct": 2.644072326775447,
|
|
"Rhs": -0.03498813787647739,
|
|
"Rf_h": 94.02468783317269
|
|
},
|
|
{
|
|
"bin": 10,
|
|
"ref_a": -20.12481056130306,
|
|
"ref_b": -11.305332729571061,
|
|
"test_a": -21.109820983356716,
|
|
"test_b": -10.460363966002118,
|
|
"ref_a_norm": -0.8718507259643083,
|
|
"ref_b_norm": -0.48977169337917903,
|
|
"test_a_norm": -0.9145235277247978,
|
|
"test_b_norm": -0.45316580197509876,
|
|
"Rcs_pct": 1.5143994318402398,
|
|
"Rhs": -0.054144424751414046,
|
|
"Rf_h": 91.08164683152931
|
|
},
|
|
{
|
|
"bin": 11,
|
|
"ref_a": -12.0299229068276,
|
|
"ref_b": -17.37361268314809,
|
|
"test_a": -13.395555882028669,
|
|
"test_b": -16.174749123322908,
|
|
"ref_a_norm": -0.5692751459445191,
|
|
"ref_b_norm": -0.8221470721287321,
|
|
"test_a_norm": -0.6338990772269889,
|
|
"test_b_norm": -0.7654149356659371,
|
|
"Rcs_pct": -1.1267914948570674,
|
|
"Rhs": -0.0852515213632363,
|
|
"Rf_h": 87.63501102287803
|
|
},
|
|
{
|
|
"bin": 12,
|
|
"ref_a": -5.321142286273294,
|
|
"ref_b": -23.68114067834624,
|
|
"test_a": -6.619848530473959,
|
|
"test_b": -22.884465322297572,
|
|
"ref_a_norm": -0.21923319531172367,
|
|
"ref_b_norm": -0.9756724891444933,
|
|
"test_a_norm": -0.27274041319271836,
|
|
"test_b_norm": -0.9428491451074037,
|
|
"Rcs_pct": -2.175391231859829,
|
|
"Rhs": -0.058882608450850145,
|
|
"Rf_h": 89.51290258211499
|
|
},
|
|
{
|
|
"bin": 13,
|
|
"ref_a": 3.7226296360305824,
|
|
"ref_b": -15.335302892174731,
|
|
"test_a": 2.9233589985441455,
|
|
"test_b": -14.868166402903348,
|
|
"ref_a_norm": 0.23589810067345363,
|
|
"ref_b_norm": -0.9717777966688975,
|
|
"test_a_norm": 0.18524938088618065,
|
|
"test_b_norm": -0.9421759771626502,
|
|
"Rcs_pct": -3.8914103897884287,
|
|
"Rhs": -0.043900490338888085,
|
|
"Rf_h": 93.24110412552977
|
|
},
|
|
{
|
|
"bin": 14,
|
|
"ref_a": 14.076555709238233,
|
|
"ref_b": -18.560229885620448,
|
|
"test_a": 13.888209363138756,
|
|
"test_b": -18.077244948739335,
|
|
"ref_a_norm": 0.6042878763662225,
|
|
"ref_b_norm": -0.7967660650886187,
|
|
"test_a_norm": 0.5962024174047597,
|
|
"test_b_norm": -0.7760321620051238,
|
|
"Rcs_pct": -2.1731650677642342,
|
|
"Rhs": 0.0047963259395274686,
|
|
"Rf_h": 95.91225919335012
|
|
},
|
|
{
|
|
"bin": 15,
|
|
"ref_a": 15.444352398883035,
|
|
"ref_b": -11.008382636531257,
|
|
"test_a": 15.035474112391139,
|
|
"test_b": -10.290067980568562,
|
|
"ref_a_norm": 0.8143140573366874,
|
|
"ref_b_norm": -0.5804245136310683,
|
|
"test_a_norm": 0.7927556696600264,
|
|
"test_b_norm": -0.5425508814557436,
|
|
"Rcs_pct": -3.896660689632505,
|
|
"Rhs": 0.01951357579625696,
|
|
"Rf_h": 93.84954376149082
|
|
},
|
|
{
|
|
"bin": 16,
|
|
"ref_a": 20.116352896451094,
|
|
"ref_b": -3.5647524053199855,
|
|
"test_a": 19.769486951738866,
|
|
"test_b": -2.604852923991758,
|
|
"ref_a_norm": 0.9846592625997848,
|
|
"ref_b_norm": -0.17448821328802738,
|
|
"test_a_norm": 0.9676807990035543,
|
|
"test_b_norm": -0.12750286160326374,
|
|
"Rcs_pct": -2.5818614569266516,
|
|
"Rhs": 0.04277020739665758,
|
|
"Rf_h": 92.45699411917165
|
|
}
|
|
]
|
|
}
|
|
} |