Files
lamp-testbench/crates/tm30/tests/golden/lamp_L0007.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_L0007",
"source": "L0007/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": [
7.65453e-05,
0.00573809,
0.0323325,
0.0899079,
0.182169,
0.304299,
0.468838,
0.658778,
0.856732,
1.0862,
1.34785,
1.65035,
2.00432,
2.41366,
2.88649,
3.42693,
4.04355,
4.74347,
5.5351,
6.42968,
7.43385,
8.56098,
9.81607,
11.192,
12.6827,
14.3139,
16.1075,
18.1027,
20.3329,
22.8219,
25.9101,
29.3586,
32.8126,
36.5561,
40.5351,
44.632,
48.6947,
52.5042,
55.8454,
58.507,
60.3133,
61.141,
60.9102,
59.6678,
57.5565,
54.8276,
51.7486,
48.5827,
45.4909,
42.6063,
40.011,
37.7404,
35.8039,
34.1287,
32.6315,
31.2354,
29.8896,
28.5683,
27.2505,
25.9248,
24.5993,
23.3166,
22.1206,
21.0491,
20.122,
19.3446,
18.672,
18.1407,
17.7369,
17.4472,
17.2564,
17.1434,
17.0972,
17.1049,
17.1459,
17.2285,
17.3491,
17.4945,
17.672,
17.8813,
18.1199,
18.3859,
18.6718,
18.9832,
19.3208,
19.6765,
20.0431,
20.4164,
20.7931,
21.1687,
21.5416,
21.8959,
22.2333,
22.5538,
22.858,
23.1443,
23.4079,
23.6481,
23.8694,
24.0747,
24.26,
24.4248,
24.569,
24.6932,
24.7968,
24.8859,
24.9547,
25.0005,
25.0302,
25.0429,
25.0495,
25.0886,
25.13,
25.1432,
25.1493,
25.1452,
25.1376,
25.1342,
25.1374,
25.1444,
25.1558,
25.1722,
25.2028,
25.2427,
25.2893,
25.3374,
25.3823,
25.4323,
25.4843,
25.5319,
25.57,
25.5988,
25.6281,
25.6671,
25.7161,
25.7637,
25.8058,
25.8384,
25.8624,
25.8814,
25.8929,
25.8958,
25.893,
25.8883,
25.8868,
25.883,
25.8768,
25.867,
25.8538,
25.8405,
25.8306,
25.8212,
25.8099,
25.7998,
25.7914,
25.7882,
25.7909,
25.7988,
25.8322,
25.8655,
25.8781,
25.8822,
25.8704,
25.8449,
25.8052,
25.7502,
25.6821,
25.6098,
25.5388,
25.474,
25.4103,
25.3356,
25.2479,
25.1465,
25.0352,
24.9181,
24.7952,
24.6651,
24.5289,
24.3826,
24.2256,
24.0619,
23.8938,
23.7611,
23.626,
23.4438,
23.2522,
23.0526,
22.8435,
22.6289,
22.4075,
22.1786,
21.9463,
21.7051,
21.4573,
21.2012,
20.9358,
20.666,
20.3911,
20.1185,
19.8471,
19.5754,
19.3046,
19.0791,
18.852,
18.5739,
18.2858,
17.9905,
17.6937,
17.4014,
17.1132,
16.8239,
16.5325,
16.2383,
15.9454,
15.6557,
15.3674,
15.0813,
14.7956,
14.5111,
14.2275,
13.987,
13.7435,
13.456,
13.1687,
12.8856,
12.6065,
12.3268,
12.0455,
11.7622,
11.48,
11.2006,
10.9254,
10.6534,
10.3841,
10.117,
9.88937,
9.66353,
9.40087,
9.14133,
8.88605,
8.63396,
8.38617,
8.1421,
7.90278,
7.66962,
7.44208,
7.21898,
7.00177,
6.78982,
6.61167,
6.43804,
6.23946,
6.04722,
5.86256,
5.68348,
5.50842,
5.33613,
5.1659,
5.00014,
4.8406,
4.68716,
4.54063,
4.41901,
4.29966,
4.16291,
4.02667,
3.89014,
3.75404,
3.62058,
3.49027,
3.36358,
3.242,
3.12391,
3.00915,
2.8966,
2.80025,
2.70488,
2.59752,
2.49443,
2.39421,
2.29738,
2.20284,
2.10992,
2.02075,
1.9354,
1.85317,
1.7855,
1.72001,
1.64671,
1.57718,
1.51042,
1.4467,
1.38515,
1.32559,
1.26906,
1.21468,
1.16335,
1.11425,
1.07152,
1.02729,
0.974108,
0.918747,
0.86344,
0.811792,
0.763925,
0.720675,
0.681858,
0.646341,
0.617549,
0.590002,
0.559121,
0.529449,
0.501852,
0.475652,
0.450707,
0.426104,
0.402752,
0.38097,
0.363142,
0.346161,
0.32586,
0.30444,
0.283281,
0.262832,
0.242857,
0.223307,
0.204383,
0.186521,
0.172201,
0.159415,
0.145596,
0.132675,
0.119765,
0.105957,
0.0919631,
0.0791472,
0.0684043,
0.0603321,
0.0541161,
0.047719,
0.0389463,
0.0287361,
0.017758,
0.00865738,
0.00292152,
0.000522782,
9.0514e-05,
0.0,
0.0
],
"expected": {
"Rf": 82.95259755330265,
"Rg": 103.54865605474023,
"CCT_K": 7971.408129908118,
"Duv": -0.02879956235826263,
"bins": [
{
"bin": 1,
"ref_a": 23.482869738648983,
"ref_b": 4.439511825880721,
"test_a": 25.018453335975245,
"test_b": 6.431311785366751,
"ref_a_norm": 0.9825946423527376,
"ref_b_norm": 0.1857626679925102,
"test_a_norm": 1.0468481272295966,
"test_b_norm": 0.26910563205998334,
"Rcs_pct": 7.927827787953667,
"Rhs": 0.06920631932726815,
"Rf_h": 74.90988914306404
},
{
"bin": 2,
"ref_a": 22.005596243444362,
"ref_b": 13.76920992227529,
"test_a": 22.728331436086403,
"test_b": 15.583669519996926,
"ref_a_norm": 0.8477261531777264,
"ref_b_norm": 0.5304341327803989,
"test_a_norm": 0.8755682310676688,
"test_b_norm": 0.6003329366054122,
"Rcs_pct": 6.198353643770171,
"Rhs": 0.04265050161573028,
"Rf_h": 77.5482239883905
},
{
"bin": 3,
"ref_a": 11.654856135365176,
"ref_b": 18.54388299414296,
"test_a": 13.265433430742833,
"test_b": 19.093977534533895,
"ref_a_norm": 0.5321290359986146,
"ref_b_norm": 0.8466632678031952,
"test_a_norm": 0.6056636153736449,
"test_b_norm": 0.8717790885466279,
"Rcs_pct": 6.1736665134586195,
"Rhs": -0.0471881658208797,
"Rf_h": 83.32692937585968
},
{
"bin": 4,
"ref_a": 4.454277197937342,
"ref_b": 22.9592962636539,
"test_a": 5.39917056765465,
"test_b": 22.82339213897038,
"ref_a_norm": 0.19045638572640128,
"ref_b_norm": 0.9816956581018561,
"test_a_norm": 0.23085822155658575,
"test_b_norm": 0.9758846572946949,
"Rcs_pct": 0.21826631060784757,
"Rhs": -0.040759195902217826,
"Rf_h": 89.46489353931761
},
{
"bin": 5,
"ref_a": -1.772441538931332,
"ref_b": 21.836697882394965,
"test_a": -0.5785314684596293,
"test_b": 20.516629589530545,
"ref_a_norm": -0.08090195683323384,
"ref_b_norm": 0.9967220642589155,
"test_a_norm": -0.02640669768787314,
"test_b_norm": 0.9364683939964655,
"Rcs_pct": -6.972741053870161,
"Rhs": -0.0416932400873743,
"Rf_h": 86.62470415436573
},
{
"bin": 6,
"ref_a": -10.844808637633825,
"ref_b": 17.131269348836568,
"test_a": -10.396785788032924,
"test_b": 15.903180728411904,
"ref_a_norm": -0.5348762290781177,
"ref_b_norm": 0.8449304229149125,
"test_a_norm": -0.5127793179806022,
"test_b_norm": 0.7843599294912671,
"Rcs_pct": -6.263891073139241,
"Rhs": 0.0152782530421519,
"Rf_h": 87.36502187121428
},
{
"bin": 7,
"ref_a": -18.40696637908179,
"ref_b": 10.60733158088937,
"test_a": -18.127540051611,
"test_b": 8.540685927514154,
"ref_a_norm": -0.8664314468566428,
"ref_b_norm": 0.4992960523556188,
"test_a_norm": -0.8532786137273614,
"test_b_norm": 0.40201729676291137,
"Rcs_pct": -6.498136197518105,
"Rhs": 0.07357700663143972,
"Rf_h": 82.8001183367942
},
{
"bin": 8,
"ref_a": -24.870458620994196,
"ref_b": 3.164501604781179,
"test_a": -26.43660351170149,
"test_b": -0.45703014060182295,
"ref_a_norm": -0.9920020549825301,
"ref_b_norm": 0.12622172123068615,
"test_a_norm": -1.054470502937509,
"test_b_norm": -0.0182294522821244,
"Rcs_pct": 3.308710828765653,
"Rhs": 0.15386257434572215,
"Rf_h": 70.57107534599287
},
{
"bin": 9,
"ref_a": -12.302765561282534,
"ref_b": -2.6325314011006005,
"test_a": -12.409832354570387,
"test_b": -5.233900355069523,
"ref_a_norm": -0.9778638537174422,
"ref_b_norm": -0.20924216494978473,
"test_a_norm": -0.9863738709625984,
"test_b_norm": -0.41600743716421995,
"Rcs_pct": 4.868440318809349,
"Rhs": 0.20113211348176482,
"Rf_h": 80.3045859853857
},
{
"bin": 10,
"ref_a": -16.492792832685804,
"ref_b": -11.071085471152355,
"test_a": -16.62371516102908,
"test_b": -13.521572354557502,
"ref_a_norm": -0.8302827924222576,
"ref_b_norm": -0.5573423405838628,
"test_a_norm": -0.8368737050390612,
"test_b_norm": -0.6807051398979685,
"Rcs_pct": 7.401684271910183,
"Rhs": 0.09891070405992683,
"Rf_h": 81.66696392099401
},
{
"bin": 11,
"ref_a": -15.194870674921905,
"ref_b": -24.218117016214794,
"test_a": -15.949798924318978,
"test_b": -26.031181045295625,
"ref_a_norm": -0.5314707278634504,
"ref_b_norm": -0.8470766585287863,
"test_a_norm": -0.5578758401395248,
"test_b_norm": -0.9104921676050807,
"Rcs_pct": 6.739796312576242,
"Rhs": 0.01327672068758082,
"Rf_h": 85.53336122721569
},
{
"bin": 12,
"ref_a": -2.129404041470915,
"ref_b": -18.841457629017253,
"test_a": -1.5853829708265592,
"test_b": -19.072202398073642,
"ref_a_norm": -0.11230201659700799,
"ref_b_norm": -0.9936741201562236,
"test_a_norm": -0.08361104855393875,
"test_b_norm": -1.005843301006629,
"Rcs_pct": 0.6338023258165522,
"Rhs": 0.030513768547939857,
"Rf_h": 93.24852869483682
},
{
"bin": 13,
"ref_a": 3.565232468441208,
"ref_b": -16.71319310293632,
"test_a": 4.342352210072228,
"test_b": -16.70351217132951,
"ref_a_norm": 0.20862455071257133,
"ref_b_norm": -0.9779958061464159,
"test_a_norm": 0.2540987963284613,
"test_b_norm": -0.9774293129303837,
"Rcs_pct": 0.8315977012911819,
"Rhs": 0.04471098808144166,
"Rf_h": 90.6617137159113
},
{
"bin": 14,
"ref_a": 15.147703190677978,
"ref_b": -17.70330805937641,
"test_a": 16.31853720340087,
"test_b": -15.617642814665436,
"ref_a_norm": 0.6501339632714963,
"ref_b_norm": -0.7598196034592006,
"test_a_norm": 0.7003857372495507,
"test_b_norm": -0.6703036026151893,
"Rcs_pct": -4.6511444738008345,
"Rhs": 0.0915152484749382,
"Rf_h": 81.9490018308905
},
{
"bin": 15,
"ref_a": 13.089596581745946,
"ref_b": -7.962062936482063,
"test_a": 15.365178180644554,
"test_b": -7.539020534835222,
"ref_a_norm": 0.8543584641034702,
"ref_b_norm": -0.5196841490893863,
"test_a_norm": 1.0028857611546536,
"test_b_norm": -0.4920721555291211,
"Rcs_pct": 10.815553239908008,
"Rhs": 0.10547587861295166,
"Rf_h": 82.05345505732826
},
{
"bin": 16,
"ref_a": 24.370891505389828,
"ref_b": -4.006634730914093,
"test_a": 25.024596015329493,
"test_b": -1.3590301290630447,
"ref_a_norm": 0.986753832146305,
"ref_b_norm": -0.16222476612583486,
"test_a_norm": 1.0132216956683116,
"test_b_norm": -0.055025815840945624,
"Rcs_pct": 0.5045813215235608,
"Rhs": 0.11030277653168427,
"Rf_h": 76.44402680339701
}
]
}
}