Files
lamp-testbench/crates/tm30/tests/golden/illuminant_FL5.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_FL5",
"source": "colour.SDS_ILLUMINANTS['FL5'] (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.87,
2.35,
2.92,
3.45,
5.1,
18.91,
6.0,
6.11,
6.85,
7.58,
8.31,
40.76,
16.06,
10.32,
10.91,
11.4,
11.83,
12.17,
12.4,
12.54,
12.58,
12.52,
12.47,
12.2,
11.89,
11.61,
11.33,
11.1,
10.96,
10.97,
11.16,
11.54,
12.12,
27.78,
17.73,
14.47,
15.2,
15.77,
16.1,
18.54,
19.5,
15.39,
14.64,
13.72,
12.69,
11.57,
10.45,
9.35,
8.29,
7.32,
6.41,
5.63,
4.9,
4.26,
3.72,
3.25,
2.83,
2.49,
2.19,
1.93,
1.71,
1.52,
1.48,
1.26,
1.13,
1.05,
0.96,
0.85,
0.78,
0.72,
0.68,
0.67,
0.65,
0.61,
0.62,
0.59,
0.62,
0.64,
0.55,
0.47,
0.4
],
"expected": {
"Rf": 77.89169336745758,
"Rg": 87.43272704289573,
"CCT_K": 6342.693872583665,
"Duv": 0.010803976772156637,
"bins": [
{
"bin": 1,
"ref_a": 23.87265953558795,
"ref_b": 4.9390298042181575,
"test_a": 18.603221318910904,
"test_b": 3.134170908890933,
"ref_a_norm": 0.9792615681203302,
"ref_b_norm": 0.20260005232603429,
"test_a_norm": 0.763108092489184,
"test_b_norm": 0.1285643568292973,
"Rcs_pct": -22.6443794882173,
"Rhs": -0.03044366920182976,
"Rf_h": 59.638424790882645
},
{
"bin": 2,
"ref_a": 18.65390346015735,
"ref_b": 11.924451052353875,
"test_a": 14.798308097193791,
"test_b": 11.734295566457929,
"ref_a_norm": 0.8425593539881446,
"ref_b_norm": 0.5386035044511689,
"test_a_norm": 0.6684098551877011,
"test_b_norm": 0.5300145630697579,
"Rcs_pct": -14.95717764149495,
"Rhs": 0.08961083386831828,
"Rf_h": 72.90933195457764
},
{
"bin": 3,
"ref_a": 13.466388397451379,
"ref_b": 20.702853840388833,
"test_a": 8.741244867315306,
"test_b": 21.25959569335891,
"ref_a_norm": 0.5452596833111713,
"ref_b_norm": 0.8382671875693342,
"test_a_norm": 0.35393665082464093,
"test_b_norm": 0.8608098974241897,
"Rcs_pct": -8.754980351729309,
"Rhs": 0.17160334621307796,
"Rf_h": 67.09907449140957
},
{
"bin": 4,
"ref_a": 4.503438172646038,
"ref_b": 22.841213478525557,
"test_a": 1.724757699877955,
"test_b": 23.836360702360505,
"ref_a_norm": 0.19343887812091295,
"ref_b_norm": 0.981112328141545,
"test_a_norm": 0.07408455089298303,
"test_b_norm": 1.0238574831018201,
"Rcs_pct": 1.8638944660677832,
"Rhs": 0.12540013334341357,
"Rf_h": 79.7878276543994
},
{
"bin": 5,
"ref_a": -1.5307155159621548,
"ref_b": 21.450688409269702,
"test_a": -3.1333431159158924,
"test_b": 22.645855759342297,
"ref_a_norm": -0.07117874002116178,
"ref_b_norm": 0.9974635767630814,
"test_a_norm": -0.14570141395913597,
"test_b_norm": 1.0530392243641484,
"Rcs_pct": 6.904642957206586,
"Rhs": 0.06224847066790751,
"Rf_h": 85.73451145415164
},
{
"bin": 6,
"ref_a": -10.210858872202833,
"ref_b": 16.704849685200923,
"test_a": -9.451786736895063,
"test_b": 17.413294083309616,
"ref_a_norm": -0.5215370135462523,
"ref_b_norm": 0.8532286583919086,
"test_a_norm": -0.48276611097386307,
"test_b_norm": 0.889413663030355,
"Rcs_pct": 0.8546772401372217,
"Rhs": -0.052340138789281114,
"Rf_h": 90.66960332395827
},
{
"bin": 7,
"ref_a": -17.902129801397887,
"ref_b": 11.54765320809248,
"test_a": -15.99144535940055,
"test_b": 11.813374012830097,
"ref_a_norm": -0.8403417213785884,
"ref_b_norm": 0.5420570000567015,
"test_a_norm": -0.7506525128424089,
"test_b_norm": 0.5545301683856384,
"Rcs_pct": -6.764413041429917,
"Rhs": -0.06019971492043447,
"Rf_h": 86.35547212332729
},
{
"bin": 8,
"ref_a": -24.03135883617434,
"ref_b": 2.8763931971795134,
"test_a": -20.756005785853162,
"test_b": 3.766480098568168,
"ref_a_norm": -0.9929128148104396,
"ref_b_norm": 0.11884503433130754,
"test_a_norm": -0.857583804126411,
"test_b_norm": 0.15562109417497152,
"Rcs_pct": -12.555404833304188,
"Rhs": -0.06247079843836521,
"Rf_h": 77.03673440838986
},
{
"bin": 9,
"ref_a": -15.668831874589918,
"ref_b": -2.6740820986511826,
"test_a": -13.413555859608447,
"test_b": -2.7372484918020143,
"ref_a_norm": -0.985747740039494,
"ref_b_norm": -0.1682301786453024,
"test_a_norm": -0.8438652274995192,
"test_b_norm": -0.17220406322031373,
"Rcs_pct": -13.838101342444014,
"Rhs": 0.0315774325570736,
"Rf_h": 84.26069245091726
},
{
"bin": 10,
"ref_a": -19.718604156365064,
"ref_b": -12.066032308918006,
"test_a": -16.545694288247795,
"test_b": -13.195722541538833,
"ref_a_norm": -0.8529780800537976,
"ref_b_norm": -0.5219467357381757,
"test_a_norm": -0.7157258412021547,
"test_b_norm": -0.5708143431020264,
"Rcs_pct": -8.697167781538697,
"Rhs": 0.11688518887024324,
"Rf_h": 75.73302475522127
},
{
"bin": 11,
"ref_a": -12.82673710651211,
"ref_b": -18.981122966435358,
"test_a": -10.406116540966051,
"test_b": -20.084043212063264,
"ref_a_norm": -0.5599069802880396,
"ref_b_norm": -0.828555473957374,
"test_a_norm": -0.45424313608327094,
"test_b_norm": -0.8766996542816549,
"Rcs_pct": -1.8673263597736591,
"Rhs": 0.11460374905663404,
"Rf_h": 80.55537687435293
},
{
"bin": 12,
"ref_a": -3.702346608781836,
"ref_b": -20.757278848803203,
"test_a": -3.1157411561264805,
"test_b": -21.839217110349402,
"ref_a_norm": -0.17559252471302939,
"ref_b_norm": -0.9844629323976114,
"test_a_norm": -0.1477713768502489,
"test_b_norm": -1.035776407607603,
"Rcs_pct": 4.489986447688759,
"Rhs": 0.03729733471022076,
"Rf_h": 89.72061272563607
},
{
"bin": 13,
"ref_a": 1.9644982793014634,
"ref_b": -15.80485632673549,
"test_a": 0.7761685921093605,
"test_b": -17.166936166805836,
"ref_a_norm": 0.12334793303188686,
"ref_b_norm": -0.9923634855317688,
"test_a_norm": 0.04873447461353955,
"test_b_norm": -1.0778864583270522,
"Rcs_pct": 6.932330922436761,
"Rhs": -0.08986448603910198,
"Rf_h": 85.29550435872937
},
{
"bin": 14,
"ref_a": 12.68410623135542,
"ref_b": -18.71231759441638,
"test_a": 9.823843346932236,
"test_b": -21.21784045976325,
"ref_a_norm": 0.5610913020949659,
"ref_b_norm": -0.8277539191772972,
"test_a_norm": 0.4345653493094529,
"test_b_norm": -0.9385876713790051,
"Rcs_pct": 2.186084390111578,
"Rhs": -0.1667784184459203,
"Rf_h": 72.26867153665846
},
{
"bin": 15,
"ref_a": 12.18652001638465,
"ref_b": -8.315724446307796,
"test_a": 8.400332455698845,
"test_b": -11.282411167482257,
"ref_a_norm": 0.8260148528151908,
"ref_b_norm": -0.5636483504177925,
"test_a_norm": 0.5693831682599797,
"test_b_norm": -0.7647334257342073,
"Rcs_pct": -10.166456511136564,
"Rhs": -0.3097730544017192,
"Rf_h": 66.11243748207937
},
{
"bin": 16,
"ref_a": 22.619928195569663,
"ref_b": -3.813018752685578,
"test_a": 19.34953882496955,
"test_b": -5.9899069370120905,
"ref_a_norm": 0.9860880398516595,
"ref_b_norm": -0.1662238781328125,
"test_a_norm": 0.8435194244199625,
"test_b_norm": -0.2611226498751208,
"Rcs_pct": -12.13153675247351,
"Rhs": -0.12088907554716534,
"Rf_h": 71.89660031105873
}
]
}
}