Files
lamp-testbench/crates/tm30/tests/golden/illuminant_FL2.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_FL2",
"source": "colour.SDS_ILLUMINANTS['FL2'] (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.18,
1.48,
1.84,
2.15,
3.44,
15.69,
3.85,
3.74,
4.19,
4.62,
5.06,
34.98,
11.81,
6.27,
6.63,
6.93,
7.19,
7.4,
7.54,
7.62,
7.65,
7.62,
7.62,
7.45,
7.28,
7.15,
7.05,
7.04,
7.16,
7.47,
8.04,
8.88,
10.01,
24.88,
16.64,
14.59,
16.16,
17.56,
18.62,
21.47,
22.79,
19.29,
18.66,
17.73,
16.54,
15.21,
13.8,
12.36,
10.95,
9.65,
8.4,
7.32,
6.31,
5.43,
4.68,
4.02,
3.45,
2.96,
2.55,
2.19,
1.89,
1.64,
1.53,
1.27,
1.1,
0.99,
0.88,
0.76,
0.68,
0.61,
0.56,
0.54,
0.51,
0.47,
0.47,
0.43,
0.46,
0.47,
0.4,
0.33,
0.27
],
"expected": {
"Rf": 70.20781906305379,
"Rg": 86.43829403927003,
"CCT_K": 4225.108266234531,
"Duv": 0.0018621252165094363,
"bins": [
{
"bin": 1,
"ref_a": 21.44150569987737,
"ref_b": 4.911710850800025,
"test_a": 16.168126568827844,
"test_b": 3.371924328142029,
"ref_a_norm": 0.9747517901272056,
"ref_b_norm": 0.22329117233739448,
"test_a_norm": 0.7350188245435725,
"test_b_norm": 0.15329097317306012,
"Rcs_pct": -24.878292526800465,
"Rhs": -0.021885583512081308,
"Rf_h": 60.35070543403967
},
{
"bin": 2,
"ref_a": 20.635169564608816,
"ref_b": 14.292768265389933,
"test_a": 15.009402988490473,
"test_b": 14.751771239986297,
"ref_a_norm": 0.82206386812768,
"ref_b_norm": 0.5693952903905657,
"test_a_norm": 0.5979445838994997,
"test_b_norm": 0.5876810505146769,
"Rcs_pct": -17.6189350353636,
"Rhs": 0.13971805684388874,
"Rf_h": 61.40655822137029
},
{
"bin": 3,
"ref_a": 14.628925569603425,
"ref_b": 22.26452256690993,
"test_a": 7.921265503505507,
"test_b": 23.902806028585434,
"ref_a_norm": 0.5491242372455207,
"ref_b_norm": 0.8357407325657432,
"test_a_norm": 0.2973396000229725,
"test_b_norm": 0.8972367837968591,
"Rcs_pct": -8.875195169721376,
"Rhs": 0.24351665020742566,
"Rf_h": 52.6920029392565
},
{
"bin": 4,
"ref_a": 3.835519445060082,
"ref_b": 22.11129922974916,
"test_a": -0.23280081833055,
"test_b": 24.154981655413774,
"ref_a_norm": 0.17091192885142428,
"ref_b_norm": 0.9852863099507094,
"test_a_norm": -0.010373676230558399,
"test_b_norm": 1.07635342884642,
"Rcs_pct": 5.395022266931121,
"Rhs": 0.1955685665638469,
"Rf_h": 68.43722661711175
},
{
"bin": 5,
"ref_a": -2.1896569983462593,
"ref_b": 19.141537391803148,
"test_a": -4.32496456361688,
"test_b": 20.885987380138207,
"ref_a_norm": -0.1136517613201618,
"ref_b_norm": 0.9935206475704593,
"test_a_norm": -0.2244825745190134,
"test_b_norm": 1.0840644239970645,
"Rcs_pct": 11.042602218760873,
"Rhs": 0.09103701570093099,
"Rf_h": 79.64398650227432
},
{
"bin": 6,
"ref_a": -11.110069918888163,
"ref_b": 17.22633455214125,
"test_a": -10.471008611815796,
"test_b": 18.74344691822782,
"ref_a_norm": -0.5419996069285619,
"ref_b_norm": 0.8403787396699682,
"test_a_norm": -0.5108232975294993,
"test_b_norm": 0.9143903626470153,
"Rcs_pct": 4.421778598507902,
"Rhs": -0.06704080851257976,
"Rf_h": 87.5761514709081
},
{
"bin": 7,
"ref_a": -18.195188593305904,
"ref_b": 11.341780805069275,
"test_a": -15.366736336726074,
"test_b": 12.595693256153485,
"ref_a_norm": -0.848631003347337,
"ref_b_norm": 0.528985274046161,
"test_a_norm": -0.7167108386228853,
"test_b_norm": 0.5874682612389842,
"Rcs_pct": -7.7196201395928625,
"Rhs": -0.12191774334345938,
"Rf_h": 76.84965255972465
},
{
"bin": 8,
"ref_a": -22.72718403807425,
"ref_b": 3.698593182290253,
"test_a": -19.051288813943362,
"test_b": 4.94914539188827,
"ref_a_norm": -0.9870154023076927,
"ref_b_norm": 0.16062563807619118,
"test_a_norm": -0.8273755103875893,
"test_b_norm": 0.2149356788711857,
"Rcs_pct": -14.597709281299553,
"Rhs": -0.08441068651114254,
"Rf_h": 72.81568281316467
},
{
"bin": 9,
"ref_a": -19.34913651987008,
"ref_b": -2.039171712629464,
"test_a": -16.043949788236674,
"test_b": -1.5094621968538244,
"ref_a_norm": -0.9944924933423362,
"ref_b_norm": -0.10480782740684566,
"test_a_norm": -0.8246149698503379,
"test_b_norm": -0.07758221263329221,
"Rcs_pct": -17.19248284655656,
"Rhs": 0.006438978541526419,
"Rf_h": 76.23588711921641
},
{
"bin": 10,
"ref_a": -20.19059925839228,
"ref_b": -11.169472867275275,
"test_a": -15.11614626554033,
"test_b": -12.3731508921473,
"ref_a_norm": -0.8750302756952433,
"ref_b_norm": -0.48406819418002106,
"test_a_norm": -0.655111097244303,
"test_b_norm": -0.5362337936490059,
"Rcs_pct": -15.387445979190643,
"Rhs": 0.16555465998347502,
"Rf_h": 62.39561559761673
},
{
"bin": 11,
"ref_a": -12.16646596983228,
"ref_b": -17.30142734213172,
"test_a": -8.402886110495205,
"test_b": -18.894689447143964,
"ref_a_norm": -0.5752210401151883,
"ref_b_norm": -0.8179980165066422,
"test_a_norm": -0.3972819141099486,
"test_b_norm": -0.893326208562884,
"Rcs_pct": -3.6224579053580275,
"Rhs": 0.18980107732666204,
"Rf_h": 69.72091464664942
},
{
"bin": 12,
"ref_a": -5.488851063738376,
"ref_b": -23.66221352505178,
"test_a": -3.018223745513694,
"test_b": -25.399554871361985,
"ref_a_norm": -0.2259670919429864,
"ref_b_norm": -0.9741349359092045,
"test_a_norm": -0.12425537415520334,
"test_b_norm": -1.0456584600819752,
"Rcs_pct": 5.030624793518598,
"Rhs": 0.11371090301337923,
"Rf_h": 76.64358892974491
},
{
"bin": 13,
"ref_a": 3.538118811028049,
"ref_b": -15.379355619950259,
"test_a": 2.620549926198063,
"test_b": -17.319472658585592,
"ref_a_norm": 0.22419987261004892,
"ref_b_norm": -0.9745431838156983,
"test_a_norm": 0.16605631156042633,
"test_b_norm": -1.0974825242230486,
"Rcs_pct": 10.923384940567608,
"Rhs": -0.08101062433621685,
"Rf_h": 81.40090148306182
},
{
"bin": 14,
"ref_a": 13.843460665470982,
"ref_b": -18.679468563263917,
"test_a": 11.871759134004922,
"test_b": -21.856487165054602,
"ref_a_norm": 0.595416865010529,
"ref_b_norm": -0.8034169259239151,
"test_a_norm": 0.5106126117265082,
"test_b_norm": -0.9400627041487624,
"Rcs_pct": 6.650209348533657,
"Rhs": -0.14642848644919484,
"Rf_h": 71.4405875637361
},
{
"bin": 15,
"ref_a": 15.26876386478876,
"ref_b": -11.132723084889403,
"test_a": 11.493185633754575,
"test_b": -14.588476319460835,
"ref_a_norm": 0.8080264387977029,
"ref_b_norm": -0.5891462248066283,
"test_a_norm": 0.608221984459389,
"test_b_norm": -0.7720254679609351,
"Rcs_pct": -6.452906845131275,
"Rhs": -0.2630639406587859,
"Rf_h": 63.656538232435295
},
{
"bin": 16,
"ref_a": 20.01194727333166,
"ref_b": -3.699076972051818,
"test_a": 16.0741918720872,
"test_b": -6.432073793519327,
"ref_a_norm": 0.983342121626454,
"ref_b_norm": -0.1817643304809396,
"test_a_norm": 0.7898496694518533,
"test_b_norm": -0.316057653170311,
"Rcs_pct": -16.357522139388895,
"Rhs": -0.16946141895260983,
"Rf_h": 65.3578438523645
}
]
}
}