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

941 lines
14 KiB
JSON

{
"name": "lamp_L0006",
"source": "L0006/spd.csv",
"generator": "crates/tm30/tools/golden.py (tm30.py + colour-science 0.4.7, numpy 2.5.1)",
"wavelengths": [
380.0,
381.92,
383.84,
385.76,
387.68,
389.6,
391.52,
393.44,
395.36,
397.28,
399.2,
401.12,
403.04,
404.96,
406.88,
408.8,
410.72,
412.64,
414.56,
416.48,
418.4,
420.32,
422.23,
424.15,
426.07,
427.99,
429.91,
431.83,
433.75,
435.67,
437.59,
439.51,
441.43,
443.35,
445.27,
447.19,
449.11,
451.03,
452.95,
454.87,
456.79,
458.71,
460.63,
462.55,
464.47,
466.39,
468.31,
470.23,
472.15,
474.07,
475.99,
477.91,
479.83,
481.75,
483.67,
485.59,
487.51,
489.43,
491.35,
493.27,
495.19,
497.11,
499.03,
500.95,
502.87,
504.79,
506.7,
508.62,
510.54,
512.46,
514.38,
516.3,
518.22,
520.14,
522.06,
523.98,
525.9,
527.82,
529.74,
531.66,
533.58,
535.5,
537.42,
539.34,
541.26,
543.18,
545.1,
547.02,
548.94,
550.86,
552.78,
554.7,
556.62,
558.54,
560.46,
562.38,
564.3,
566.22,
568.14,
570.06,
571.98,
573.9,
575.82,
577.74,
579.66,
581.58,
583.5,
585.42,
587.34,
589.26,
591.17,
593.09,
595.01,
596.93,
598.85,
600.77,
602.69,
604.61,
606.53,
608.45,
610.37,
612.29,
614.21,
616.13,
618.05,
619.97,
621.89,
623.81,
625.73,
627.65,
629.57,
631.49,
633.41,
635.33,
637.25,
639.17,
641.09,
643.01,
644.93,
646.85,
648.77,
650.69,
652.61,
654.53,
656.45,
658.37,
660.29,
662.21,
664.13,
666.05,
667.97,
669.89,
671.81,
673.72,
675.64,
677.56,
679.48,
681.4,
683.32,
685.24,
687.16,
689.08,
691.0,
692.92,
694.84,
696.76,
698.68,
700.6,
702.52,
704.44,
706.36,
708.28,
710.2,
712.12,
714.04,
715.96,
717.88,
719.8,
721.72,
723.64,
725.56,
727.48,
729.4,
731.32,
733.24,
735.16,
737.08,
739.0,
740.92,
742.84,
744.76,
746.68,
748.6,
750.52,
752.44,
754.36,
756.28,
758.19,
760.11,
762.03,
763.95,
765.87,
767.79,
769.71,
771.63,
773.55,
775.47,
777.39,
779.31,
781.23,
783.15,
785.07,
786.99,
788.91,
790.83,
792.75,
794.67,
796.59,
798.51,
800.43,
802.35,
804.27,
806.19,
808.11,
810.03,
811.95,
813.87,
815.79,
817.71,
819.63,
821.55,
823.47,
825.39,
827.31,
829.23,
831.15,
833.07,
834.99,
836.91,
838.83,
840.74,
842.66,
844.58,
846.5,
848.42,
850.34,
852.26,
854.18,
856.1,
858.02,
859.94,
861.86,
863.78,
865.7,
867.62,
869.54,
871.46,
873.38,
875.3,
877.22,
879.14,
881.06,
882.98,
884.9,
886.82,
888.74,
890.66,
892.58,
894.5,
896.42,
898.34,
900.26,
902.18,
904.1,
906.02,
907.94,
909.86,
911.78,
913.7,
915.62,
917.54,
919.46,
921.38,
923.3,
925.21,
927.13,
929.05,
930.97,
932.89,
934.81,
936.73,
938.65,
940.57,
942.49,
944.41,
946.33,
948.25,
950.17,
952.09,
954.01,
955.93,
957.85,
959.77,
961.69,
963.61,
965.53,
967.45,
969.37,
971.29,
973.21,
975.13,
977.05,
978.97,
980.89,
982.81,
984.73,
986.65,
988.57,
990.49,
992.41,
994.33,
996.25,
998.17,
1000.09,
1002.01,
1003.93,
1005.85,
1007.77,
1009.68,
1011.6,
1013.52,
1015.44,
1017.36,
1019.28,
1021.2,
1023.12,
1025.04,
1026.96,
1028.88,
1030.8,
1032.72,
1034.64,
1036.56,
1038.48,
1040.4,
1042.32,
1044.24,
1046.16,
1048.08,
1050.0
],
"values": [
0.0669453,
0.163875,
0.313751,
0.511868,
0.755586,
1.0572,
1.47399,
1.98458,
2.53148,
3.16485,
3.89114,
4.71973,
5.66192,
6.72009,
7.89749,
9.1821,
10.5907,
12.124,
13.7944,
15.6171,
17.5852,
19.7007,
21.9446,
24.2857,
26.6967,
29.1927,
31.7418,
34.3268,
36.8831,
39.319,
41.6882,
43.6426,
44.9828,
45.8038,
46.0636,
45.7236,
44.797,
43.3186,
41.3762,
39.0963,
36.6166,
34.0631,
31.5347,
29.1115,
26.8459,
24.7802,
22.9186,
21.2544,
19.7441,
18.3524,
17.0529,
15.8312,
14.6898,
13.616,
12.6089,
11.6733,
10.8191,
10.0561,
9.38411,
8.7985,
8.2961,
7.87779,
7.54223,
7.28474,
7.0951,
6.965,
6.87107,
6.82273,
6.81647,
6.85261,
6.93125,
7.05107,
7.21512,
7.42497,
7.70844,
8.04881,
8.40537,
8.80086,
9.2363,
9.70982,
10.2168,
10.7529,
11.3089,
11.8855,
12.4838,
13.0986,
13.7266,
14.3625,
15.0024,
15.6426,
16.2794,
16.9017,
17.5088,
18.0996,
18.6757,
19.2328,
19.7619,
20.2581,
20.7218,
21.1582,
21.5639,
21.9379,
22.2755,
22.5737,
22.8325,
23.0587,
23.2452,
23.3903,
23.4995,
23.572,
23.6232,
23.6861,
23.7386,
23.7502,
23.7374,
23.6998,
23.6434,
23.5765,
23.5028,
23.4193,
23.3304,
23.2373,
23.1452,
23.0501,
22.95,
22.8418,
22.7265,
22.6117,
22.4943,
22.369,
22.2317,
22.0863,
21.9411,
21.8044,
21.6739,
21.5391,
21.3982,
21.2522,
21.1031,
20.9562,
20.8107,
20.665,
20.5196,
20.3779,
20.241,
20.1076,
19.9785,
19.8512,
19.7257,
19.6057,
19.4925,
19.389,
19.2923,
19.2021,
19.1202,
19.0468,
18.9819,
18.926,
18.8996,
18.877,
18.8386,
18.7999,
18.7577,
18.7136,
18.6669,
18.6186,
18.5694,
18.5234,
18.4832,
18.4504,
18.4205,
18.3865,
18.3476,
18.3037,
18.2571,
18.2095,
18.1606,
18.1075,
18.0531,
17.9959,
17.934,
17.8698,
17.803,
17.7564,
17.7091,
17.6361,
17.5555,
17.467,
17.3702,
17.2684,
17.1626,
17.0515,
16.9357,
16.8119,
16.6794,
16.5378,
16.3875,
16.2316,
16.0723,
15.9147,
15.756,
15.5943,
15.43,
15.2924,
15.1537,
14.9785,
14.7946,
14.605,
14.411,
14.2173,
14.0226,
13.8246,
13.6239,
13.4209,
13.2176,
13.0154,
12.813,
12.6123,
12.4117,
12.211,
12.0103,
11.839,
11.6652,
11.4581,
11.2511,
11.0464,
10.8412,
10.6323,
10.4203,
10.2057,
9.99083,
9.77735,
9.56494,
9.35455,
9.14557,
8.93746,
8.76077,
8.58575,
8.38115,
8.17659,
7.97268,
7.76892,
7.56779,
7.37057,
7.17686,
6.98644,
6.79795,
6.61191,
6.42891,
6.24883,
6.09658,
5.9467,
5.7761,
5.61235,
5.45454,
5.29872,
5.14378,
4.98911,
4.83568,
4.68665,
4.54268,
4.40534,
4.27449,
4.16466,
4.0553,
3.92899,
3.80348,
3.68079,
3.56245,
3.44853,
3.33833,
3.23081,
3.12464,
3.01954,
2.91594,
2.8132,
2.72563,
2.63881,
2.54206,
2.44968,
2.35992,
2.2717,
2.18279,
2.09435,
2.00787,
1.925,
1.84601,
1.78039,
1.71697,
1.64524,
1.57448,
1.50643,
1.44145,
1.38011,
1.32255,
1.26745,
1.21516,
1.1648,
1.1165,
1.07485,
1.03236,
0.982946,
0.931908,
0.881221,
0.833176,
0.787097,
0.745055,
0.706045,
0.668745,
0.638866,
0.610578,
0.580288,
0.553642,
0.529344,
0.50625,
0.484188,
0.462953,
0.442639,
0.423579,
0.407689,
0.391627,
0.372637,
0.352837,
0.332526,
0.312197,
0.29295,
0.275388,
0.258521,
0.242349,
0.229266,
0.216255,
0.201291,
0.186376,
0.170702,
0.155421,
0.14132,
0.128523,
0.117341,
0.106461,
0.0965479,
0.0866375,
0.0756172,
0.0657833,
0.0566462,
0.0477552,
0.0381855,
0.0296612,
0.0229959,
0.0181043,
0.0139494
],
"expected": {
"Rf": 66.2261955710554,
"Rg": 113.31608017250115,
"CCT_K": 5663.99730371379,
"Duv": -0.058905469260830165,
"bins": [
{
"bin": 1,
"ref_a": 24.137871836687623,
"ref_b": 5.245217921445655,
"test_a": 23.831141713435752,
"test_b": 6.791190434233697,
"ref_a_norm": 0.9771943907006746,
"ref_b_norm": 0.2123467041965502,
"test_a_norm": 0.9647767692165353,
"test_b_norm": 0.27493364963627764,
"Rcs_pct": 0.003108697057946774,
"Rhs": 0.06380691260669989,
"Rf_h": 78.11672512297143
},
{
"bin": 2,
"ref_a": 18.80488318569917,
"ref_b": 12.0863628519726,
"test_a": 16.11370737850314,
"test_b": 14.74133380274794,
"ref_a_norm": 0.8412291523950644,
"ref_b_norm": 0.5406787522741039,
"test_a_norm": 0.7208404469254511,
"test_b_norm": 0.6594478475404204,
"Rcs_pct": -3.41149763297898,
"Rhs": 0.16563727474528947,
"Rf_h": 64.21506127669781
},
{
"bin": 3,
"ref_a": 13.73614831592917,
"ref_b": 20.670927713097903,
"test_a": 9.025580591342578,
"test_b": 24.53417274634546,
"ref_a_norm": 0.5534591036443446,
"ref_b_norm": 0.8328763537243681,
"test_a_norm": 0.3636601490507679,
"test_b_norm": 0.988534845761772,
"Rcs_pct": 2.3978656595508734,
"Rhs": 0.24429128788404997,
"Rf_h": 54.385433932796836
},
{
"bin": 4,
"ref_a": 3.986049101838091,
"ref_b": 22.173704076869456,
"test_a": -1.8498340634360653,
"test_b": 25.5173101015619,
"ref_a_norm": 0.17692866699142445,
"ref_b_norm": 0.9842236772180588,
"test_a_norm": -0.08210854072222798,
"test_b_norm": 1.1326362385737467,
"Rcs_pct": 9.502520333758477,
"Rhs": 0.283013734788424,
"Rf_h": 53.03071562371346
},
{
"bin": 5,
"ref_a": -1.595677678530143,
"ref_b": 21.584238839112253,
"test_a": -6.9105734631112625,
"test_b": 24.616255366461893,
"ref_a_norm": -0.07372671446045784,
"ref_b_norm": 0.9972784824585689,
"test_a_norm": -0.3192962359053247,
"test_b_norm": 1.137369817794669,
"Rcs_pct": 18.53077566257054,
"Rhs": 0.21352050822640167,
"Rf_h": 57.91443753438172
},
{
"bin": 6,
"ref_a": -9.410261405559504,
"ref_b": 16.34174116665616,
"test_a": -11.703426716652366,
"test_b": 17.827004915213216,
"ref_a_norm": -0.4990194099639093,
"ref_b_norm": 0.866590807982217,
"test_a_norm": -0.6206243209406863,
"test_b_norm": 0.9453532788109068,
"Rcs_pct": 13.304866981161725,
"Rhs": 0.05735270391245155,
"Rf_h": 79.29145385666864
},
{
"bin": 7,
"ref_a": -17.782814058235182,
"ref_b": 12.339796201656608,
"test_a": -19.047190740943496,
"test_b": 12.758803903916373,
"ref_a_norm": -0.8215729501607355,
"ref_b_norm": 0.5701034007653222,
"test_a_norm": -0.8799876463907766,
"test_b_norm": 0.5894617201493235,
"Rcs_pct": 5.932495083820079,
"Rhs": 0.01635761208324874,
"Rf_h": 78.95856981040056
},
{
"bin": 8,
"ref_a": -24.181339838997125,
"ref_b": 2.325391437407178,
"test_a": -25.282877025448848,
"test_b": 1.1894550908381312,
"ref_a_norm": -0.9954079991393834,
"ref_b_norm": 0.09572311763272964,
"test_a_norm": -1.040752009605472,
"test_b_norm": 0.0489630897179617,
"Rcs_pct": 3.5350309116214627,
"Rhs": 0.054707724693380526,
"Rf_h": 77.6749248247379
},
{
"bin": 9,
"ref_a": -15.608146987850896,
"ref_b": -3.07803880663944,
"test_a": -14.605122413099265,
"test_b": -4.339389890864708,
"ref_a_norm": -0.9811040665209425,
"ref_b_norm": -0.1934807759341222,
"test_a_norm": -0.9180554874759573,
"test_b_norm": -0.27276736126723516,
"Rcs_pct": -4.636907281346477,
"Rhs": 0.09006328341669734,
"Rf_h": 78.93304537659641
},
{
"bin": 10,
"ref_a": -19.98347128613966,
"ref_b": -11.452541507066172,
"test_a": -16.297261829974268,
"test_b": -14.649278421760709,
"ref_a_norm": -0.8676175047710867,
"ref_b_norm": -0.4972322047241042,
"test_a_norm": -0.7075742467891736,
"test_b_norm": -0.6360241526105858,
"Rcs_pct": -5.596243083732057,
"Rhs": 0.20431655723011566,
"Rf_h": 60.166996690230135
},
{
"bin": 11,
"ref_a": -13.152287300778541,
"ref_b": -19.04418234301879,
"test_a": -7.123091197937318,
"test_b": -22.22953929345084,
"ref_a_norm": -0.5682706714506753,
"ref_b_norm": -0.8228416882784918,
"test_a_norm": -0.3077672898474948,
"test_b_norm": -0.9604713561557245,
"Rcs_pct": -3.0293037828462475,
"Rhs": 0.2930635923580632,
"Rf_h": 51.070934843310475
},
{
"bin": 12,
"ref_a": -3.4619450431168515,
"ref_b": -20.760474255403157,
"test_a": 3.5340876143841546,
"test_b": -22.566408203880897,
"ref_a_norm": -0.16448524863841626,
"ref_b_norm": -0.9863795430666424,
"test_a_norm": 0.16791291390303684,
"test_b_norm": -1.0721837631915463,
"Rcs_pct": 1.930785152720271,
"Rhs": 0.34275079798824787,
"Rf_h": 50.52187461801259
},
{
"bin": 13,
"ref_a": 2.2819731618288905,
"ref_b": -15.716754039587299,
"test_a": 8.037629789805495,
"test_b": -16.459138524342286,
"ref_a_norm": 0.14368701920500257,
"ref_b_norm": -0.9896231810704422,
"test_a_norm": 0.5060984437892706,
"test_b_norm": -1.0363682591909027,
"Rcs_pct": 11.654984607631548,
"Rhs": 0.34632827833902585,
"Rf_h": 60.610861156202624
},
{
"bin": 14,
"ref_a": 13.076433819156223,
"ref_b": -18.38981536231859,
"test_a": 19.133709095242263,
"test_b": -18.216568627266636,
"ref_a_norm": 0.5795011753277554,
"ref_b_norm": -0.814971403052739,
"test_a_norm": 0.8479381353063525,
"test_b_norm": -0.8072937221213196,
"Rcs_pct": 14.275182601895281,
"Rhs": 0.22746266602519696,
"Rf_h": 59.13894282083309
},
{
"bin": 15,
"ref_a": 12.67005034053983,
"ref_b": -8.135393293395426,
"test_a": 16.22061946545897,
"test_b": -8.016121356041813,
"ref_a_norm": 0.8414695497474654,
"ref_b_norm": -0.5403045408358121,
"test_a_norm": 1.0772772792032321,
"test_b_norm": -0.5323832066086447,
"Rcs_pct": 19.16661038861162,
"Rhs": 0.13759410390034538,
"Rf_h": 75.90520693288063
},
{
"bin": 16,
"ref_a": 22.797108190154802,
"ref_b": -3.422857409327071,
"test_a": 23.79931219830089,
"test_b": -2.4307183314980056,
"ref_a_norm": 0.9889153990387736,
"ref_b_norm": -0.14848007793634627,
"test_a_norm": 1.0323899910075067,
"test_b_norm": -0.10544209242215688,
"Rcs_pct": 3.4242945421581332,
"Rhs": 0.050692494837224385,
"Rf_h": 80.12814101747786
}
]
}
}