Files
lamp-testbench/crates/tm30/tests/golden/lamp_L0009.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_L0009",
"source": "L0009/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.0,
0.000708105,
0.0137126,
0.0528357,
0.130714,
0.239916,
0.351957,
0.47484,
0.609594,
0.759688,
0.92786,
1.11488,
1.32525,
1.5587,
1.82081,
2.11505,
2.44542,
2.81629,
3.23046,
3.69317,
4.2095,
4.78235,
5.41475,
6.12133,
6.90418,
7.77361,
8.72485,
9.7423,
10.9151,
12.0903,
13.1104,
14.0354,
14.8114,
15.3828,
15.7117,
15.7658,
15.5479,
15.0876,
14.4397,
13.6753,
12.8565,
12.0423,
11.2793,
10.6044,
10.0321,
9.56104,
9.16401,
8.81352,
8.48704,
8.16803,
7.8489,
7.51834,
7.17534,
6.82447,
6.4774,
6.14935,
5.85102,
5.59231,
5.37925,
5.21908,
5.11339,
5.06023,
5.05543,
5.08969,
5.14457,
5.22565,
5.32806,
5.44953,
5.58961,
5.74487,
5.91751,
6.10945,
6.34302,
6.60079,
6.8574,
7.13116,
7.4228,
7.73024,
8.04872,
8.37505,
8.7028,
9.0333,
9.3663,
9.69586,
10.0219,
10.3418,
10.655,
10.9613,
11.2597,
11.5446,
11.8183,
12.0819,
12.337,
12.5812,
12.8111,
13.0258,
13.2273,
13.4196,
13.5993,
13.7674,
13.922,
14.0634,
14.1925,
14.3121,
14.4193,
14.5126,
14.5958,
14.6684,
14.7398,
14.8235,
14.9119,
14.995,
15.0755,
15.1529,
15.2302,
15.3099,
15.3939,
15.4806,
15.5722,
15.6736,
15.7895,
15.9152,
16.0481,
16.1832,
16.3202,
16.4637,
16.6139,
16.7662,
16.917,
17.0694,
17.2303,
17.4046,
17.5894,
17.7769,
17.9641,
18.1542,
18.3491,
18.55,
18.7527,
18.955,
19.1596,
19.3699,
19.5881,
19.8105,
20.0367,
20.2668,
20.5016,
20.7434,
20.9952,
21.2564,
21.5238,
21.798,
22.0799,
22.3708,
22.6721,
22.9841,
23.284,
23.5875,
23.9163,
24.243,
24.561,
24.8745,
25.1803,
25.4767,
25.7641,
26.0485,
26.3355,
26.6277,
26.9193,
27.197,
27.4587,
27.7068,
27.944,
28.1714,
28.388,
28.5886,
28.7762,
28.9488,
29.104,
29.2452,
29.3717,
29.4935,
29.6057,
29.6938,
29.7629,
29.8124,
29.8405,
29.8519,
29.8478,
29.827,
29.7895,
29.7298,
29.6484,
29.5446,
29.4216,
29.2847,
29.1351,
28.9773,
28.8071,
28.6237,
28.4303,
28.27,
28.1036,
27.8784,
27.6327,
27.3713,
27.0973,
26.8156,
26.5262,
26.2252,
25.9131,
25.5917,
25.2655,
24.9366,
24.6045,
24.2721,
23.9347,
23.5914,
23.2419,
22.9424,
22.6367,
22.2665,
21.8906,
21.5129,
21.13,
20.7395,
20.3423,
19.9392,
19.5359,
19.1316,
18.7281,
18.3246,
17.9201,
17.5164,
17.1711,
16.8294,
16.4297,
16.0297,
15.6313,
15.2328,
14.8423,
14.4594,
14.0834,
13.716,
13.3543,
12.9992,
12.6505,
12.3062,
12.0137,
11.728,
11.4026,
11.089,
10.7868,
10.4901,
10.1969,
9.90705,
9.62188,
9.345,
9.07824,
8.82166,
8.57506,
8.36732,
8.16029,
7.91955,
7.67969,
7.442,
7.21107,
6.98641,
6.76759,
6.55404,
6.34269,
6.13505,
5.9309,
5.73034,
5.56101,
5.39566,
5.20977,
5.03014,
4.85464,
4.68193,
4.51167,
4.34521,
4.18411,
4.02777,
3.87665,
3.74916,
3.62373,
3.48205,
3.34478,
3.21293,
3.08715,
2.96735,
2.85072,
2.73744,
2.62814,
2.52248,
2.41982,
2.33142,
2.24232,
2.13848,
2.03468,
1.93299,
1.83375,
1.73818,
1.64816,
1.56473,
1.48863,
1.42815,
1.37289,
1.31339,
1.25856,
1.20812,
1.15955,
1.11229,
1.06597,
1.02068,
0.976876,
0.940242,
0.904803,
0.864055,
0.82406,
0.785296,
0.747025,
0.709964,
0.673881,
0.639097,
0.606073,
0.579219,
0.553654,
0.525392,
0.498309,
0.472032,
0.447074,
0.423412,
0.4003,
0.37727,
0.353284,
0.332482,
0.313038,
0.292436,
0.273473,
0.255321,
0.23756,
0.219709,
0.202175,
0.184447,
0.168188,
0.152814
],
"expected": {
"Rf": 85.57633333632175,
"Rg": 109.03525236637346,
"CCT_K": 3126.5591184283076,
"Duv": -0.02988113095143269,
"bins": [
{
"bin": 1,
"ref_a": 23.8481354695577,
"ref_b": 4.856038228707849,
"test_a": 23.89079128798164,
"test_b": 4.872551902653544,
"ref_a_norm": 0.9798919379911113,
"ref_b_norm": 0.19952891985881147,
"test_a_norm": 0.9816446155803251,
"test_b_norm": 0.20020744736829565,
"Rcs_pct": 0.18513745311156438,
"Rhs": 0.00032355935838058666,
"Rf_h": 93.94112214156088
},
{
"bin": 2,
"ref_a": 20.449310095329412,
"ref_b": 15.041810777150866,
"test_a": 19.269278631378143,
"test_b": 16.274581280118575,
"ref_a_norm": 0.8055465948768648,
"ref_b_norm": 0.5925324324307392,
"test_a_norm": 0.7590623700691723,
"test_b_norm": 0.6410941724748245,
"Rcs_pct": -1.1670763146906544,
"Rhs": 0.06620286277533792,
"Rf_h": 87.04253398867661
},
{
"bin": 3,
"ref_a": 14.743848719744593,
"ref_b": 23.01107956162063,
"test_a": 12.219439831464227,
"test_b": 25.6666755167977,
"ref_a_norm": 0.5394886278274436,
"ref_b_norm": 0.8419928862198672,
"test_a_norm": 0.4471185884231482,
"test_b_norm": 0.9391631600849266,
"Rcs_pct": 2.947608562203885,
"Rhs": 0.13078779254564982,
"Rf_h": 74.17196843542611
},
{
"bin": 4,
"ref_a": 2.98208781002983,
"ref_b": 22.000803793403357,
"test_a": 0.6893235223212155,
"test_b": 24.291311630672027,
"ref_a_norm": 0.13431625938580663,
"ref_b_norm": 0.9909385159860347,
"test_a_norm": 0.031047830554630146,
"test_b_norm": 1.0941053120009128,
"Rcs_pct": 8.103780392298114,
"Rhs": 0.12141099838390124,
"Rf_h": 77.76910600231366
},
{
"bin": 5,
"ref_a": -2.6411556104875404,
"ref_b": 15.902242631718849,
"test_a": -3.8546365449764033,
"test_b": 17.47789792795958,
"ref_a_norm": -0.16384257302018906,
"ref_b_norm": 0.9864864982685391,
"test_a_norm": -0.2391201665963199,
"test_b_norm": 1.0842313705902857,
"Rcs_pct": 11.055266197942899,
"Rhs": 0.05476207710697097,
"Rf_h": 85.30538562399786
},
{
"bin": 6,
"ref_a": -12.6661520539633,
"ref_b": 17.252683217246336,
"test_a": -13.44820653505244,
"test_b": 19.509596227072453,
"ref_a_norm": -0.5917945446368995,
"ref_b_norm": 0.806088839358296,
"test_a_norm": -0.6283341008924694,
"test_b_norm": 0.9115375029496365,
"Rcs_pct": 10.79776492174532,
"Rhs": -0.02820260792952084,
"Rf_h": 83.45209156389723
},
{
"bin": 7,
"ref_a": -18.51701263480538,
"ref_b": 13.615877169378134,
"test_a": -19.24560913889828,
"test_b": 15.846837727788621,
"ref_a_norm": -0.8056421521953241,
"ref_b_norm": 0.5924025005062741,
"test_a_norm": -0.8373420849661247,
"test_b_norm": 0.6894676103697474,
"Rcs_pct": 8.028401651587743,
"Rhs": -0.06309515023010671,
"Rf_h": 83.53732482538587
},
{
"bin": 8,
"ref_a": -21.466927298264707,
"ref_b": 6.144803981207129,
"test_a": -20.687276174419484,
"test_b": 7.4059260649027285,
"ref_a_norm": -0.9613890160597628,
"ref_b_norm": 0.2751929501270718,
"test_a_norm": -0.9264726064400202,
"test_b_norm": 0.3316718724399711,
"Rcs_pct": -2.3227009458425982,
"Rhs": -0.06220554925389188,
"Rf_h": 87.66571629671147
},
{
"bin": 9,
"ref_a": -20.551562771317805,
"ref_b": -3.329307332425394,
"test_a": -20.225675750471822,
"test_b": -3.2017978246302254,
"ref_a_norm": -0.9871311059936017,
"ref_b_norm": -0.1599130375543189,
"test_a_norm": -0.9714781252983516,
"test_b_norm": -0.15378851053634393,
"Rcs_pct": -1.6547049008470265,
"Rhs": -0.0029531009043131913,
"Rf_h": 92.9607329760184
},
{
"bin": 10,
"ref_a": -20.1778100913754,
"ref_b": -13.088183756459166,
"test_a": -19.059804684501774,
"test_b": -13.762427490492884,
"ref_a_norm": -0.8389636692213026,
"ref_b_norm": -0.5441874325328809,
"test_a_norm": -0.7924786485915928,
"test_b_norm": -0.5722214954214092,
"Rcs_pct": -2.307599122939474,
"Rhs": 0.049135165144358714,
"Rf_h": 88.22329424869986
},
{
"bin": 11,
"ref_a": -11.37586678412891,
"ref_b": -17.416524810696902,
"test_a": -9.213319737849307,
"test_b": -18.768585401566725,
"ref_a_norm": -0.5468498865026123,
"ref_b_norm": -0.8372306740869448,
"test_a_norm": -0.4428939744604237,
"test_b_norm": -0.9022256493879355,
"Rcs_pct": -0.37134633619158847,
"Rhs": 0.12254545545535066,
"Rf_h": 80.90649719102427
},
{
"bin": 12,
"ref_a": -5.590481104609111,
"ref_b": -18.860947424462783,
"test_a": -3.1287228920452144,
"test_b": -20.224193973752985,
"ref_a_norm": -0.2841842314219823,
"ref_b_norm": -0.9587696921633982,
"test_a_norm": -0.15904422066200677,
"test_b_norm": -1.0280684100374824,
"Rcs_pct": 4.355355744545266,
"Rhs": 0.1362549897282458,
"Rf_h": 80.65318586070153
},
{
"bin": 13,
"ref_a": 2.8947627909204994,
"ref_b": -18.203370662979225,
"test_a": 4.894174809876978,
"test_b": -19.193936383417835,
"ref_a_norm": 0.15705007028445966,
"ref_b_norm": -0.9875906416241732,
"test_a_norm": 0.26552451906817426,
"test_b_norm": -1.0413319763215116,
"Rcs_pct": 7.387102516410985,
"Rhs": 0.09590572837524108,
"Rf_h": 84.76114138741647
},
{
"bin": 14,
"ref_a": 8.831595883829587,
"ref_b": -14.238804492266802,
"test_a": 10.738484743399184,
"test_b": -15.244943950094058,
"ref_a_norm": 0.5270921474212564,
"ref_b_norm": -0.849808136067694,
"test_a_norm": 0.6409001337812903,
"test_b_norm": -0.909857102801152,
"Rcs_pct": 11.315722059057242,
"Rhs": 0.06126646385501722,
"Rf_h": 85.31916788205297
},
{
"bin": 15,
"ref_a": 17.98758091411547,
"ref_b": -12.202739349915184,
"test_a": 19.310257206846607,
"test_b": -13.264515585790235,
"ref_a_norm": 0.8275424426014124,
"ref_b_norm": -0.5614031578939397,
"test_a_norm": 0.8883939142519867,
"test_b_norm": -0.6102515774745102,
"Rcs_pct": 7.773487739035908,
"Rhs": -0.006808710205753734,
"Rf_h": 88.41157319229939
},
{
"bin": 16,
"ref_a": 16.58202958481358,
"ref_b": -3.9550099125610516,
"test_a": 17.298333631938153,
"test_b": -4.894538544279577,
"ref_a_norm": 0.9727148370971966,
"ref_b_norm": -0.2320039777481721,
"test_a_norm": 1.014733793277866,
"test_b_norm": -0.2871174628180102,
"Rcs_pct": 5.196368126961452,
"Rhs": -0.04585700321615207,
"Rf_h": 90.62165078234413
}
]
}
}