Files
lamp-testbench/crates/tm30/tests/golden/partial_400_700_FL4.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

483 lines
9.0 KiB
JSON

{
"name": "partial_400_700_FL4",
"source": "FL4 on 400-700 nm / 2.5 nm",
"generator": "crates/tm30/tools/golden.py (tm30.py + colour-science 0.4.7, numpy 2.5.1)",
"wavelengths": [
400.0,
402.5,
405.0,
407.5,
410.0,
412.5,
415.0,
417.5,
420.0,
422.5,
425.0,
427.5,
430.0,
432.5,
435.0,
437.5,
440.0,
442.5,
445.0,
447.5,
450.0,
452.5,
455.0,
457.5,
460.0,
462.5,
465.0,
467.5,
470.0,
472.5,
475.0,
477.5,
480.0,
482.5,
485.0,
487.5,
490.0,
492.5,
495.0,
497.5,
500.0,
502.5,
505.0,
507.5,
510.0,
512.5,
515.0,
517.5,
520.0,
522.5,
525.0,
527.5,
530.0,
532.5,
535.0,
537.5,
540.0,
542.5,
545.0,
547.5,
550.0,
552.5,
555.0,
557.5,
560.0,
562.5,
565.0,
567.5,
570.0,
572.5,
575.0,
577.5,
580.0,
582.5,
585.0,
587.5,
590.0,
592.5,
595.0,
597.5,
600.0,
602.5,
605.0,
607.5,
610.0,
612.5,
615.0,
617.5,
620.0,
622.5,
625.0,
627.5,
630.0,
632.5,
635.0,
637.5,
640.0,
642.5,
645.0,
647.5,
650.0,
652.5,
655.0,
657.5,
660.0,
662.5,
665.0,
667.5,
670.0,
672.5,
675.0,
677.5,
680.0,
682.5,
685.0,
687.5,
690.0,
692.5,
695.0,
697.5,
700.0
],
"values": [
2.01,
7.879999999999999,
13.75,
7.85,
1.95,
1.77,
1.59,
1.675,
1.76,
1.845,
1.93,
2.015,
2.1,
16.19,
30.28,
19.155,
8.03,
5.289999999999999,
2.55,
2.625,
2.7,
2.76,
2.82,
2.865,
2.91,
2.95,
2.99,
3.015,
3.04,
3.06,
3.08,
3.085,
3.09,
3.09,
3.09,
3.115,
3.14,
3.1,
3.06,
3.0300000000000002,
3.0,
2.99,
2.98,
2.995,
3.01,
3.075,
3.14,
3.2750000000000004,
3.41,
3.6550000000000002,
3.9,
4.295,
4.69,
5.25,
5.81,
6.5649999999999995,
7.32,
14.955,
22.59,
18.85,
15.11,
14.495000000000001,
13.88,
15.105,
16.33,
17.505,
18.68,
19.66,
20.64,
22.46,
24.28,
25.270000000000003,
26.26,
24.770000000000003,
23.28,
23.11,
22.94,
22.54,
22.14,
21.525,
20.91,
20.17,
19.43,
18.585,
17.74,
16.869999999999997,
16.0,
15.21,
14.42,
13.49,
12.56,
11.745000000000001,
10.93,
10.225,
9.52,
8.85,
8.18,
7.595,
7.01,
6.505,
6.0,
5.555,
5.11,
4.735,
4.36,
4.025,
3.69,
3.41,
3.13,
2.885,
2.64,
2.4400000000000004,
2.24,
2.075,
1.91,
1.805,
1.7,
1.545,
1.39,
1.285,
1.18
],
"expected": {
"Rf": 56.8356555516847,
"Rg": 83.5377468871798,
"CCT_K": 2939.564218078963,
"Duv": -0.0007601824311253511,
"bins": [
{
"bin": 1,
"ref_a": 24.04298939659253,
"ref_b": 5.109936969080378,
"test_a": 17.57500752244677,
"test_b": 2.731364778678295,
"ref_a_norm": 0.9781522187996382,
"ref_b_norm": 0.20788996333961068,
"test_a_norm": 0.715012277380866,
"test_b_norm": 0.11112139487088903,
"Rcs_pct": -27.696239241330268,
"Rhs": -0.04357313165312099,
"Rf_h": 50.175221885017095
},
{
"bin": 2,
"ref_a": 20.57520933860629,
"ref_b": 15.097592622486312,
"test_a": 12.763843232637116,
"test_b": 16.215539663051427,
"ref_a_norm": 0.8062348085375289,
"ref_b_norm": 0.5915956672444906,
"test_a_norm": 0.5001482383734174,
"test_b_norm": 0.6354021628855292,
"Rcs_pct": -23.016409683430574,
"Rhs": 0.2064763570572338,
"Rf_h": 46.39965141829197
},
{
"bin": 3,
"ref_a": 14.838253269418317,
"ref_b": 22.885412454689412,
"test_a": 5.645547432443409,
"test_b": 26.1959934793031,
"ref_a_norm": 0.5440275205555183,
"ref_b_norm": 0.8390673732652314,
"test_a_norm": 0.20698751504537172,
"test_b_norm": 0.9604460257061286,
"Rcs_pct": -8.632673331136198,
"Rhs": 0.3476728889321639,
"Rf_h": 33.95336183518188
},
{
"bin": 4,
"ref_a": 2.7226029318275513,
"ref_b": 20.3950919565657,
"test_a": -2.712288039936026,
"test_b": 24.464182359259265,
"ref_a_norm": 0.13231926078257533,
"ref_b_norm": 0.9912071495030454,
"test_a_norm": -0.13181795416375722,
"test_b_norm": 1.188966076391613,
"Rcs_pct": 14.242843024032233,
"Rhs": 0.29764274515432176,
"Rf_h": 52.44410114844987
},
{
"bin": 5,
"ref_a": -2.930798625857884,
"ref_b": 16.775957012934022,
"test_a": -5.573714109580976,
"test_b": 19.676358999181744,
"ref_a_norm": -0.17209580034487695,
"ref_b_norm": 0.9850802178014013,
"test_a_norm": -0.3272871708478766,
"test_b_norm": 1.1553911346761714,
"Rcs_pct": 19.731477480830716,
"Rhs": 0.11898340021898522,
"Rf_h": 70.39040542510631
},
{
"bin": 6,
"ref_a": -12.748146318978613,
"ref_b": 16.87019184943558,
"test_a": -11.78933428355901,
"test_b": 20.180578609653065,
"ref_a_norm": -0.6028866503532788,
"ref_b_norm": 0.7978268526602771,
"test_a_norm": -0.5575424126979608,
"test_b_norm": 0.954382004703846,
"Rcs_pct": 10.49789428933711,
"Rhs": -0.12467973800468658,
"Rf_h": 75.78688716496266
},
{
"bin": 7,
"ref_a": -18.744529199655993,
"ref_b": 13.09104265233394,
"test_a": -14.912113779708292,
"test_b": 18.703792999400406,
"ref_a_norm": -0.8198505122855705,
"ref_b_norm": 0.5725776257461406,
"test_a_norm": -0.6522278575969211,
"test_b_norm": 0.8180687873730705,
"Rcs_pct": -0.29855618377684795,
"Rhs": -0.29724459830638217,
"Rf_h": 53.92293934162444
},
{
"bin": 8,
"ref_a": -21.446070057267512,
"ref_b": 5.644332766876604,
"test_a": -16.283941349885396,
"test_b": 7.525472983229173,
"ref_a_norm": -0.9670675438125093,
"ref_b_norm": 0.2545198729066958,
"test_a_norm": -0.7342916964632479,
"test_b_norm": 0.33934612050064766,
"Rcs_pct": -21.17543447550209,
"Rhs": -0.12860865004893252,
"Rf_h": 60.499472445759956
},
{
"bin": 9,
"ref_a": -22.581715646267394,
"ref_b": -3.88001108912216,
"test_a": -17.14456813775265,
"test_b": -2.0048128260252125,
"ref_a_norm": -0.9855577878047015,
"ref_b_norm": -0.1693394428286065,
"test_a_norm": -0.7482585872302145,
"test_b_norm": -0.08749817439608476,
"Rcs_pct": -24.870600238761963,
"Rhs": -0.03397393395390041,
"Rf_h": 59.00154187239486
},
{
"bin": 10,
"ref_a": -18.077532004978845,
"ref_b": -11.973678599856552,
"test_a": -11.41002327863737,
"test_b": -12.312880226221385,
"ref_a_norm": -0.8337070293646541,
"ref_b_norm": -0.5522070166051529,
"test_a_norm": -0.5262121295094034,
"test_b_norm": -0.5678504562181708,
"Rcs_pct": -24.698163577662296,
"Rhs": 0.18384205783503504,
"Rf_h": 49.33283019472565
},
{
"bin": 11,
"ref_a": -10.884615313886929,
"ref_b": -15.823390416257256,
"test_a": -4.250886066042329,
"test_b": -16.63459350885252,
"ref_a_norm": -0.5667421601341195,
"ref_b_norm": -0.8238952141665298,
"test_a_norm": -0.22133592066218297,
"test_b_norm": -0.8661330865898542,
"Rcs_pct": -15.677791754154242,
"Rhs": 0.31066089664508967,
"Rf_h": 51.38058308300528
},
{
"bin": 12,
"ref_a": -6.6010425307741825,
"ref_b": -21.173037687896805,
"test_a": -2.2867445579623205,
"test_b": -22.99798769997993,
"ref_a_norm": -0.2976369154379854,
"ref_b_norm": -0.9546791432562887,
"test_a_norm": -0.10310789446567621,
"test_b_norm": -1.0369650079348838,
"Rcs_pct": 4.275403551904815,
"Rhs": 0.2068443762184149,
"Rf_h": 61.368412083415556
},
{
"bin": 13,
"ref_a": 3.2672074517581193,
"ref_b": -18.032174106938147,
"test_a": 3.7498032183046064,
"test_b": -20.364684396357518,
"ref_a_norm": 0.1782848392296918,
"ref_b_norm": -0.9839789205571646,
"test_a_norm": 0.2046191047827933,
"test_b_norm": -1.1112592442253053,
"Rcs_pct": 12.997222828548407,
"Rhs": 0.000997100693977174,
"Rf_h": 79.20423020367551
},
{
"bin": 14,
"ref_a": 9.380605657392541,
"ref_b": -13.983001520660213,
"test_a": 7.9312837067062,
"test_b": -17.208518459426386,
"ref_a_norm": 0.5571074386603216,
"ref_b_norm": -0.8304404263939321,
"test_a_norm": 0.4710332480130747,
"test_b_norm": -1.0220015628217682,
"Rcs_pct": 11.145700568302333,
"Rhs": -0.17799373912943445,
"Rf_h": 70.32701733753734
},
{
"bin": 15,
"ref_a": 18.912298870098123,
"ref_b": -13.43725695130802,
"test_a": 15.578595164686872,
"test_b": -18.600364001860985,
"ref_a_norm": 0.8151891408635289,
"ref_b_norm": -0.5791948416709023,
"test_a_norm": 0.6714943379115459,
"test_b_norm": -0.8017436089908458,
"Rcs_pct": 0.41636084177903526,
"Rhs": -0.2648750924416619,
"Rf_h": 56.87508556756948
},
{
"bin": 16,
"ref_a": 16.888743478210728,
"ref_b": -4.179238875339611,
"test_a": 12.394084159756094,
"test_b": -6.874214425093358,
"ref_a_norm": 0.9707205371536406,
"ref_b_norm": -0.24021165406396758,
"test_a_norm": 0.7123793459595198,
"test_b_norm": -0.39511175759434836,
"Rcs_pct": -22.315772656695664,
"Rhs": -0.2023236076556252,
"Rf_h": 59.906609839428086
}
]
}
}