Files
lamp-testbench/crates/tm30/tests/golden/illuminant_LED_B5.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_LED_B5",
"source": "colour.SDS_ILLUMINANTS['LED-B5'] (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.0,
0.01,
0.01,
0.03,
0.07,
0.16,
0.35,
0.78,
1.67,
3.3,
5.94,
9.92,
16.15,
25.15,
32.34,
31.18,
23.46,
16.39,
12.08,
9.08,
7.21,
6.48,
6.49,
7.05,
8.1,
9.45,
10.88,
12.22,
13.38,
14.29,
14.98,
15.48,
15.81,
16.01,
16.1,
16.13,
16.1,
15.98,
15.77,
15.5,
15.15,
14.76,
14.31,
13.79,
13.22,
12.59,
11.91,
11.2,
10.47,
9.73,
9.0,
8.27,
7.57,
6.9,
6.25,
5.65,
5.08,
4.55,
4.06,
3.61,
3.22,
2.86,
2.54,
2.26,
2.0,
1.75,
1.54,
1.36,
1.2,
1.05,
0.93,
0.82,
0.72,
0.64,
0.56,
0.49,
0.44,
0.39,
0.35,
0.31,
0.27
],
"expected": {
"Rf": 79.5691048492081,
"Rg": 94.12549747208713,
"CCT_K": 6590.664429465209,
"Duv": 0.0009487153208891814,
"bins": [
{
"bin": 1,
"ref_a": 23.79425151868596,
"ref_b": 4.844212561131337,
"test_a": 20.61202973516683,
"test_b": 3.950309306576371,
"ref_a_norm": 0.9798988107097553,
"ref_b_norm": 0.19949516477751342,
"test_a_norm": 0.8488480256646251,
"test_b_norm": 0.16268229275503746,
"Rcs_pct": -13.571451601475475,
"Rhs": -0.010538783154091494,
"Rf_h": 74.51809918440918
},
{
"bin": 2,
"ref_a": 22.143688780638108,
"ref_b": 14.058011561158173,
"test_a": 18.9492091352518,
"test_b": 14.433836270200548,
"ref_a_norm": 0.8442382329686573,
"ref_b_norm": 0.5359681016571407,
"test_a_norm": 0.7224472397068036,
"test_b_norm": 0.5502965900770701,
"Rcs_pct": -9.33050282990965,
"Rhs": 0.07957715321757707,
"Rf_h": 78.12060984097693
},
{
"bin": 3,
"ref_a": 12.001112735921543,
"ref_b": 18.51486893619952,
"test_a": 8.954329446304058,
"test_b": 19.161032754036935,
"ref_a_norm": 0.5439189026850149,
"ref_b_norm": 0.8391377880312204,
"test_a_norm": 0.40583145528961895,
"test_b_norm": 0.8684234653252016,
"Rcs_pct": -5.236712458089816,
"Rhs": 0.13108576690805201,
"Rf_h": 76.64152445208737
},
{
"bin": 4,
"ref_a": 4.494012997822085,
"ref_b": 22.866449820584368,
"test_a": 1.6792081920777444,
"test_b": 23.687638203228428,
"ref_a_norm": 0.1928440066119929,
"ref_b_norm": 0.9812294273582676,
"test_a_norm": 0.07205703139997309,
"test_b_norm": 1.0164677005828997,
"Rcs_pct": 1.0996809796079434,
"Rhs": 0.1253407334230647,
"Rf_h": 79.0538767187271
},
{
"bin": 5,
"ref_a": -1.5735582603354834,
"ref_b": 21.52622300560894,
"test_a": -2.9910338173452256,
"test_b": 21.72584743034775,
"ref_a_norm": -0.07290507208780493,
"ref_b_norm": 0.9973388844639881,
"test_a_norm": -0.13857862245540575,
"test_b_norm": 1.0065877527410143,
"Rcs_pct": 2.188342795565333,
"Rhs": 0.06260728682191326,
"Rf_h": 84.18130658136359
},
{
"bin": 6,
"ref_a": -10.220630079392246,
"ref_b": 16.79289639620513,
"test_a": -10.148540957915452,
"test_b": 17.295828910183975,
"ref_a_norm": -0.5199048956369814,
"ref_b_norm": 0.8542241506142866,
"test_a_norm": -0.5162378529119421,
"test_b_norm": 0.8798074144797727,
"Rcs_pct": 1.923440670642649,
"Rhs": -0.017262334460035424,
"Rf_h": 91.99917508600645
},
{
"bin": 7,
"ref_a": -17.900405932384565,
"ref_b": 11.666964444190057,
"test_a": -16.718745493507388,
"test_b": 11.937907570634934,
"ref_a_norm": -0.8377650330744545,
"ref_b_norm": 0.5460309051306146,
"test_a_norm": -0.7824616058562072,
"test_b_norm": 0.5587114375243932,
"Rcs_pct": -3.893819285133399,
"Rhs": -0.0412684152996692,
"Rf_h": 90.6208011427199
},
{
"bin": 8,
"ref_a": -23.989228593666184,
"ref_b": 3.0465660195208435,
"test_a": -21.629066745616107,
"test_b": 2.7186861831573466,
"ref_a_norm": -0.9920321024489075,
"ref_b_norm": 0.12598534720673052,
"test_a_norm": -0.8944317852440851,
"test_b_norm": 0.11242645671768148,
"Rcs_pct": -9.837016278886601,
"Rhs": -0.005742517102106452,
"Rf_h": 83.264341821321
},
{
"bin": 9,
"ref_a": -15.690397787769538,
"ref_b": -2.5479489319553656,
"test_a": -13.288371599397701,
"test_b": -3.9597529202949038,
"ref_a_norm": -0.9870700658667709,
"ref_b_norm": -0.160289379154604,
"test_a_norm": -0.8359605669209866,
"test_b_norm": -0.24910481102641618,
"Rcs_pct": -13.087894109125935,
"Rhs": 0.11658886906155817,
"Rf_h": 80.27191170096603
},
{
"bin": 10,
"ref_a": -17.367668943745457,
"ref_b": -10.621080144130223,
"test_a": -13.52841821883808,
"test_b": -13.392321425898183,
"ref_a_norm": -0.8531177684480347,
"ref_b_norm": -0.5217183849149323,
"test_a_norm": -0.6645298225610875,
"test_b_norm": -0.6578446080592513,
"Rcs_pct": -8.117746873918572,
"Rhs": 0.217958667023116,
"Rf_h": 67.02197129560902
},
{
"bin": 11,
"ref_a": -14.313723733011496,
"ref_b": -21.210895387988234,
"test_a": -10.049302225513216,
"test_b": -24.238479529749988,
"ref_a_norm": -0.5593753777451609,
"ref_b_norm": -0.8289144628804943,
"test_a_norm": -0.39272325869384767,
"test_b_norm": -0.9472314050363234,
"Rcs_pct": 0.5789985408581344,
"Rhs": 0.20429954394067373,
"Rf_h": 63.83865706331949
},
{
"bin": 12,
"ref_a": -3.7724928617533715,
"ref_b": -20.753752350528693,
"test_a": -1.7775709038976049,
"test_b": -22.25770212522626,
"ref_a_norm": -0.17884337250160073,
"ref_b_norm": -0.983877557479717,
"test_a_norm": -0.08426968239934864,
"test_b_norm": -1.0551756247356807,
"Rcs_pct": 5.147768322954697,
"Rhs": 0.10666604606579912,
"Rf_h": 82.09528234106217
},
{
"bin": 13,
"ref_a": 2.885644510037255,
"ref_b": -16.67721559549916,
"test_a": 3.356135021443908,
"test_b": -18.37491491199708,
"ref_a_norm": 0.17049573310895313,
"ref_b_norm": -0.9853584144825885,
"test_a_norm": 0.19829424549814828,
"test_b_norm": -1.0856654649727213,
"Rcs_pct": 10.38028993749634,
"Rhs": 0.007695436987821358,
"Rf_h": 85.4967171491161
},
{
"bin": 14,
"ref_a": 14.368652651039472,
"ref_b": -17.32531089936218,
"test_a": 13.399156110802373,
"test_b": -19.177055977902832,
"ref_a_norm": 0.6383706614261523,
"ref_b_norm": -0.769729107303561,
"test_a_norm": 0.595297858243263,
"test_b_norm": -0.8519984584591199,
"Rcs_pct": 4.447449820856929,
"Rhs": -0.08152012955512608,
"Rf_h": 84.08120177153117
},
{
"bin": 15,
"ref_a": 12.037122972230456,
"ref_b": -8.367407212708798,
"test_a": 11.124575847901255,
"test_b": -11.886266095679247,
"ref_a_norm": 0.8211048091435319,
"ref_b_norm": -0.5707774455962359,
"test_a_norm": 0.7588559782488548,
"test_b_norm": -0.8108142017355711,
"Rcs_pct": 8.159926525131596,
"Rhs": -0.23416686605088727,
"Rf_h": 72.79538135752526
},
{
"bin": 16,
"ref_a": 22.56845229469445,
"ref_b": -3.933055667851942,
"test_a": 20.897572395678278,
"test_b": -5.311870460784217,
"ref_a_norm": 0.9851519533594456,
"ref_b_norm": -0.17168467838473184,
"test_a_norm": 0.9122151575681018,
"test_b_norm": -0.23187232744640268,
"Rcs_pct": -5.97933078750912,
"Rhs": -0.07326042323951996,
"Rf_h": 84.0622552740602
}
]
}
}