Files
lamp-testbench/crates/tm30/tests/golden/illuminant_FL8.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_FL8",
"source": "colour.SDS_ILLUMINANTS['FL8'] (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.21,
1.5,
1.81,
2.13,
3.17,
13.08,
3.83,
3.45,
3.86,
4.42,
5.09,
34.1,
12.42,
7.68,
8.6,
9.46,
10.24,
10.84,
11.33,
11.71,
11.98,
12.17,
12.28,
12.32,
12.35,
12.44,
12.55,
12.68,
12.77,
12.72,
12.6,
12.43,
12.22,
28.96,
16.51,
11.79,
11.76,
11.77,
11.84,
14.61,
16.11,
12.34,
12.53,
12.72,
12.92,
13.12,
13.34,
13.61,
13.87,
14.07,
14.2,
14.16,
14.13,
14.34,
14.5,
14.46,
14.0,
12.58,
10.99,
9.98,
9.22,
8.62,
8.07,
7.39,
6.71,
6.16,
5.63,
5.03,
4.46,
4.02,
3.66,
3.36,
3.09,
2.85,
2.65,
2.51,
2.37,
2.15,
1.89,
1.61,
1.32
],
"expected": {
"Rf": 95.50168891791436,
"Rg": 101.63457471151808,
"CCT_K": 4994.74123669448,
"Duv": 0.003243057802911453,
"bins": [
{
"bin": 1,
"ref_a": 23.480281143576022,
"ref_b": 4.938329548493439,
"test_a": 23.48693791639685,
"test_b": 4.561764983827416,
"ref_a_norm": 0.9785908294204929,
"ref_b_norm": 0.2058154235573996,
"test_a_norm": 0.9788682646350103,
"test_b_norm": 0.19012129164247113,
"Rcs_pct": -0.2789668874382727,
"Rhs": -0.015446698496207245,
"Rf_h": 97.22018112001263
},
{
"bin": 2,
"ref_a": 17.840653986970327,
"ref_b": 12.027413616966063,
"test_a": 17.713975622659344,
"test_b": 11.984944763307794,
"ref_a_norm": 0.8291724154281395,
"ref_b_norm": 0.5589929386790721,
"test_a_norm": 0.8232848394796941,
"test_b_norm": 0.5570191320016931,
"Rcs_pct": -0.5991928726942841,
"Rhs": 0.001629801668797915,
"Rf_h": 98.04054384888207
},
{
"bin": 3,
"ref_a": 14.549056574038039,
"ref_b": 22.06559594089347,
"test_a": 13.969934837791216,
"test_b": 22.331701197640808,
"ref_a_norm": 0.5504669432514051,
"ref_b_norm": 0.8348569604354116,
"test_a_norm": 0.528555737511021,
"test_b_norm": 0.8449251147875106,
"Rcs_pct": -0.38018492831835893,
"Rhs": 0.023812068601511468,
"Rf_h": 95.53718373939056
},
{
"bin": 4,
"ref_a": 4.075506373991542,
"ref_b": 21.998941503984838,
"test_a": 3.2901992977358114,
"test_b": 22.516726188516266,
"ref_a_norm": 0.18215962620396597,
"ref_b_norm": 0.9832689716355497,
"test_a_norm": 0.14705938826078024,
"test_b_norm": 1.006411976684026,
"Rcs_pct": 1.585060197266431,
"Rhs": 0.03894077302065564,
"Rf_h": 93.30649022368056
},
{
"bin": 5,
"ref_a": -2.055040083135477,
"ref_b": 19.16082489235112,
"test_a": -2.712781893733294,
"test_b": 19.758175982837745,
"ref_a_norm": -0.10664058074374624,
"ref_b_norm": 0.9942976347847945,
"test_a_norm": -0.1407722598468493,
"test_b_norm": 1.0252955056877362,
"Rcs_pct": 3.7061015772620247,
"Rhs": 0.02742846384350077,
"Rf_h": 93.61110527420041
},
{
"bin": 6,
"ref_a": -10.83025249080319,
"ref_b": 17.502422879116434,
"test_a": -11.183063483958819,
"test_b": 18.008764275668337,
"ref_a_norm": -0.5261937075883273,
"ref_b_norm": 0.8503647347429513,
"test_a_norm": -0.543335221576494,
"test_b_norm": 0.8749656068817446,
"Rcs_pct": 2.9978192540261546,
"Rhs": 0.0005851357233847785,
"Rf_h": 95.56476491077471
},
{
"bin": 7,
"ref_a": -17.88709140683529,
"ref_b": 11.798633885484053,
"test_a": -17.851607658275555,
"test_b": 12.421664740043578,
"ref_a_norm": -0.8347562679745275,
"ref_b_norm": 0.5506196264911366,
"test_a_norm": -0.8331003094484727,
"test_b_norm": 0.5796952821780277,
"Rcs_pct": 1.4776689611515892,
"Rhs": -0.025095525425612636,
"Rf_h": 95.56573452395341
},
{
"bin": 8,
"ref_a": -22.259155156314122,
"ref_b": 4.298217742494155,
"test_a": -22.08968254291453,
"test_b": 4.894083193824708,
"ref_a_norm": -0.9818620988211796,
"ref_b_norm": 0.18959646330685684,
"test_a_norm": -0.9743865798845126,
"test_b_norm": 0.21588037653491507,
"Rcs_pct": -0.2204141840952653,
"Rhs": -0.027237276602067293,
"Rf_h": 95.77667224387189
},
{
"bin": 9,
"ref_a": -18.632068918233934,
"ref_b": -2.5570466293446725,
"test_a": -18.37134364440308,
"test_b": -2.0509443787112915,
"ref_a_norm": -0.9907137009726655,
"ref_b_norm": -0.135964564152002,
"test_a_norm": -0.9768502861201532,
"test_b_norm": -0.10905384178424046,
"Rcs_pct": -1.8847054715880804,
"Rhs": -0.023689022315498687,
"Rf_h": 95.92210954908477
},
{
"bin": 10,
"ref_a": -19.80180433756542,
"ref_b": -11.99762559764812,
"test_a": -19.222511541212178,
"test_b": -11.884655606548362,
"ref_a_norm": -0.8552642166344183,
"ref_b_norm": -0.5181921648816344,
"test_a_norm": -0.8302438502461332,
"test_b_norm": -0.5133128524061628,
"Rcs_pct": -2.351447510950823,
"Rhs": 0.009843570732291921,
"Rf_h": 95.71583192230483
},
{
"bin": 11,
"ref_a": -12.8977409704859,
"ref_b": -19.32395195185696,
"test_a": -12.196626921904063,
"test_b": -19.420657161314708,
"ref_a_norm": -0.5551502629113778,
"ref_b_norm": -0.8317500739942427,
"test_a_norm": -0.5249726023976697,
"test_b_norm": -0.8359125023278725,
"Rcs_pct": -1.3304877210786914,
"Rhs": 0.02740432896677285,
"Rf_h": 94.48748959215646
},
{
"bin": 12,
"ref_a": -3.1232592721929944,
"ref_b": -20.74698826917924,
"test_a": -2.371722914604854,
"test_b": -21.025386438925924,
"ref_a_norm": -0.14886302217893901,
"ref_b_norm": -0.9888578262964564,
"test_a_norm": -0.11304275760341156,
"test_b_norm": -1.0021270394183235,
"Rcs_pct": 0.6026061961718137,
"Rhs": 0.037720683296672296,
"Rf_h": 94.49670003850284
},
{
"bin": 13,
"ref_a": 2.723352528879152,
"ref_b": -15.577259864422752,
"test_a": 3.2484720236332514,
"test_b": -15.848857023877706,
"ref_a_norm": 0.1722166296987875,
"ref_b_norm": -0.9850591009960725,
"test_a_norm": 0.20542360845629018,
"test_b_norm": -1.0022340891553716,
"Rcs_pct": 2.332333575672414,
"Rhs": 0.029218242001400538,
"Rf_h": 95.88933067964301
},
{
"bin": 14,
"ref_a": 13.620680455814743,
"ref_b": -17.9429269009068,
"test_a": 14.043855632544075,
"test_b": -18.335063287835514,
"ref_a_norm": 0.6046345353534599,
"ref_b_norm": -0.7965030311668034,
"test_a_norm": 0.6234196707352703,
"test_b_norm": -0.8139103261161984,
"Rcs_pct": 2.4910098824186604,
"Rhs": 0.00594829432168838,
"Rf_h": 95.53625300674427
},
{
"bin": 15,
"ref_a": 12.88342908422043,
"ref_b": -8.25550616209417,
"test_a": 13.156491541738458,
"test_b": -8.494568475318678,
"ref_a_norm": 0.8419712382334039,
"ref_b_norm": -0.5395224128687414,
"test_a_norm": 0.8598166995596206,
"test_b_norm": -0.5551458614525592,
"Rcs_pct": 2.3517881780550867,
"Rhs": -0.0030760156294672714,
"Rf_h": 96.8758122547014
},
{
"bin": 16,
"ref_a": 22.83650256497141,
"ref_b": -4.127265436079328,
"test_a": 23.12646862549328,
"test_b": -4.689783457461917,
"ref_a_norm": 0.9840576473436042,
"ref_b_norm": -0.1778497869117938,
"test_a_norm": 0.9965527007570953,
"test_b_norm": -0.2020894952092987,
"Rcs_pct": 1.6983896963141476,
"Rhs": -0.021336285105414153,
"Rf_h": 95.49205763955483
}
]
}
}