Files
lamp-testbench/crates/tm30/tests/golden/illuminant_FL1.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_FL1",
"source": "colour.SDS_ILLUMINANTS['FL1'] (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.36,
2.94,
3.47,
5.17,
19.49,
6.13,
6.24,
7.01,
7.79,
8.56,
43.67,
16.94,
10.72,
11.35,
11.89,
12.37,
12.75,
13.0,
13.15,
13.23,
13.17,
13.13,
12.85,
12.52,
12.2,
11.83,
11.5,
11.22,
11.05,
11.03,
11.18,
11.53,
27.74,
17.05,
13.55,
14.33,
15.01,
15.52,
18.29,
19.55,
15.48,
14.91,
14.15,
13.22,
12.19,
11.12,
10.03,
8.95,
7.96,
7.02,
6.2,
5.42,
4.73,
4.15,
3.64,
3.2,
2.81,
2.47,
2.18,
1.93,
1.72,
1.67,
1.43,
1.29,
1.19,
1.08,
0.96,
0.88,
0.81,
0.77,
0.75,
0.73,
0.68,
0.69,
0.64,
0.68,
0.69,
0.61,
0.52,
0.43
],
"expected": {
"Rf": 80.68635150076496,
"Rg": 89.83122589763414,
"CCT_K": 6425.332064634875,
"Duv": 0.007191578880652916,
"bins": [
{
"bin": 1,
"ref_a": 23.84545563235572,
"ref_b": 4.906172452718242,
"test_a": 19.196227550388294,
"test_b": 3.3710504271902475,
"ref_a_norm": 0.9794828836931113,
"ref_b_norm": 0.20152736923859008,
"test_a_norm": 0.788509836296467,
"test_b_norm": 0.13847024961095286,
"Rcs_pct": -19.960538761394243,
"Rhs": -0.024588501442399557,
"Rf_h": 64.59135692073266
},
{
"bin": 2,
"ref_a": 18.638426643931336,
"ref_b": 11.906702780414134,
"test_a": 15.239327251756684,
"test_b": 11.876659898824421,
"ref_a_norm": 0.842720483642813,
"ref_b_norm": 0.5383513596609776,
"test_a_norm": 0.689033118370697,
"test_b_norm": 0.5369929965229844,
"Rcs_pct": -12.854104014370607,
"Rhs": 0.08425468766468491,
"Rf_h": 76.32490250303407
},
{
"bin": 3,
"ref_a": 13.437851168100572,
"ref_b": 20.705789280444236,
"test_a": 9.227529768831102,
"test_b": 21.32604918707949,
"ref_a_norm": 0.5443926566963092,
"ref_b_norm": 0.8388305164543876,
"test_a_norm": 0.3738246080238658,
"test_b_norm": 0.8639584133324938,
"Rcs_pct": -7.386944787143087,
"Rhs": 0.1557824608247402,
"Rf_h": 70.61853696747318
},
{
"bin": 4,
"ref_a": 4.500166433308781,
"ref_b": 22.850186739742863,
"test_a": 2.027644608702062,
"test_b": 23.806474278526455,
"ref_a_norm": 0.19323052278636993,
"ref_b_norm": 0.9811533850849756,
"test_a_norm": 0.08706407497830874,
"test_b_norm": 1.0222149644269158,
"Rcs_pct": 1.956054611850115,
"Rhs": 0.11213720601915415,
"Rf_h": 81.79794154233632
},
{
"bin": 5,
"ref_a": -1.5455095435706714,
"ref_b": 21.477147820771552,
"test_a": -3.038540869239471,
"test_b": 22.643252905260333,
"ref_a_norm": -0.07177505353580191,
"ref_b_norm": 0.9974208448242561,
"test_a_norm": -0.14111296463205078,
"test_b_norm": 1.0515759648723555,
"Rcs_pct": 6.664170000533863,
"Rhs": 0.05744046276810292,
"Rf_h": 86.5670385816704
},
{
"bin": 6,
"ref_a": -10.214152992326397,
"ref_b": 16.735602933463987,
"test_a": -9.659384323889181,
"test_b": 17.40524137640265,
"ref_a_norm": -0.5209612254290433,
"ref_b_norm": 0.8535803427911572,
"test_a_norm": -0.4926658821386288,
"test_b_norm": 0.8877344879356257,
"Rcs_pct": 1.2678083356570764,
"Rhs": -0.04250174449214606,
"Rf_h": 91.91278107565986
},
{
"bin": 7,
"ref_a": -17.90146696240191,
"ref_b": 11.589220763399673,
"test_a": -16.403192936120337,
"test_b": 11.79684392025738,
"ref_a_norm": -0.8394435498861129,
"ref_b_norm": 0.5434468939598434,
"test_a_norm": -0.7691858179379145,
"test_b_norm": 0.5531828513647448,
"Rcs_pct": -5.300816102011461,
"Rhs": -0.04712825723873676,
"Rf_h": 88.98677601301469
},
{
"bin": 8,
"ref_a": -24.016703343553253,
"ref_b": 2.9355783668624964,
"test_a": -21.371682571257505,
"test_b": 3.661146050517676,
"ref_a_norm": -0.9926125049533571,
"ref_b_norm": 0.12132771740299805,
"test_a_norm": -0.883293559014555,
"test_b_norm": 0.15131549489617746,
"Rcs_pct": -10.136808787828123,
"Rhs": -0.05073863912298229,
"Rf_h": 81.36325095864356
},
{
"bin": 9,
"ref_a": -15.676294344694927,
"ref_b": -2.6302452225859736,
"test_a": -13.837755995725079,
"test_b": -2.6764596636557663,
"ref_a_norm": -0.9862145075057146,
"ref_b_norm": -0.1654718863893829,
"test_a_norm": -0.870549851529586,
"test_b_norm": -0.1683792923896231,
"Rcs_pct": -11.287498527147196,
"Rhs": 0.02541659598945924,
"Rf_h": 86.93160766242093
},
{
"bin": 10,
"ref_a": -19.7412555043754,
"ref_b": -12.01550386426426,
"test_a": -17.12795602587164,
"test_b": -12.971250840454308,
"ref_a_norm": -0.8542160922316222,
"ref_b_norm": -0.5199181356449656,
"test_a_norm": -0.7411370396929601,
"test_b_norm": -0.5612738866498752,
"Rcs_pct": -7.104577175136221,
"Rhs": 0.09720940582307314,
"Rf_h": 79.63284614306279
},
{
"bin": 11,
"ref_a": -12.846383680356727,
"ref_b": -18.95754527063295,
"test_a": -10.824372778241674,
"test_b": -19.96202912162869,
"ref_a_norm": -0.5609731228833786,
"ref_b_norm": -0.8278340144029296,
"test_a_norm": -0.47267638517982113,
"test_b_norm": -0.8716975994241856,
"Rcs_pct": -1.2583801109012647,
"Rhs": 0.09778535641729073,
"Rf_h": 83.11379784707698
},
{
"bin": 12,
"ref_a": -3.7268362334707743,
"ref_b": -20.756183680588947,
"test_a": -3.2965530791692075,
"test_b": -21.774859756281227,
"ref_a_norm": -0.17672687943314744,
"ref_b_norm": -0.9842599301433649,
"test_a_norm": -0.1563228170143517,
"test_b_norm": -1.0325656330861108,
"Rcs_pct": 4.3396887298056175,
"Rhs": 0.029435979223099373,
"Rf_h": 90.69751508783315
},
{
"bin": 13,
"ref_a": 1.9320755209129488,
"ref_b": -15.813168027714688,
"test_a": 0.8214106968825274,
"test_b": -17.07722891601317,
"ref_a_norm": 0.12127953710017789,
"ref_b_norm": -0.9926183928785355,
"test_a_norm": 0.05156129147579834,
"test_b_norm": -1.0719655600776932,
"Rcs_pct": 6.4221178641368155,
"Rhs": -0.08385849348387965,
"Rf_h": 86.3889380300713
},
{
"bin": 14,
"ref_a": 12.644137752458889,
"ref_b": -18.745395882492314,
"test_a": 10.227768158658787,
"test_b": -20.945620238816783,
"ref_a_norm": 0.5591992435318452,
"ref_b_norm": -0.8290332960945611,
"test_a_norm": 0.45233295692534276,
"test_b_norm": -0.9263403501416207,
"Rcs_pct": 2.153613075089739,
"Rhs": -0.14291697258429717,
"Rf_h": 76.18103310538777
},
{
"bin": 15,
"ref_a": 12.134844305768967,
"ref_b": -8.333707532823212,
"test_a": 8.774575546452754,
"test_b": -10.981149400115354,
"ref_a_norm": 0.8243271705458667,
"ref_b_norm": -0.5661136952060475,
"test_a_norm": 0.5960621208390525,
"test_b_norm": -0.7459559913789034,
"Rcs_pct": -8.988042599041204,
"Rhs": -0.27635067113028994,
"Rf_h": 69.88863172005391
},
{
"bin": 16,
"ref_a": 22.602055439637944,
"ref_b": -3.85468361471771,
"test_a": 19.79836415491462,
"test_b": -5.659498435447576,
"ref_a_norm": 0.9857668262702481,
"ref_b_norm": -0.16811830425353003,
"test_a_norm": 0.8634865377821345,
"test_b_norm": -0.24683356015526875,
"Rcs_pct": -10.457412241115028,
"Rhs": -0.10105846518897006,
"Rf_h": 76.1742320974876
}
]
}
}