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

403 lines
8.2 KiB
JSON

{
"name": "illuminant_FL6",
"source": "colour.SDS_ILLUMINANTS['FL6'] (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": [
1.05,
1.31,
1.63,
1.9,
3.11,
14.8,
3.43,
3.3,
3.68,
4.07,
4.45,
32.61,
10.74,
5.48,
5.78,
6.03,
6.25,
6.41,
6.52,
6.58,
6.59,
6.56,
6.56,
6.42,
6.28,
6.2,
6.19,
6.3,
6.6,
7.12,
7.94,
9.07,
10.49,
25.22,
17.46,
15.63,
17.22,
18.53,
19.43,
21.97,
23.01,
19.41,
18.56,
17.42,
16.09,
14.64,
13.15,
11.68,
10.25,
8.95,
7.74,
6.69,
5.71,
4.87,
4.16,
3.55,
3.02,
2.57,
2.2,
1.87,
1.6,
1.37,
1.29,
1.05,
0.91,
0.81,
0.71,
0.61,
0.54,
0.48,
0.44,
0.43,
0.4,
0.37,
0.38,
0.35,
0.39,
0.41,
0.33,
0.26,
0.21
],
"expected": {
"Rf": 66.61433558039634,
"Rg": 83.5112774593122,
"CCT_K": 4148.934694024666,
"Duv": 0.006102207908591839,
"bins": [
{
"bin": 1,
"ref_a": 21.47438287073422,
"ref_b": 4.959011365891934,
"test_a": 15.636479799992552,
"test_b": 3.156525498251128,
"ref_a_norm": 0.9743575380345323,
"ref_b_norm": 0.22500530677138497,
"test_a_norm": 0.7094742630397428,
"test_b_norm": 0.14322108494259322,
"Rcs_pct": -27.5748927312308,
"Rhs": -0.028536597523491383,
"Rf_h": 55.80261150080031
},
{
"bin": 2,
"ref_a": 20.634410044667813,
"ref_b": 14.335877861928793,
"test_a": 14.430262907979595,
"test_b": 14.64117477936148,
"ref_a_norm": 0.8212501165635109,
"ref_b_norm": 0.5705683535251668,
"test_a_norm": 0.5743248810877807,
"test_b_norm": 0.5827191796687455,
"Rcs_pct": -19.856019249675136,
"Rhs": 0.14728735331442863,
"Rf_h": 57.442299857927814
},
{
"bin": 3,
"ref_a": 14.626967481311295,
"ref_b": 22.284177992890204,
"test_a": 7.273158234881256,
"test_b": 23.89911583119115,
"ref_a_norm": 0.5487344680091519,
"ref_b_norm": 0.8359967007223851,
"test_a_norm": 0.2728544122261326,
"test_b_norm": 0.8965815113948756,
"Rcs_pct": -10.289631783555418,
"Rhs": 0.26304500040667567,
"Rf_h": 48.4290067588813
},
{
"bin": 4,
"ref_a": 3.803852978366538,
"ref_b": 22.119867303351143,
"test_a": -0.6738627108643154,
"test_b": 24.2355900406971,
"ref_a_norm": 0.16947780061068565,
"ref_b_norm": 0.9855340050450642,
"test_a_norm": -0.030023444859817037,
"test_b_norm": 1.0797984359435975,
"Rcs_pct": 5.353240406940984,
"Rhs": 0.21405796315824263,
"Rf_h": 65.66916012077391
},
{
"bin": 5,
"ref_a": -2.203424500140753,
"ref_b": 19.13359885373665,
"test_a": -4.490707969743655,
"test_b": 20.940022955803343,
"ref_a_norm": -0.11440385819558045,
"ref_b_norm": 0.9934343245680438,
"test_a_norm": -0.2331617524156139,
"test_b_norm": 1.087225551270259,
"Rcs_pct": 11.515757040583875,
"Rhs": 0.09817823396306985,
"Rf_h": 78.1844742137563
},
{
"bin": 6,
"ref_a": -11.134104339446427,
"ref_b": 17.190445613048706,
"test_a": -10.273665145868407,
"test_b": 18.794523423065478,
"ref_a_norm": -0.5436254905391797,
"ref_b_norm": 0.8393279013806441,
"test_a_norm": -0.5016143269621691,
"test_b_norm": 0.9176474104985851,
"Rcs_pct": 4.178013994411565,
"Rhs": -0.07844299382239116,
"Rf_h": 86.2920166450318
},
{
"bin": 7,
"ref_a": -18.217449470654927,
"ref_b": 11.283667993942686,
"test_a": -14.832305220655579,
"test_b": 12.657305901779996,
"ref_a_norm": -0.85013564942941,
"ref_b_norm": 0.5265637450197606,
"test_a_norm": -0.6921644795342441,
"test_b_norm": 0.5906659431206095,
"Rcs_pct": -9.573495425175574,
"Rhs": -0.14106310947169023,
"Rf_h": 73.13396792425401
},
{
"bin": 8,
"ref_a": -22.76745356894645,
"ref_b": 3.624782376023594,
"test_a": -18.36864096324274,
"test_b": 5.093786991561544,
"ref_a_norm": -0.9875622119352324,
"ref_b_norm": 0.15722874278449034,
"test_a_norm": -0.7967590949497451,
"test_b_norm": 0.2209483609258201,
"Rcs_pct": -17.470580777248475,
"Rhs": -0.09971910508031064,
"Rf_h": 67.8662600334712
},
{
"bin": 9,
"ref_a": -19.355854829182498,
"ref_b": -2.0999626619016887,
"test_a": -15.393091256960593,
"test_b": -1.4699482209071788,
"ref_a_norm": -0.9941661529449654,
"ref_b_norm": -0.10785944714584565,
"test_a_norm": -0.7906284920979455,
"test_b_norm": -0.07550029594168577,
"Rcs_pct": -20.593969899505012,
"Rhs": 0.007970848609672142,
"Rf_h": 71.90117873538085
},
{
"bin": 10,
"ref_a": -20.160065800004045,
"ref_b": -11.235040792360143,
"test_a": -14.06996666906654,
"test_b": -12.665921339567078,
"ref_a_norm": -0.8735126284537527,
"ref_b_norm": -0.48680148719145905,
"test_a_norm": -0.6096355879627406,
"test_b_norm": -0.5487999072459125,
"Rcs_pct": -18.496126387610495,
"Rhs": 0.1981520311601613,
"Rf_h": 55.477195148736804
},
{
"bin": 11,
"ref_a": -12.101017525818357,
"ref_b": -17.33599921224681,
"test_a": -7.618906108544666,
"test_b": -19.086860081639283,
"ref_a_norm": -0.5723767399664063,
"ref_b_norm": -0.8199907728416393,
"test_a_norm": -0.36037338440463257,
"test_b_norm": -0.9028062909928569,
"Rcs_pct": -4.892416688056499,
"Rhs": 0.22228418457269764,
"Rf_h": 64.92074600291897
},
{
"bin": 12,
"ref_a": -5.407439678165485,
"ref_b": -23.67124778576976,
"test_a": -2.5041957450768906,
"test_b": -25.509047437903305,
"ref_a_norm": -0.22270224417716003,
"ref_b_norm": -0.974886511568632,
"test_a_norm": -0.1031338388367782,
"test_b_norm": -1.0505752166189668,
"Rcs_pct": 5.0907729105339845,
"Rhs": 0.13203706580038707,
"Rf_h": 73.76205230717126
},
{
"bin": 13,
"ref_a": 3.6287582362270157,
"ref_b": -15.357617437694259,
"test_a": 2.742176943630915,
"test_b": -17.43542962674284,
"ref_a_norm": 0.22995198922234197,
"ref_b_norm": -0.9732019742338628,
"test_a_norm": 0.17376992401764466,
"test_b_norm": -1.1048715468529904,
"Rcs_pct": 11.817900150950909,
"Rhs": -0.08079000189741321,
"Rf_h": 80.14739558179907
},
{
"bin": 14,
"ref_a": 13.958677200003653,
"ref_b": -18.620643741125384,
"test_a": 11.692762762303158,
"test_b": -22.166890046583916,
"ref_a_norm": 0.5998128213342788,
"ref_b_norm": -0.800140349790593,
"test_a_norm": 0.5024451043002568,
"test_b_norm": -0.9525247033468732,
"Rcs_pct": 7.260835413123608,
"Rhs": -0.1656185087468662,
"Rf_h": 67.66290059755661
},
{
"bin": 15,
"ref_a": 15.355796646481554,
"ref_b": -11.071054438311299,
"test_a": 11.214658778960198,
"test_b": -14.875790937487771,
"ref_a_norm": 0.8111614336950944,
"ref_b_norm": -0.5848223050514737,
"test_a_norm": 0.5924081246300554,
"test_b_norm": -0.7858053985734362,
"Rcs_pct": -7.022650497720961,
"Rhs": -0.2886441617411452,
"Rf_h": 59.9922503313349
},
{
"bin": 16,
"ref_a": 20.06416845530512,
"ref_b": -3.632426485094434,
"test_a": 15.723384973455486,
"test_b": -6.75077887412359,
"ref_a_norm": 0.9840043190754723,
"ref_b_norm": -0.17814460429891285,
"test_a_norm": 0.7711198577121045,
"test_b_norm": -0.3310775417410663,
"Rcs_pct": -17.895821011929915,
"Rhs": -0.19152607205170172,
"Rf_h": 61.42080507539294
}
]
}
}