Files
lamp-testbench/crates/tm30/tests/golden/lamp_L0011.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_L0011",
"source": "L0011/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.0,
0.00191776,
0.0227579,
0.0770541,
0.164492,
0.286831,
0.451499,
0.640854,
0.836693,
1.05988,
1.31437,
1.60802,
1.94939,
2.34304,
2.79363,
3.30068,
3.87482,
4.52086,
5.24959,
6.06931,
6.97822,
7.98503,
9.09105,
10.2977,
11.6088,
13.052,
14.6353,
16.3801,
18.2898,
20.3351,
22.6947,
25.0558,
27.0923,
28.9141,
30.3982,
31.4208,
31.8933,
31.7581,
31.0403,
29.8268,
28.2507,
26.4657,
24.6143,
22.8195,
21.1731,
19.7391,
18.5276,
17.5271,
16.6799,
15.929,
15.227,
14.5388,
13.8525,
13.1544,
12.4423,
11.7303,
11.0424,
10.4051,
9.83967,
9.35748,
8.96453,
8.6677,
8.46717,
8.35741,
8.3278,
8.36286,
8.42977,
8.53573,
8.67254,
8.83685,
9.02735,
9.24085,
9.47965,
9.74758,
10.0757,
10.4401,
10.8059,
11.1959,
11.6104,
12.0445,
12.4919,
12.9465,
13.3995,
13.8537,
14.3083,
14.7584,
15.2009,
15.6339,
16.0555,
16.4656,
16.8646,
17.2417,
17.6015,
17.9427,
18.2652,
18.5704,
18.853,
19.1137,
19.3571,
19.5838,
19.7922,
19.983,
20.1552,
20.3092,
20.4428,
20.5618,
20.662,
20.7423,
20.8085,
20.8594,
20.9048,
20.9737,
21.0476,
21.1054,
21.1569,
21.2001,
21.2417,
21.2894,
21.345,
21.4045,
21.4713,
21.5483,
21.6429,
21.7463,
21.8546,
21.963,
22.0731,
22.1913,
22.3156,
22.4396,
22.5573,
22.6722,
22.7903,
22.9199,
23.0599,
23.1999,
23.3381,
23.4739,
23.6072,
23.743,
23.8774,
24.009,
24.1386,
24.269,
24.4031,
24.5386,
24.6739,
24.8069,
24.9394,
25.0733,
25.2127,
25.3591,
25.5083,
25.6629,
25.8244,
25.9913,
26.1625,
26.3387,
26.5181,
26.697,
26.8776,
27.0529,
27.2175,
27.375,
27.5229,
27.6591,
27.7851,
27.9083,
28.0339,
28.1642,
28.2929,
28.4076,
28.5057,
28.5881,
28.6579,
28.7162,
28.7642,
28.7977,
28.8215,
28.8338,
28.8324,
28.8227,
28.803,
28.7989,
28.7876,
28.7358,
28.6675,
28.5862,
28.4902,
28.3845,
28.2679,
28.1377,
27.9935,
27.833,
27.6566,
27.4633,
27.2572,
27.041,
26.8144,
26.585,
26.3469,
26.0975,
25.8405,
25.6234,
25.4004,
25.1173,
24.8219,
24.5175,
24.2064,
23.8921,
23.5731,
23.2465,
22.9134,
22.5724,
22.2277,
21.8799,
21.527,
21.1745,
20.8206,
20.4671,
20.1135,
19.8119,
19.5046,
19.1373,
18.7691,
18.4034,
18.0349,
17.6586,
17.2759,
16.8898,
16.5081,
16.1317,
15.7579,
15.3869,
15.0172,
14.6483,
14.3342,
14.0227,
13.6597,
13.2993,
12.9449,
12.5943,
12.2502,
11.9119,
11.5783,
11.2512,
10.9315,
10.6195,
10.3144,
10.015,
9.76276,
9.51691,
9.23785,
8.96866,
8.7079,
8.45195,
8.20142,
7.95593,
7.71442,
7.47895,
7.24994,
7.02876,
6.81539,
6.636,
6.45803,
6.25255,
6.0484,
5.84716,
5.65146,
5.46213,
5.27899,
5.10073,
4.92601,
4.75394,
4.58507,
4.41866,
4.27689,
4.13975,
3.98729,
3.8405,
3.69847,
3.55805,
3.41907,
3.28248,
3.15002,
3.0228,
2.90079,
2.79916,
2.70048,
2.58838,
2.47806,
2.36986,
2.26491,
2.16513,
2.07043,
1.9818,
1.89777,
1.81719,
1.73926,
1.67202,
1.60467,
1.52668,
1.44884,
1.37306,
1.30111,
1.23427,
1.17312,
1.11668,
1.06352,
1.01957,
0.977867,
0.932468,
0.890124,
0.850335,
0.811285,
0.773359,
0.736995,
0.702003,
0.668531,
0.640765,
0.614075,
0.584256,
0.556399,
0.528725,
0.501396,
0.474882,
0.449735,
0.426112,
0.404105,
0.385923,
0.366996,
0.345289,
0.323411,
0.301877,
0.2817,
0.26297,
0.244031,
0.224813,
0.207067,
0.192563,
0.179594,
0.165,
0.149655,
0.134009,
0.118428,
0.102761,
0.0875628,
0.0736798,
0.0631096,
0.0543055
],
"expected": {
"Rf": 83.20061325202079,
"Rg": 109.31103632866656,
"CCT_K": 4008.2366766485848,
"Duv": -0.03704734699519552,
"bins": [
{
"bin": 1,
"ref_a": 21.531163532077905,
"ref_b": 5.048686995910635,
"test_a": 21.785435212283737,
"test_b": 5.5367242062084765,
"ref_a_norm": 0.9735929931108287,
"ref_b_norm": 0.22829078773681985,
"test_a_norm": 0.9850906126345529,
"test_b_norm": 0.25035878269749345,
"Rcs_pct": 1.558194823167353,
"Rhs": 0.01940089033013908,
"Rf_h": 90.05821262659362
},
{
"bin": 2,
"ref_a": 20.625817180519245,
"ref_b": 14.417308930209545,
"test_a": 19.420268711813595,
"test_b": 15.785857325760526,
"ref_a_norm": 0.8196193522586226,
"ref_b_norm": 0.5729084720993014,
"test_a_norm": 0.7717138149221365,
"test_b_norm": 0.6272912264735373,
"Rcs_pct": -0.9618559036371136,
"Rhs": 0.07183249823645123,
"Rf_h": 84.17518952057907
},
{
"bin": 3,
"ref_a": 14.616244523298993,
"ref_b": 22.320079042365585,
"test_a": 12.28587803535944,
"test_b": 24.732093830745352,
"ref_a_norm": 0.5478359706649715,
"ref_b_norm": 0.8365857692105267,
"test_a_norm": 0.4604907853206492,
"test_b_norm": 0.9269912396953657,
"Rcs_pct": 2.664301651917275,
"Rhs": 0.12285145569824632,
"Rf_h": 75.0638369003622
},
{
"bin": 4,
"ref_a": 3.739811023650333,
"ref_b": 22.13373328438182,
"test_a": 1.1377035867914689,
"test_b": 23.965935429992424,
"ref_a_norm": 0.16660288010227498,
"ref_b_norm": 0.9860240769583809,
"test_a_norm": 0.05068296046604451,
"test_b_norm": 1.067645889520008,
"Rcs_pct": 5.743861787035952,
"Rhs": 0.12961617658092814,
"Rf_h": 77.80838663500623
},
{
"bin": 5,
"ref_a": -2.229334231861381,
"ref_b": 19.11485580553453,
"test_a": -3.971195975926115,
"test_b": 20.593142480558022,
"ref_a_norm": -0.11584315895634167,
"ref_b_norm": 0.9932675181052766,
"test_a_norm": -0.20635572724413187,
"test_b_norm": 1.0700839038361878,
"Rcs_pct": 9.29985065124262,
"Rhs": 0.07378726123979826,
"Rf_h": 82.60519942543387
},
{
"bin": 6,
"ref_a": -11.175708979042474,
"ref_b": 17.11891056115798,
"test_a": -12.328931941535203,
"test_b": 18.632412283904394,
"ref_a_norm": -0.5466521549101321,
"ref_b_norm": 0.8373597921635054,
"test_a_norm": -0.6030612667365668,
"test_b_norm": 0.9113916929360695,
"Rcs_pct": 9.289449923522541,
"Rhs": 0.005772541977559086,
"Rf_h": 86.38512883357566
},
{
"bin": 7,
"ref_a": -18.252314370889888,
"ref_b": 11.16843290144685,
"test_a": -18.417179191912663,
"test_b": 11.923132364681464,
"ref_a_norm": -0.8529855793801452,
"ref_b_norm": 0.5219344799584698,
"test_a_norm": -0.8606902086135644,
"test_b_norm": 0.5572038570809544,
"Rcs_pct": 2.6000781148040937,
"Rhs": -0.025044952663644236,
"Rf_h": 88.69890817104836
},
{
"bin": 8,
"ref_a": -22.836673859359276,
"ref_b": 3.47970648377201,
"test_a": -23.218033125624956,
"test_b": 3.418572800889572,
"ref_a_norm": -0.9885894562211018,
"ref_b_norm": 0.15063494630551813,
"test_a_norm": -1.0050983292725928,
"test_b_norm": 0.14798849635883407,
"Rcs_pct": 1.5675362912649822,
"Rhs": 0.00581632051277042,
"Rf_h": 90.64984214190741
},
{
"bin": 9,
"ref_a": -19.36111163364288,
"ref_b": -2.2212707528961957,
"test_a": -19.115162836473623,
"test_b": -2.846058634598173,
"ref_a_norm": -0.993482954807069,
"ref_b_norm": -0.11398078130902325,
"test_a_norm": -0.9808625049916581,
"test_b_norm": -0.14604072304100216,
"Rcs_pct": -0.6123367054712685,
"Rhs": 0.03390604655978708,
"Rf_h": 90.30786756541741
},
{
"bin": 10,
"ref_a": -20.09183984579758,
"ref_b": -11.367057735506402,
"test_a": -18.799073917593997,
"test_b": -12.629289978589364,
"ref_a_norm": -0.8703623482626497,
"ref_b_norm": -0.49241180197749734,
"test_a_norm": -0.814360767637839,
"test_b_norm": -0.5470906879119929,
"Rcs_pct": -1.6185651130561012,
"Rhs": 0.07657664328628215,
"Rf_h": 83.14694382650767
},
{
"bin": 11,
"ref_a": -11.966769234438049,
"ref_b": -17.407076748900195,
"test_a": -9.11510818827123,
"test_b": -19.455034011149888,
"ref_a_norm": -0.5665096626479182,
"ref_b_norm": -0.8240550965357485,
"test_a_norm": -0.43151135979763056,
"test_b_norm": -0.9210058737276101,
"Rcs_pct": 0.5610586552362422,
"Rhs": 0.16610995240834442,
"Rf_h": 75.3335125540531
},
{
"bin": 12,
"ref_a": -7.90844091045402,
"ref_b": -24.367711874038044,
"test_a": -4.180966111071847,
"test_b": -26.36030988927084,
"ref_a_norm": -0.30869538491826315,
"ref_b_norm": -0.9511609534301569,
"test_a_norm": -0.16319840504611444,
"test_b_norm": -1.0289393446787478,
"Rcs_pct": 4.789884861442973,
"Rhs": 0.15787510759631254,
"Rf_h": 70.7229628325106
},
{
"bin": 13,
"ref_a": 3.3637531072497553,
"ref_b": -17.976884412196853,
"test_a": 6.244321704267421,
"test_b": -18.810313367600482,
"ref_a_norm": 0.18392338528539948,
"ref_b_norm": -0.9829405823065597,
"test_a_norm": 0.3414271945775971,
"test_b_norm": -1.0285108337445552,
"Rcs_pct": 7.542210070824177,
"Rhs": 0.14558710273383052,
"Rf_h": 79.56492813945194
},
{
"bin": 14,
"ref_a": 10.353790713765369,
"ref_b": -14.463599970908737,
"test_a": 13.157778991347373,
"test_b": -14.9329550627646,
"ref_a_norm": 0.5820809755368568,
"ref_b_norm": -0.8131308246020817,
"test_a_norm": 0.7397187216658085,
"test_b_norm": -0.8395175536072788,
"Rcs_pct": 10.951860268543005,
"Rhs": 0.11641131447604423,
"Rf_h": 80.76920338085374
},
{
"bin": 15,
"ref_a": 15.518360149768192,
"ref_b": -10.956096746269367,
"test_a": 17.531345907934767,
"test_b": -11.491167957596804,
"ref_a_norm": 0.8169192454724592,
"ref_b_norm": -0.5767520666427717,
"test_a_norm": 0.9228870662239842,
"test_b_norm": -0.6049193450158138,
"Rcs_pct": 10.375792424605516,
"Rhs": 0.035452330839052956,
"Rf_h": 85.76628657712249
},
{
"bin": 16,
"ref_a": 20.15920768488482,
"ref_b": -3.50836906480488,
"test_a": 21.29959014330147,
"test_b": -4.00311939559416,
"ref_a_norm": 0.985191784642476,
"ref_b_norm": -0.17145596365531582,
"test_a_norm": 1.040922914900381,
"test_b_norm": -0.1956346897720278,
"Rcs_pct": 5.937730768123732,
"Rhs": -0.012841534525834813,
"Rf_h": 87.77368585773596
}
]
}
}