Files
lamp-testbench/crates/tm30/tests/golden/illuminant_HP4.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_HP4",
"source": "colour.SDS_ILLUMINANTS['HP4'] (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": [
9.8,
13.3,
19.97,
25.81,
24.69,
47.66,
54.44,
63.82,
85.52,
60.54,
38.37,
88.2,
44.94,
35.64,
30.75,
33.77,
40.81,
33.77,
35.28,
32.55,
29.44,
26.16,
29.96,
32.83,
33.58,
41.16,
32.93,
32.13,
34.45,
30.12,
41.13,
187.1,
101.37,
123.96,
42.47,
34.73,
31.82,
54.67,
57.45,
70.43,
69.5,
49.37,
183.35,
162.15,
109.35,
72.38,
70.6,
58.08,
44.13,
50.2,
40.8,
37.91,
36.71,
38.3,
31.24,
35.31,
45.62,
35.82,
89.91,
36.01,
32.57,
39.26,
23.27,
25.3,
20.02,
17.54,
16.25,
15.2,
15.15,
15.22,
14.26,
12.63,
14.75,
13.19,
17.63,
23.38,
16.02,
24.46,
22.05,
16.11,
12.91
],
"expected": {
"Rf": 77.92180095237877,
"Rg": 95.18060785813896,
"CCT_K": 4004.3137022276496,
"Duv": 0.0011935445188656327,
"bins": [
{
"bin": 1,
"ref_a": 21.53266990175657,
"ref_b": 5.051236578198079,
"test_a": 18.042550574326377,
"test_b": 3.8506650316995543,
"ref_a_norm": 0.9735709166482328,
"ref_b_norm": 0.22838491687657425,
"test_a_norm": 0.8157698316773097,
"test_b_norm": 0.1741026775463273,
"Rcs_pct": -16.53589209218352,
"Rhs": -0.02245375684095971,
"Rf_h": 72.71866664729811
},
{
"bin": 2,
"ref_a": 20.625435277575367,
"ref_b": 14.41961359102568,
"test_a": 17.135202027850344,
"test_b": 14.969777026415722,
"ref_a_norm": 0.8195713665445541,
"ref_b_norm": 0.5729771157212931,
"test_a_norm": 0.680883615447907,
"test_b_norm": 0.5948383851925703,
"Rcs_pct": -10.316918006117925,
"Rhs": 0.09522776744545318,
"Rf_h": 75.86420397041186
},
{
"bin": 3,
"ref_a": 14.615807059674609,
"ref_b": 22.32106404319544,
"test_a": 10.219754828166302,
"test_b": 23.723931092970446,
"ref_a_norm": 0.5478075748448216,
"ref_b_norm": 0.8366043634494356,
"test_a_norm": 0.38304139381893815,
"test_b_norm": 0.8891845044727301,
"Rcs_pct": -4.7820396114848185,
"Rhs": 0.1662100338586776,
"Rf_h": 68.4882427346622
},
{
"bin": 4,
"ref_a": 3.7379162592152007,
"ref_b": 22.134070046312743,
"test_a": 0.32390757090095523,
"test_b": 24.310769493817116,
"ref_a_norm": 0.16651834909804764,
"ref_b_norm": 0.9860383559546052,
"test_a_norm": 0.014429577932307718,
"test_b_norm": 1.083006927036816,
"Rcs_pct": 6.543429983740519,
"Rhs": 0.1680840578318453,
"Rf_h": 71.70124466359772
},
{
"bin": 5,
"ref_a": -2.2300617056765133,
"ref_b": 19.114238823610535,
"test_a": -4.799123611250504,
"test_b": 21.456191963102437,
"ref_a_norm": -0.11588414346765415,
"ref_b_norm": 0.9932627372919856,
"test_a_norm": -0.24938427832267004,
"test_b_norm": 1.114961268288047,
"Rcs_pct": 14.540471214569491,
"Rhs": 0.10719276159673449,
"Rf_h": 75.52271214939815
},
{
"bin": 6,
"ref_a": -11.176808986056272,
"ref_b": 17.11679924042796,
"test_a": -11.97091865692345,
"test_b": 19.076143292807,
"ref_a_norm": -0.5467371572577343,
"ref_b_norm": 0.8373042940733862,
"test_a_norm": -0.5855827047250344,
"test_b_norm": 0.9331497360617041,
"Rcs_pct": 10.127400234917468,
"Rhs": -0.020949982247000325,
"Rf_h": 84.39338804668948
},
{
"bin": 7,
"ref_a": -18.25315595150376,
"ref_b": 11.165047316455624,
"test_a": -17.665087710318076,
"test_b": 13.598724279711059,
"ref_a_norm": -0.8530667263605539,
"ref_b_norm": 0.5218018401428725,
"test_a_norm": -0.825583180462095,
"test_b_norm": 0.6355404640597065,
"Rcs_pct": 4.033806053991363,
"Rhs": -0.10983924953096671,
"Rf_h": 83.00459548412206
},
{
"bin": 8,
"ref_a": -22.83849639564624,
"ref_b": 3.4754719633308637,
"test_a": -21.384823555568886,
"test_b": 5.781645899242716,
"ref_a_norm": -0.9886185244526211,
"ref_b_norm": 0.15044405308659506,
"test_a_norm": -0.9256928452267292,
"test_b_norm": 0.25027226568674227,
"Rcs_pct": -4.224106180167285,
"Rhs": -0.11018623251045155,
"Rf_h": 81.54408233687654
},
{
"bin": 9,
"ref_a": -19.3611082232335,
"ref_b": -2.224848866295984,
"test_a": -17.977024052483348,
"test_b": -0.17133700011739889,
"ref_a_norm": -0.9934621453912715,
"ref_b_norm": -0.11416201502501615,
"test_a_norm": -0.9224416638247519,
"test_b_norm": -0.008791688045897804,
"Rcs_pct": -9.021257394889235,
"Rhs": -0.08949025707384185,
"Rf_h": 82.82488995700996
},
{
"bin": 10,
"ref_a": -20.08968837419721,
"ref_b": -11.370972401841597,
"test_a": -16.81318695426473,
"test_b": -10.572818714159842,
"ref_a_norm": -0.8702670559277351,
"ref_b_norm": -0.4925801979037244,
"test_a_norm": -0.7283319899697184,
"test_b_norm": -0.4580049049963041,
"Rcs_pct": -13.722369780154487,
"Rhs": 0.0501065922789682,
"Rf_h": 76.0152062906534
},
{
"bin": 11,
"ref_a": -11.962746174062092,
"ref_b": -17.409211532655025,
"test_a": -9.520598383665138,
"test_b": -17.310332303544048,
"ref_a_norm": -0.5663331363521611,
"ref_b_norm": -0.8241764244805383,
"test_a_norm": -0.45071844408611517,
"test_b_norm": -0.8194953434705674,
"Rcs_pct": -6.8124258135254,
"Rhs": 0.09352943408743411,
"Rf_h": 81.16005753447747
},
{
"bin": 12,
"ref_a": -7.904003573304995,
"ref_b": -24.36876002144646,
"test_a": -5.5026982904284125,
"test_b": -25.26676282839791,
"ref_a_norm": -0.30852666450687366,
"ref_b_norm": -0.951215694408089,
"test_a_norm": -0.2147935705732054,
"test_b_norm": -0.9862685392324861,
"Rcs_pct": 1.6092894760939924,
"Rhs": 0.09877050960116818,
"Rf_h": 80.6533765232271
},
{
"bin": 13,
"ref_a": 3.36870036453182,
"ref_b": -17.975782389877335,
"test_a": 3.4685253009484778,
"test_b": -19.158520365652194,
"ref_a_norm": 0.18419562993526667,
"ref_b_norm": -0.9828896020981962,
"test_a_norm": 0.18965391207876317,
"test_b_norm": -1.0475599921364298,
"Rcs_pct": 6.449262464846481,
"Rhs": -0.007263164434838426,
"Rf_h": 85.39029412985549
},
{
"bin": 14,
"ref_a": 10.359694253251915,
"ref_b": -14.461223072588352,
"test_a": 9.941098771335804,
"test_b": -15.786663883516075,
"ref_a_norm": 0.5823636040246826,
"ref_b_norm": -0.8129284302491718,
"test_a_norm": 0.5588325260297317,
"test_b_norm": -0.8874372399402466,
"Rcs_pct": 4.887864462210474,
"Rhs": -0.06096025305960627,
"Rf_h": 88.91846918885004
},
{
"bin": 15,
"ref_a": 15.52293541971343,
"ref_b": -10.952866611875276,
"test_a": 13.28438178309659,
"test_b": -13.05651667768877,
"ref_a_norm": 0.8170794323493688,
"ref_b_norm": -0.5765251089342365,
"test_a_norm": 0.6992488748397588,
"test_b_norm": -0.6872547586533058,
"Rcs_pct": -3.645443067330584,
"Rhs": -0.1575314892147547,
"Rf_h": 76.58684650437823
},
{
"bin": 16,
"ref_a": 20.16183428534444,
"ref_b": -3.5048895013016783,
"test_a": 17.71081419521186,
"test_b": -4.835395242523553,
"ref_a_norm": 0.9852242613421153,
"ref_b_norm": -0.17126924669327967,
"test_a_norm": 0.8654531917231735,
"test_b_norm": -0.23628548071022198,
"Rcs_pct": -10.47856640697674,
"Rhs": -0.08713314185124435,
"Rf_h": 75.99404167297625
}
]
}
}