Files
lamp-testbench/crates/tm30/tests/golden/lamp_L0008.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_L0008",
"source": "L0008/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.0,
0.00235407,
0.0238872,
0.0765528,
0.165658,
0.308773,
0.481918,
0.65961,
0.862422,
1.09211,
1.35334,
1.65196,
1.99044,
2.37038,
2.78568,
3.2388,
3.72811,
4.25583,
4.8281,
5.4395,
6.08707,
6.76392,
7.45777,
8.15872,
8.87293,
9.59272,
10.3208,
11.0516,
11.7708,
12.5094,
13.1745,
13.6934,
14.0988,
14.371,
14.4853,
14.4288,
14.189,
13.7741,
13.2059,
12.5192,
11.7523,
10.9397,
10.1163,
9.31376,
8.56355,
7.8802,
7.27172,
6.72819,
6.23875,
5.79561,
5.39043,
5.02123,
4.67877,
4.35805,
4.05762,
3.77623,
3.51611,
3.27873,
3.06385,
2.87373,
2.7118,
2.5776,
2.47069,
2.38846,
2.32839,
2.28392,
2.25934,
2.25365,
2.26508,
2.29387,
2.34028,
2.40528,
2.49046,
2.6079,
2.75053,
2.90401,
3.08043,
3.28096,
3.50428,
3.74894,
4.01396,
4.29668,
4.59783,
4.91726,
5.25261,
5.60291,
5.96688,
6.34137,
6.72575,
7.11773,
7.51206,
7.9075,
8.30013,
8.69001,
9.07559,
9.45367,
9.82119,
10.1781,
10.5237,
10.8547,
11.1721,
11.4717,
11.7538,
12.0195,
12.2688,
12.4984,
12.7059,
12.8936,
13.0633,
13.2217,
13.3718,
13.5166,
13.6535,
13.7765,
13.885,
13.9854,
14.0846,
14.1829,
14.2785,
14.3723,
14.4657,
14.5617,
14.6574,
14.7521,
14.8438,
14.9348,
15.0304,
15.1282,
15.2244,
15.3158,
15.4052,
15.4997,
15.6044,
15.7181,
15.8327,
15.9454,
16.0586,
16.1757,
16.3001,
16.4295,
16.5604,
16.693,
16.8305,
16.977,
17.13,
17.289,
17.4532,
17.6224,
17.798,
17.9819,
18.1749,
18.3752,
18.5848,
18.8047,
19.0334,
19.2705,
19.5164,
19.7535,
19.9935,
20.2527,
20.5089,
20.7571,
21.0005,
21.238,
21.4701,
21.6964,
21.9213,
22.1487,
22.3791,
22.6086,
22.8278,
23.0323,
23.2246,
23.4058,
23.5774,
23.7399,
23.8877,
24.0224,
24.1402,
24.2424,
24.3339,
24.4149,
24.4954,
24.5673,
24.6146,
24.6445,
24.659,
24.6572,
24.6421,
24.6135,
24.5691,
24.5102,
24.4332,
24.3396,
24.2295,
24.1043,
23.9691,
23.8242,
23.6756,
23.5202,
23.3532,
23.1768,
23.0266,
22.8706,
22.6654,
22.4472,
22.2188,
21.9801,
21.7373,
21.4885,
21.2306,
20.9633,
20.6872,
20.4056,
20.1229,
19.8387,
19.5546,
19.2671,
18.9765,
18.6833,
18.4331,
18.1795,
17.8757,
17.5688,
17.2615,
16.9487,
16.6291,
16.3042,
15.9763,
15.6492,
15.3222,
14.9975,
14.6742,
14.3505,
14.0273,
13.7507,
13.4763,
13.1571,
12.8384,
12.5215,
12.2036,
11.8898,
11.5817,
11.2792,
10.9849,
10.6955,
10.4105,
10.1291,
9.84979,
9.61226,
9.38047,
9.11816,
8.86484,
8.61963,
8.37793,
8.14033,
7.90783,
7.67996,
7.45686,
7.23874,
7.02784,
6.82606,
6.65842,
6.49427,
6.30563,
6.11905,
5.93527,
5.75694,
5.58386,
5.41441,
5.2488,
5.08485,
4.9241,
4.76646,
4.61047,
4.47811,
4.34793,
4.20103,
4.05925,
3.92146,
3.78599,
3.6539,
3.52511,
3.39856,
3.27463,
3.15298,
3.0491,
2.94723,
2.8326,
2.72067,
2.61237,
2.5083,
2.40842,
2.3123,
2.22142,
2.13449,
2.05164,
1.97252,
1.9037,
1.83381,
1.75188,
1.6682,
1.58545,
1.50637,
1.43087,
1.36126,
1.29688,
1.23775,
1.18994,
1.14464,
1.09615,
1.05128,
1.00956,
0.969786,
0.931044,
0.892824,
0.855824,
0.819462,
0.788105,
0.756553,
0.72056,
0.686625,
0.655348,
0.626445,
0.598651,
0.571904,
0.545501,
0.520326,
0.500079,
0.480231,
0.458527,
0.436609,
0.413529,
0.39013,
0.367104,
0.345344,
0.324909,
0.30481,
0.287975,
0.271934,
0.254048,
0.237291,
0.22057,
0.203268,
0.186058,
0.169591,
0.153681,
0.140372,
0.128209
],
"expected": {
"Rf": 70.81842557080213,
"Rg": 114.15720812864069,
"CCT_K": 2443.5849600875645,
"Duv": -0.05138863156076942,
"bins": [
{
"bin": 1,
"ref_a": 25.304677933039773,
"ref_b": 5.680905997599094,
"test_a": 24.21195069083772,
"test_b": 5.5411931961644125,
"ref_a_norm": 0.9757140763898617,
"ref_b_norm": 0.21904803385257587,
"test_a_norm": 0.9335799953044386,
"test_b_norm": 0.2136608976332411,
"Rcs_pct": -4.237546467167398,
"Rhs": 0.00293632753935819,
"Rf_h": 88.20984844262198
},
{
"bin": 2,
"ref_a": 19.78998560900307,
"ref_b": 14.035508267466435,
"test_a": 16.207820335370922,
"test_b": 16.668189888819505,
"ref_a_norm": 0.8156821408802416,
"ref_b_norm": 0.5785003414424451,
"test_a_norm": 0.6680363417820421,
"test_b_norm": 0.6870113542136926,
"Rcs_pct": -6.247750668376445,
"Rhs": 0.17225122072881785,
"Rf_h": 68.73357066069185
},
{
"bin": 3,
"ref_a": 15.605606777042368,
"ref_b": 24.142126282281545,
"test_a": 8.677606379535844,
"test_b": 30.14986630415219,
"ref_a_norm": 0.5428645594997761,
"ref_b_norm": 0.8398202605552654,
"test_a_norm": 0.3018636206872293,
"test_b_norm": 1.048808554772691,
"Rcs_pct": 3.98744682347037,
"Rhs": 0.3164926324757621,
"Rf_h": 37.43905956362215
},
{
"bin": 4,
"ref_a": 3.070600679151805,
"ref_b": 19.944631328099284,
"test_a": -2.1765556860249506,
"test_b": 25.27538127457977,
"ref_a_norm": 0.1521634831233909,
"ref_b_norm": 0.9883553381268082,
"test_a_norm": -0.10785912236854701,
"test_b_norm": 1.2525204199049977,
"Rcs_pct": 20.8361329967669,
"Rhs": 0.3065623949081127,
"Rf_h": 49.23903508741133
},
{
"bin": 5,
"ref_a": -2.5283976550914784,
"ref_b": 15.714957718534201,
"test_a": -5.510872327196974,
"test_b": 19.551273935930606,
"ref_a_norm": -0.15884831716571557,
"ref_b_norm": 0.9873029991515372,
"test_a_norm": -0.3462243344228533,
"test_b_norm": 1.2283221972281602,
"Rcs_pct": 27.294332931293713,
"Rhs": 0.13675512666154496,
"Rf_h": 66.22113183823171
},
{
"bin": 6,
"ref_a": -10.971588545232438,
"ref_b": 15.36947802053562,
"test_a": -12.625531960354555,
"test_b": 19.977651474506942,
"ref_a_norm": -0.5810063880370409,
"ref_b_norm": 0.8138989968418388,
"test_a_norm": -0.6685918535032352,
"test_b_norm": 1.0579273071363833,
"Rcs_pct": 25.15620020096342,
"Rhs": -0.06275021219920524,
"Rf_h": 66.8643685653943
},
{
"bin": 7,
"ref_a": -18.31532785167816,
"ref_b": 13.470070086304105,
"test_a": -19.54337586326706,
"test_b": 18.66226863011495,
"ref_a_norm": -0.8055897692835199,
"ref_b_norm": 0.5924737324352237,
"test_a_norm": -0.8596047955138224,
"test_b_norm": 0.8208497713931917,
"Rcs_pct": 17.179078209819355,
"Rhs": -0.1598785958622435,
"Rf_h": 63.731625187523775
},
{
"bin": 8,
"ref_a": -21.278790217491355,
"ref_b": 3.9349489067545558,
"test_a": -19.662251585517502,
"test_b": 6.909186102545491,
"ref_a_norm": -0.9833280413247971,
"ref_b_norm": 0.18184048818769183,
"test_a_norm": -0.9086251211654518,
"test_b_norm": 0.31928490144048893,
"Rcs_pct": -4.6453449654617645,
"Rhs": -0.1493772741414339,
"Rf_h": 74.16049259478112
},
{
"bin": 9,
"ref_a": -24.15277901583816,
"ref_b": -5.107099972625705,
"test_a": -23.519056880354558,
"test_b": -3.459340881246181,
"ref_a_norm": -0.9783672658662099,
"ref_b_norm": -0.2068755497430204,
"test_a_norm": -0.9526968039866301,
"test_b_norm": -0.1401290459149502,
"Rcs_pct": -3.819880807791303,
"Rhs": -0.06045592979855917,
"Rf_h": 83.25241147362108
},
{
"bin": 10,
"ref_a": -19.24333082380685,
"ref_b": -12.781672952088028,
"test_a": -17.34842512384054,
"test_b": -13.015655267708107,
"ref_a_norm": -0.8329923740437629,
"ref_b_norm": -0.5532844700377337,
"test_a_norm": -0.7509669693954559,
"test_b_norm": -0.5634129392906501,
"Rcs_pct": -6.257455537891263,
"Rhs": 0.053992387576927744,
"Rf_h": 82.46595320147664
},
{
"bin": 11,
"ref_a": -11.047097682234714,
"ref_b": -16.635270646043853,
"test_a": -7.539454895379709,
"test_b": -17.88666938190233,
"ref_a_norm": -0.5532056794785486,
"ref_b_norm": -0.8330447023975829,
"test_a_norm": -0.37755339802994103,
"test_b_norm": -0.8957110160197091,
"Rcs_pct": -4.548204344300861,
"Rhs": 0.18086507281765551,
"Rf_h": 69.74116637974268
},
{
"bin": 12,
"ref_a": -5.319347440428119,
"ref_b": -21.168036921054647,
"test_a": -0.6380866214985048,
"test_b": -22.679675631993955,
"ref_a_norm": -0.24371431026374724,
"ref_b_norm": -0.9698470678270188,
"test_a_norm": -0.029234947066085384,
"test_b_norm": -1.0391051845284356,
"Rcs_pct": 2.608449337715269,
"Rhs": 0.2238697906640351,
"Rf_h": 58.97838901229049
},
{
"bin": 13,
"ref_a": 3.7150477215029363,
"ref_b": -14.623650824756291,
"test_a": 6.103621306709806,
"test_b": -16.101499617203864,
"ref_a_norm": 0.24622262274570297,
"ref_b_norm": -0.9692132995621898,
"test_a_norm": 0.4045303745860524,
"test_b_norm": -1.067160845051808,
"Rcs_pct": 12.694982115202643,
"Rhs": 0.13615729458848314,
"Rf_h": 78.86058176123562
},
{
"bin": 14,
"ref_a": 12.966323431382717,
"ref_b": -15.444631136029074,
"test_a": 15.321433209706889,
"test_b": -17.560078255585683,
"ref_a_norm": 0.6429836967620401,
"ref_b_norm": -0.765879863750328,
"test_a_norm": 0.7597706332873325,
"test_b_norm": -0.8707822299789072,
"Rcs_pct": 15.210647531669856,
"Rhs": 0.03882415678476746,
"Rf_h": 78.40933488416722
},
{
"bin": 15,
"ref_a": 16.550541275109033,
"ref_b": -10.276651364053198,
"test_a": 18.26993824750567,
"test_b": -12.631020728116946,
"ref_a_norm": 0.8495504182369203,
"ref_b_norm": -0.5275074282637863,
"test_a_norm": 0.9378082215760583,
"test_b_norm": -0.6483587916528892,
"Rcs_pct": 14.052510164388785,
"Rhs": -0.051450827896448365,
"Rf_h": 79.22627714226047
},
{
"bin": 16,
"ref_a": 18.01078193874554,
"ref_b": -3.3980783712882636,
"test_a": 18.016908760372196,
"test_b": -4.350759141176737,
"ref_a_norm": 0.9826634665530587,
"ref_b_norm": -0.18539825107569266,
"test_a_norm": 0.9829977443095201,
"test_b_norm": -0.2373762601949485,
"Rcs_pct": 1.0468261239936534,
"Rhs": -0.0509140518936801,
"Rf_h": 89.6609963029149
}
]
}
}