Files
lamp-testbench/crates/tm30/tests/golden/lamp_L0010.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_L0010",
"source": "L0010/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.0704409,
0.155122,
0.273341,
0.411353,
0.564648,
0.738328,
0.961669,
1.21962,
1.48368,
1.78492,
2.12931,
2.52891,
2.99284,
3.52035,
4.11275,
4.76721,
5.4988,
6.31526,
7.22856,
8.24828,
9.37811,
10.6253,
11.9939,
13.4805,
15.0889,
16.8542,
18.7884,
20.9213,
23.2567,
25.7738,
28.7203,
31.7624,
34.5303,
37.224,
39.7482,
41.9861,
43.8454,
45.2124,
46.0265,
46.2567,
45.9028,
45.0077,
43.6355,
41.8902,
39.8947,
37.7977,
35.7127,
33.74,
31.9051,
30.2182,
28.6774,
27.2761,
26.0129,
24.8517,
23.7587,
22.7103,
21.701,
20.7343,
19.8119,
18.935,
18.113,
17.3729,
16.7343,
16.2062,
15.7878,
15.4694,
15.2106,
15.0353,
14.9302,
14.887,
14.8966,
14.9473,
15.0361,
15.1606,
15.321,
15.5202,
15.7425,
15.9871,
16.2571,
16.5482,
16.8557,
17.1781,
17.5062,
17.8447,
18.1947,
18.5489,
18.9052,
19.2582,
19.6042,
19.942,
20.272,
20.5824,
20.8758,
21.1497,
21.4072,
21.6507,
21.8759,
22.0823,
22.2715,
22.4457,
22.6001,
22.7363,
22.8545,
22.9559,
23.041,
23.1125,
23.1621,
23.1893,
23.2002,
23.1986,
23.1953,
23.2243,
23.2559,
23.2578,
23.2513,
23.2379,
23.2231,
23.2124,
23.2057,
23.2017,
23.2037,
23.2142,
23.2389,
23.269,
23.301,
23.3314,
23.3598,
23.3933,
23.4298,
23.4617,
23.4839,
23.4977,
23.5113,
23.5335,
23.5612,
23.5825,
23.5941,
23.5974,
23.5942,
23.5887,
23.5781,
23.5591,
23.5348,
23.5083,
23.4808,
23.4467,
23.4054,
23.3575,
23.3066,
23.2568,
23.2107,
23.1654,
23.1175,
23.0696,
23.0231,
22.9802,
22.9391,
22.9009,
22.8887,
22.8745,
22.8379,
22.7958,
22.7414,
22.678,
22.6032,
22.5163,
22.4214,
22.3243,
22.2298,
22.1408,
22.0533,
21.9574,
21.851,
21.7352,
21.6119,
21.4831,
21.3489,
21.2085,
21.0652,
20.9173,
20.763,
20.6016,
20.4351,
20.3025,
20.1691,
19.9973,
19.8193,
19.6349,
19.4418,
19.2438,
19.0427,
18.8376,
18.6303,
18.4165,
18.1936,
17.962,
17.7242,
17.4833,
17.2409,
17.0015,
16.762,
16.5214,
16.2822,
16.0817,
15.8799,
15.6352,
15.3854,
15.1328,
14.88,
14.6293,
14.3789,
14.126,
13.8717,
13.6166,
13.3635,
13.1147,
12.869,
12.6268,
12.3868,
12.1482,
11.91,
11.7072,
11.5028,
11.2614,
11.0211,
10.7843,
10.5485,
10.3111,
10.0734,
9.83601,
9.60202,
9.37035,
9.13922,
8.91047,
8.68344,
8.4601,
8.27107,
8.08346,
7.86524,
7.64897,
7.43632,
7.22666,
7.02113,
6.819,
6.6212,
6.42867,
6.23952,
6.0541,
5.87268,
5.69509,
5.54572,
5.4002,
5.23459,
5.07414,
4.91967,
4.7692,
4.62212,
4.47892,
4.33872,
4.20152,
4.06787,
3.93774,
3.81273,
3.70892,
3.60785,
3.49201,
3.37611,
3.2602,
3.14581,
3.03412,
2.92559,
2.81903,
2.71377,
2.61024,
2.5096,
2.41249,
2.3315,
2.25319,
2.16592,
2.08098,
1.99743,
1.91505,
1.83423,
1.75661,
1.68257,
1.61202,
1.54345,
1.48604,
1.43031,
1.3677,
1.308,
1.25133,
1.19753,
1.14719,
1.09977,
1.05442,
1.01113,
0.969224,
0.929058,
0.89469,
0.859059,
0.81664,
0.772148,
0.727921,
0.687024,
0.648887,
0.613539,
0.580742,
0.549823,
0.525414,
0.502825,
0.478494,
0.456394,
0.436076,
0.416935,
0.398771,
0.381003,
0.36364,
0.347348,
0.333628,
0.319235,
0.301626,
0.283026,
0.264275,
0.24689,
0.231773,
0.217265,
0.203283,
0.188755,
0.175992,
0.164599,
0.152248,
0.140831,
0.129962,
0.118847,
0.108203,
0.0978513,
0.088184,
0.0791352,
0.0717788,
0.0649564,
0.0570148,
0.0490038,
0.0418132,
0.0348619,
0.0277877,
0.0202911,
0.0124369,
0.00695575,
0.00316684
],
"expected": {
"Rf": 85.4599478008346,
"Rg": 106.82105137250961,
"CCT_K": 6671.950551730577,
"Duv": -0.030555152167187953,
"bins": [
{
"bin": 1,
"ref_a": 23.77074772539363,
"ref_b": 4.815349260407046,
"test_a": 24.84010385464047,
"test_b": 6.243272668301622,
"ref_a_norm": 0.9800924187343087,
"ref_b_norm": 0.19854181106137897,
"test_a_norm": 1.024183073656462,
"test_b_norm": 0.25741656429918686,
"Rcs_pct": 5.47293599187704,
"Rhs": 0.04914183129634947,
"Rf_h": 80.68739952112084
},
{
"bin": 2,
"ref_a": 22.132918839232083,
"ref_b": 14.037977826172348,
"test_a": 21.98969937705481,
"test_b": 15.736057207730394,
"ref_a_norm": 0.8444659823829852,
"ref_b_norm": 0.535609190173152,
"test_a_norm": 0.8390015443347367,
"test_b_norm": 0.6003982170307347,
"Rcs_pct": 3.1451340562952095,
"Rhs": 0.0569059861625201,
"Rf_h": 80.28428124097668
},
{
"bin": 3,
"ref_a": 11.976026213957356,
"ref_b": 18.51742411562301,
"test_a": 12.180476285596235,
"test_b": 19.66550054106383,
"ref_a_norm": 0.5430647120486894,
"ref_b_norm": 0.8396908469951747,
"test_a_norm": 0.5523357020498222,
"test_b_norm": 0.8917515040322542,
"Rcs_pct": 4.843754039808797,
"Rhs": 0.02121480489934126,
"Rf_h": 84.78882074343872
},
{
"bin": 4,
"ref_a": 4.491148579212282,
"ref_b": 22.873872220946907,
"test_a": 3.723771847592699,
"test_b": 23.584969544242426,
"ref_a_norm": 0.1926654412740695,
"ref_b_norm": 0.981264504473013,
"test_a_norm": 0.15974580523591564,
"test_b_norm": 1.0117698144544456,
"Rcs_pct": 2.349685660858956,
"Rhs": 0.038238385209932495,
"Rf_h": 90.09456622966862
},
{
"bin": 5,
"ref_a": -1.5868645985089844,
"ref_b": 21.549001996159177,
"test_a": -2.0634309816163063,
"test_b": 21.59591418688596,
"ref_a_norm": -0.07344095919641669,
"ref_b_norm": 0.997299566585843,
"test_a_norm": -0.09549671135640198,
"test_b_norm": 0.999470688361587,
"Rcs_pct": 0.6432268070812112,
"Rhs": 0.02120839222036919,
"Rf_h": 91.58715463051242
},
{
"bin": 6,
"ref_a": -10.223990098346974,
"ref_b": 16.819505972719494,
"test_a": -10.610612650763333,
"test_b": 16.6089231316328,
"ref_a_norm": -0.5194289802584076,
"ref_b_norm": 0.8545136245067779,
"test_a_norm": -0.539071307394366,
"test_b_norm": 0.8438149804985775,
"Rcs_pct": 0.2017094878310413,
"Rhs": 0.02227584627308485,
"Rf_h": 91.64501554705069
},
{
"bin": 7,
"ref_a": -17.900242198325806,
"ref_b": 11.703151983731606,
"test_a": -18.068530835428813,
"test_b": 10.775632097292377,
"ref_a_norm": -0.8369878720107697,
"ref_b_norm": 0.5472214379087167,
"test_a_norm": -0.8448567905813582,
"test_b_norm": 0.5038520305343823,
"Rcs_pct": -1.7551985087753417,
"Rhs": 0.04043208125920307,
"Rf_h": 88.89965538416794
},
{
"bin": 8,
"ref_a": -23.97681059341231,
"ref_b": 3.098306168084643,
"test_a": -25.23681830016381,
"test_b": 0.9355388031634615,
"ref_a_norm": -0.9917540988052392,
"ref_b_norm": 0.12815540372145023,
"test_a_norm": -1.0438718649621912,
"test_b_norm": 0.03869674154591825,
"Rcs_pct": 3.366381868327954,
"Rhs": 0.09790741084864807,
"Rf_h": 79.6848939764553
},
{
"bin": 9,
"ref_a": -15.697228336437052,
"ref_b": -2.509473360011409,
"test_a": -15.853297019522781,
"test_b": -4.280124825868833,
"ref_a_norm": -0.9874610675844115,
"ref_b_norm": -0.15786272519202985,
"test_a_norm": -0.9972788357351492,
"test_b_norm": -0.2692485921311571,
"Rcs_pct": 3.1359427137855063,
"Rhs": 0.10733026718884171,
"Rf_h": 85.4087697816738
},
{
"bin": 10,
"ref_a": -17.387791080354155,
"ref_b": -10.58014134998164,
"test_a": -16.93935768196364,
"test_b": -12.683857851898443,
"ref_a_norm": -0.8542799696162753,
"ref_b_norm": -0.5198131717380928,
"test_a_norm": -0.8322479778479356,
"test_b_norm": -0.6231709163206864,
"Rcs_pct": 3.9103554588257725,
"Rhs": 0.09817914261717707,
"Rf_h": 82.4972345947285
},
{
"bin": 11,
"ref_a": -14.330676734045857,
"ref_b": -21.18930913947698,
"test_a": -13.315664735269383,
"test_b": -23.24169009245573,
"ref_a_norm": -0.5602217268202898,
"ref_b_norm": -0.8283426928503037,
"test_a_norm": -0.5205423882062972,
"test_b_norm": -0.9085753589629401,
"Rcs_pct": 4.466636438683382,
"Rhs": 0.07756704530177913,
"Rf_h": 82.93841201733196
},
{
"bin": 12,
"ref_a": -3.793445918785176,
"ref_b": -20.752438688224405,
"test_a": -2.314526848250725,
"test_b": -21.57952741953776,
"ref_a_norm": -0.1798156843377708,
"ref_b_norm": -0.9837003200498307,
"test_a_norm": -0.1097124456356107,
"test_b_norm": -1.0229057099283814,
"Rcs_pct": 2.4775605892574375,
"Rhs": 0.076404816763847,
"Rf_h": 88.36976568694377
},
{
"bin": 13,
"ref_a": 2.855499880788632,
"ref_b": -16.6859343270672,
"test_a": 4.91270320048402,
"test_b": -16.958691050137723,
"ref_a_norm": 0.16867997905454465,
"ref_b_norm": -0.9856708703548858,
"test_a_norm": 0.290203014377285,
"test_b_norm": -1.0017831450021588,
"Rcs_pct": 3.951064990135031,
"Rhs": 0.11604465542511679,
"Rf_h": 85.66406917087093
},
{
"bin": 14,
"ref_a": 14.33927321585496,
"ref_b": -17.357696011203327,
"test_a": 16.345935028176754,
"test_b": -16.417432032361596,
"ref_a_norm": 0.6368895503045522,
"ref_b_norm": -0.7709550575181834,
"test_a_norm": 0.7260169363320278,
"test_b_norm": -0.729192529275822,
"Rcs_pct": 1.4792249457262263,
"Rhs": 0.09730873065290084,
"Rf_h": 84.22433355331182
},
{
"bin": 15,
"ref_a": 11.991612433584514,
"ref_b": -8.382758201925103,
"test_a": 14.294311513432381,
"test_b": -8.55061474683789,
"ref_a_norm": 0.8195968563872261,
"ref_b_norm": -0.5729406539949637,
"test_a_norm": 0.9769806058622686,
"test_b_norm": -0.5844132309562772,
"Rcs_pct": 13.723362741446678,
"Rhs": 0.07789862725121367,
"Rf_h": 81.22926471570952
},
{
"bin": 16,
"ref_a": 22.553112700703736,
"ref_b": -3.969520935572553,
"test_a": 23.477137960771586,
"test_b": -2.5360994931011853,
"ref_a_norm": 0.9848614836084623,
"ref_b_norm": -0.1733431801500663,
"test_a_norm": 1.0252123167993825,
"test_b_norm": -0.11074775985473462,
"Rcs_pct": 2.7363742543509377,
"Rhs": 0.06926472388715063,
"Rf_h": 83.5401923342264
}
]
}
}