Files
lamp-testbench/crates/tm30/tests/golden/hpcs_grid_blackbody_3000K.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
21 KiB
JSON

{
"name": "hpcs_grid_blackbody_3000K",
"source": "sd_blackbody(3000) on 380-1050 nm / 350 points",
"generator": "crates/tm30/tools/golden.py (tm30.py + colour-science 0.4.7, numpy 2.5.1)",
"wavelengths": [
380.0,
381.91977077363896,
383.8395415472779,
385.75931232091693,
387.6790830945559,
389.59885386819485,
391.5186246418338,
393.43839541547277,
395.3581661891117,
397.2779369627507,
399.1977077363897,
401.11747851002866,
403.0372492836676,
404.9570200573066,
406.87679083094554,
408.79656160458455,
410.7163323782235,
412.63610315186247,
414.55587392550143,
416.4756446991404,
418.39541547277935,
420.3151862464183,
422.2349570200573,
424.1547277936963,
426.07449856733524,
427.9942693409742,
429.91404011461316,
431.8338108882522,
433.75358166189113,
435.6733524355301,
437.59312320916905,
439.512893982808,
441.43266475644697,
443.3524355300859,
445.27220630372494,
447.1919770773639,
449.11174785100286,
451.0315186246418,
452.9512893982808,
454.8710601719198,
456.79083094555875,
458.7106017191977,
460.63037249283667,
462.55014326647563,
464.46991404011465,
466.38968481375355,
468.30945558739256,
470.2292263610315,
472.1489971346705,
474.06876790830944,
475.9885386819484,
477.9083094555874,
479.8280802292264,
481.74785100286533,
483.6676217765043,
485.58739255014325,
487.50716332378227,
489.42693409742117,
491.3467048710602,
493.26647564469914,
495.1862464183381,
497.10601719197706,
499.025787965616,
500.94555873925503,
502.865329512894,
504.78510028653295,
506.7048710601719,
508.62464183381087,
510.5444126074499,
512.4641833810888,
514.3839541547278,
516.3037249283668,
518.2234957020057,
520.1432664756447,
522.0630372492836,
523.9828080229227,
525.9025787965616,
527.8223495702006,
529.7421203438396,
531.6618911174785,
533.5816618911175,
535.5014326647564,
537.4212034383954,
539.3409742120343,
541.2607449856733,
543.1805157593124,
545.1002865329513,
547.0200573065903,
548.9398280802293,
550.8595988538682,
552.7793696275071,
554.6991404011461,
556.6189111747851,
558.538681948424,
560.458452722063,
562.3782234957021,
564.297994269341,
566.21776504298,
568.1375358166189,
570.0573065902579,
571.9770773638968,
573.8968481375358,
575.8166189111748,
577.7363896848137,
579.6561604584527,
581.5759312320916,
583.4957020057307,
585.4154727793696,
587.3352435530086,
589.2550143266476,
591.1747851002865,
593.0945558739255,
595.0143266475645,
596.9340974212034,
598.8538681948423,
600.7736389684814,
602.6934097421204,
604.6131805157593,
606.5329512893983,
608.4527220630373,
610.3724928366762,
612.2922636103152,
614.2120343839541,
616.1318051575931,
618.051575931232,
619.971346704871,
621.8911174785101,
623.810888252149,
625.730659025788,
627.6504297994269,
629.5702005730659,
631.4899713467048,
633.4097421203438,
635.3295128939828,
637.2492836676217,
639.1690544412608,
641.0888252148998,
643.0085959885387,
644.9283667621776,
646.8481375358166,
648.7679083094556,
650.6876790830945,
652.6074498567335,
654.5272206303725,
656.4469914040114,
658.3667621776503,
660.2865329512895,
662.2063037249284,
664.1260744985673,
666.0458452722063,
667.9656160458453,
669.8853868194842,
671.8051575931232,
673.7249283667622,
675.6446991404011,
677.56446991404,
679.4842406876791,
681.4040114613181,
683.323782234957,
685.243553008596,
687.163323782235,
689.0830945558739,
691.0028653295128,
692.9226361031518,
694.8424068767908,
696.7621776504297,
698.6819484240688,
700.6017191977078,
702.5214899713467,
704.4412607449856,
706.3610315186247,
708.2808022922636,
710.2005730659025,
712.1203438395415,
714.0401146131805,
715.9598853868195,
717.8796561604585,
719.7994269340975,
721.7191977077364,
723.6389684813753,
725.5587392550143,
727.4785100286533,
729.3982808022922,
731.3180515759312,
733.2378223495703,
735.1575931232092,
737.077363896848,
738.9971346704871,
740.9169054441261,
742.836676217765,
744.756446991404,
746.676217765043,
748.5959885386819,
750.5157593123208,
752.43553008596,
754.3553008595989,
756.2750716332378,
758.1948424068768,
760.1146131805158,
762.0343839541547,
763.9541547277937,
765.8739255014327,
767.7936962750716,
769.7134670487105,
771.6332378223495,
773.5530085959886,
775.4727793696275,
777.3925501432665,
779.3123209169055,
781.2320916905444,
783.1518624641833,
785.0716332378223,
786.9914040114613,
788.9111747851002,
790.8309455587392,
792.7507163323783,
794.6704871060172,
796.5902578796561,
798.5100286532952,
800.4297994269341,
802.349570200573,
804.269340974212,
806.189111747851,
808.1088825214899,
810.028653295129,
811.948424068768,
813.8681948424069,
815.7879656160458,
817.7077363896848,
819.6275071633238,
821.5472779369627,
823.4670487106017,
825.3868194842407,
827.3065902578796,
829.2263610315185,
831.1461318051576,
833.0659025787966,
834.9856733524355,
836.9054441260745,
838.8252148997135,
840.7449856733524,
842.6647564469913,
844.5845272206304,
846.5042979942693,
848.4240687679082,
850.3438395415473,
852.2636103151863,
854.1833810888252,
856.1031518624642,
858.0229226361032,
859.9426934097421,
861.862464183381,
863.78223495702,
865.702005730659,
867.6217765042979,
869.541547277937,
871.461318051576,
873.3810888252149,
875.3008595988538,
877.2206303724929,
879.1404011461318,
881.0601719197707,
882.9799426934097,
884.8997134670487,
886.8194842406876,
888.7392550143267,
890.6590257879657,
892.5787965616046,
894.4985673352436,
896.4183381088825,
898.3381088825215,
900.2578796561604,
902.1776504297994,
904.0974212034383,
906.0171919770773,
907.9369627507164,
909.8567335243553,
911.7765042979943,
913.6962750716332,
915.6160458452722,
917.5358166189112,
919.4555873925501,
921.3753581661891,
923.295128939828,
925.214899713467,
927.134670487106,
929.054441260745,
930.974212034384,
932.8939828080229,
934.8137535816619,
936.7335243553008,
938.6532951289398,
940.5730659025788,
942.4928366762177,
944.4126074498568,
946.3323782234957,
948.2521489971347,
950.1719197707736,
952.0916905444126,
954.0114613180516,
955.9312320916905,
957.8510028653295,
959.7707736389684,
961.6905444126074,
963.6103151862465,
965.5300859598854,
967.4498567335244,
969.3696275071633,
971.2893982808023,
973.2091690544412,
975.1289398280802,
977.0487106017192,
978.9684813753581,
980.8882521489971,
982.808022922636,
984.7277936962751,
986.6475644699141,
988.567335243553,
990.487106017192,
992.4068767908309,
994.3266475644699,
996.2464183381088,
998.1661891117478,
1000.0859598853868,
1002.0057306590257,
1003.9255014326648,
1005.8452722063037,
1007.7650429799427,
1009.6848137535817,
1011.6045845272206,
1013.5243553008596,
1015.4441260744985,
1017.3638968481375,
1019.2836676217764,
1021.2034383954154,
1023.1232091690545,
1025.0429799426934,
1026.9627507163323,
1028.8825214899712,
1030.8022922636103,
1032.7220630372494,
1034.6418338108883,
1036.5616045845272,
1038.4813753581661,
1040.401146131805,
1042.320916905444,
1044.240687679083,
1046.1604584527222,
1048.080229226361,
1050.0
],
"values": [
49.6314849410213,
51.56640967361729,
53.54954532014713,
55.58114841747607,
57.66145188395817,
59.79066489774875,
61.96897280297109,
64.19653704324628,
66.47349512206164,
68.79996058941953,
71.17602305417832,
73.60174822147297,
76.07717795457205,
78.60233036051488,
81.17719989884456,
83.80175751274221,
86.4759507818438,
89.19970409601255,
91.97291884932835,
94.7954736535474,
97.66722457027855,
100.5880053611153,
103.55762775496177,
106.57588173178723,
109.64253582204437,
112.75733742098798,
115.92001311713236,
119.13026903409741,
122.38779118508609,
125.69224583924148,
129.04327989915166,
132.4405212887731,
135.8835793510551,
139.37204525455437,
142.9054924083481,
146.48347688455257,
150.10553784778472,
153.77119799089928,
157.47996397636652,
161.2313268826567,
165.02476265502295,
168.85973256007117,
172.73568364353204,
176.65204919067702,
180.60824918882545,
184.60369079140435,
188.63776878304913,
192.70986604524163,
196.81935402200037,
200.96559318515858,
205.1479334987784,
209.3657148822703,
213.6182676718043,
217.90491307961415,
222.2249636507914,
226.57772371722226,
230.96248984831507,
235.37855129817902,
239.82519044894673,
244.30168324992715,
248.8072996523156,
253.34130403917626,
257.9029556504542,
262.49150900276857,
267.1062143037615,
271.74631786080386,
276.4110624838306,
281.09968788213496,
285.8114310549571,
290.5455266756924,
295.3012074695922,
300.0777045848046,
304.87424795664805,
309.6900666649969,
314.52438928468433,
319.37644422883255,
324.24546008503046,
329.1306659443028,
334.0312917227902,
338.9465684761055,
343.8757287063209,
348.8180066615578,
353.7726386281539,
358.7388632154027,
363.715921632843,
368.7030579601181,
373.6995194093935,
378.7045565803637,
383.7174237078595,
388.7373789020923,
393.76368438156294,
398.7956066986696,
403.8324169580665,
408.8733910278181,
413.9178097434116,
418.96495910467337,
424.01413046566745,
429.0646207176412,
434.11573246506856,
439.166774194906,
444.2170604390925,
449.2659119304199,
454.31265575182016,
459.3566254791826,
464.39716131777595,
469.4336102323656,
474.46532607113585,
479.49166968349175,
484.51200903185776,
489.52571929755976,
494.5321829808937,
499.53078999548677,
504.5209377570458,
509.5020312666078,
514.4734831883841,
519.4347139223207,
524.3851516714533,
529.3242325041936,
534.2514004116329,
539.166107359975,
544.0678133382102,
548.9559864011312,
553.830102707798,
558.6896465555608,
563.5341104097483,
568.3629949291172,
573.1758089871818,
577.9720696895143,
582.751302387137,
587.5130406860837,
592.2568264532637,
596.982209818703,
601.6887491742813,
606.3760111690546,
611.0435707012667,
615.6910109071498,
620.3179231465998,
624.9239069858343,
629.5085701771243,
634.0715286356834,
638.6124064138245,
643.1308356724503,
647.6264566499983,
652.0989176288919,
656.5478748996219,
660.972992722513,
665.3739432872771,
669.7504066704283,
674.1020707906449,
678.4286313621618,
682.7297918462524,
687.0052634009071,
691.2547648287633,
695.4780225233532,
699.674770413781,
703.8447499078494,
707.9877098337483,
712.1034063803531,
716.1916030361967,
720.2520705271977,
724.2845867531917,
728.2889367233379,
732.2649124904664,
736.2123130844086,
740.1309444443908,
744.0206193505325,
747.8811573545127,
751.7123847094625,
755.5141342991246,
759.2862455663465,
763.0285644409458,
766.740943267004,
770.4232407296345,
774.075321781269,
777.6970575675172,
781.2883253526267,
784.8490084446062,
788.3789961200392,
791.8781835486293,
795.3464717175369,
798.7837673555101,
802.1899828568805,
805.5650362054466,
808.9088508982662,
812.2213558694226,
815.5024854137627,
818.752179110667,
821.9703817478686,
825.1570432453432,
828.3121185793268,
831.4355677064481,
834.5273554880434,
837.5874516146553,
840.6158305307384,
843.6124713596234,
846.5773578287199,
849.5104781950193,
852.4118251708984,
855.281395850244,
858.1191916349377,
860.9252181616821,
863.6994852292346,
866.4420067260254,
869.1528005581926,
871.8318885780666,
874.4792965130794,
877.095053895156,
879.6791939905778,
882.2317537303272,
884.7527736409484,
887.2422977759096,
889.7003736474999,
892.1270521592645,
894.5223875389697,
896.886437272151,
899.2192620361998,
901.5209256350399,
903.7914949343825,
906.0310397975695,
908.2396330220198,
910.4173502762604,
912.564270037591,
914.6804735303425,
916.7660446647646,
918.8210699765418,
920.8456385669216,
922.8398420434895,
924.8037744615817,
926.7375322663191,
928.6412142353029,
930.5149214219425,
932.3587570994347,
934.172826705392,
935.9572377871111,
937.7120999475078,
939.4375247916838,
941.1336258741597,
942.8005186467573,
944.4383204071218,
946.047150247916,
947.6271290066404,
949.1783792161272,
950.7010250556666,
952.1951923027846,
953.6610082856797,
955.0986018362773,
956.5081032439537,
957.889644209885,
959.2433578020335,
960.5693784107808,
961.867841705177,
963.1388845898347,
964.382645162442,
965.5992626718966,
966.7888774770694,
967.9516310061779,
969.087665716776,
970.1971250563506,
971.2801534235301,
972.3368961298877,
973.3674993623463,
974.3721101461795,
975.3508763085941,
976.3039464429048,
977.2314698732922,
978.1335966201233,
979.0104773658603,
979.8622634215254,
980.6891066937309,
981.4911596522759,
982.2685752982753,
983.0215071328564,
983.7501091263916,
984.4545356882616,
985.1349416371673,
985.791482171949,
986.4243128429497,
987.0335895238753,
987.6194683841841,
988.1821058619752,
988.7216586373761,
989.2382836064337,
989.7321378554973,
990.2033786360736,
990.6521633401865,
991.0786494761855,
991.4829946450468,
991.8653565171261,
992.225892809371,
992.5647612629949,
992.882119621595,
993.1781256097133,
993.4529369118359,
993.706711151825,
993.9396058727867,
994.1517785173432,
994.3433864083397,
994.5145867299568,
994.6655365092205,
994.7963925979323,
994.9073116549739,
994.9984501290194,
995.0699642416272,
995.1220099707081,
995.1547430343755,
995.1683188751657,
995.1628926446153,
995.1386191882141,
995.0956530306931,
995.0341483616852,
994.9542590217111,
994.8561384885192,
994.739939863753,
994.6058158599564,
994.4539187878997,
994.2844005442236,
994.0974125994101,
993.8931059860588,
993.6716312874664,
993.4331386265153,
993.1777776548598,
992.9056975424013,
992.617046967052,
992.3119741047926,
991.9906266199956,
991.6531516560317,
991.299695826156,
990.930405204635,
990.5454253181719,
990.1449011375558,
989.7289770695896,
989.2977969492548,
988.8515040321319,
988.3902409870491,
987.9141498889846,
987.4233722121891,
986.9180488235472,
986.398319976163,
985.8643253031615,
985.3162038117224,
984.7540938773078,
984.1781332381246,
983.5884589897747,
982.9852075801157,
982.3685148043298,
981.7385158001713,
981.0953450434271,
980.4391363435489,
979.7700228394827,
979.0881369956787
],
"expected": {
"Rf": 99.9999404466453,
"Rg": 100.00020892298296,
"CCT_K": 2999.993738385895,
"Duv": 2.527007121615376e-06,
"bins": [
{
"bin": 1,
"ref_a": 23.977919673617148,
"ref_b": 5.025826327691377,
"test_a": 23.977911678030395,
"test_b": 5.025790348792663,
"ref_a_norm": 0.9787317202561051,
"ref_b_norm": 0.2051443876018193,
"test_a_norm": 0.9787313938919132,
"test_b_norm": 0.20514291901363857,
"Rcs_pct": -6.066005365188216e-05,
"Rhs": -1.3766991753388021e-06,
"Rf_h": 100.00002596533349
},
{
"bin": 2,
"ref_a": 20.533247514182666,
"ref_b": 15.081050158444745,
"test_a": 20.53323811205277,
"test_b": 15.081057688135719,
"ref_a_norm": 0.8059679768620203,
"ref_b_norm": 0.5919591373337706,
"test_a_norm": 0.8059676078110163,
"test_b_norm": 0.5919594328880806,
"Rcs_pct": -1.4265351829400396e-05,
"Rhs": 4.5077817977717796e-07,
"Rf_h": 100.00010979403507
},
{
"bin": 3,
"ref_a": 14.806820628027964,
"ref_b": 22.930348737830425,
"test_a": 14.806804572745335,
"test_b": 22.93039794888169,
"ref_a_norm": 0.5424643414850465,
"ref_b_norm": 0.8400788285733636,
"test_a_norm": 0.5424637532819111,
"test_b_norm": 0.840080631474958,
"Rcs_pct": 0.0001172269736754126,
"Rhs": 1.4907114918684568e-06,
"Rf_h": 99.9999952506379
},
{
"bin": 4,
"ref_a": 2.716086439399598,
"ref_b": 20.47559285752593,
"test_a": 2.716069083652604,
"test_b": 20.475665457086464,
"ref_a_norm": 0.13149807770251556,
"ref_b_norm": 0.9913164255476368,
"test_a_norm": 0.13149723743199485,
"test_b_norm": 0.9913199404220215,
"Rcs_pct": 0.00032834084125179163,
"Rhs": 1.5098429338451931e-06,
"Rf_h": 99.99991624645564
},
{
"bin": 5,
"ref_a": -2.940166482506493,
"ref_b": 16.861430156777654,
"test_a": -2.9401826038614396,
"test_b": 16.86149796384434,
"ref_a_norm": -0.1717803122659738,
"ref_b_norm": 0.985135282241888,
"test_a_norm": -0.17178125416208864,
"test_b_norm": 0.9851392438947938,
"Rcs_pct": 0.00040692856724410046,
"Rhs": 1.5091770399701245e-07,
"Rf_h": 99.99994249768572
},
{
"bin": 6,
"ref_a": -12.720583405557853,
"ref_b": 17.000378351966575,
"test_a": -12.720589092236102,
"test_b": 17.00046893741518,
"ref_a_norm": -0.5991043891514255,
"ref_b_norm": 0.8006709254740659,
"test_a_norm": -0.5991046569782845,
"test_b_norm": 0.8006751917988189,
"Rcs_pct": 0.0003696116018671311,
"Rhs": -2.1475531424521534e-06,
"Rf_h": 99.99982598600765
},
{
"bin": 7,
"ref_a": -18.66726319837078,
"ref_b": 13.268820142492949,
"test_a": -18.667255621707557,
"test_b": 13.268943176704765,
"ref_a_norm": -0.8150723996259367,
"ref_b_norm": 0.5793591143392993,
"test_a_norm": -0.8150720688045942,
"test_b_norm": 0.5793644864063878,
"Rcs_pct": 0.0002709492670712323,
"Rhs": -4.650505029749752e-06,
"Rf_h": 99.99961608444593
},
{
"bin": 8,
"ref_a": -21.454441703188817,
"ref_b": 5.81316994741631,
"test_a": -21.45445798835348,
"test_b": 5.813276652992987,
"ref_a_norm": -0.9651969424729813,
"ref_b_norm": 0.2615241140713576,
"test_a_norm": -0.9651976751133994,
"test_b_norm": 0.2615289145643174,
"Rcs_pct": 0.00016550926552716128,
"Rhs": -4.5653217785923566e-06,
"Rf_h": 99.99971021530266
},
{
"bin": 9,
"ref_a": -22.56418178910898,
"ref_b": -3.728941328110815,
"test_a": -22.5641939870357,
"test_b": -3.7288473580402615,
"ref_a_norm": -0.9866181631342824,
"ref_b_norm": -0.16304784627076357,
"test_a_norm": -0.9866186964882577,
"test_b_norm": -0.16304373743228381,
"Rcs_pct": -2.7848889390952563e-05,
"Rhs": -4.13394049927232e-06,
"Rf_h": 99.99979408790834
},
{
"bin": 10,
"ref_a": -18.138151750806145,
"ref_b": -11.848435202343946,
"test_a": -18.138196709271842,
"test_b": -11.848352393371503,
"ref_a_norm": -0.8372047464600949,
"ref_b_norm": -0.5468895798099359,
"test_a_norm": -0.837206821613142,
"test_b_norm": -0.5468857575867165,
"Rcs_pct": -3.9808674509672646e-05,
"Rhs": -4.3309557203316795e-06,
"Rf_h": 99.99979188149966
},
{
"bin": 11,
"ref_a": -10.989344163529712,
"ref_b": -15.749942004188728,
"test_a": -10.9893992442997,
"test_b": -15.74989347622865,
"ref_a_norm": -0.5722170572465619,
"ref_b_norm": -0.8201022127735571,
"test_a_norm": -0.5722199253118118,
"test_b_norm": -0.8200996859142562,
"Rcs_pct": -5.075950441342222e-05,
"Rhs": -3.7885569119022477e-06,
"Rf_h": 99.9999400706674
},
{
"bin": 12,
"ref_a": -6.738130113701561,
"ref_b": -21.15580993409248,
"test_a": -6.738177473389229,
"test_b": -21.15580128496962,
"ref_a_norm": -0.30347913883299216,
"ref_b_norm": -0.9528380829360178,
"test_a_norm": -0.3034812718694557,
"test_b_norm": -0.9528376933875358,
"Rcs_pct": 3.4071353348639173e-06,
"Rhs": -2.1680479048292833e-06,
"Rf_h": 100.00009330304174
},
{
"bin": 13,
"ref_a": 3.140000075381524,
"ref_b": -18.091771778600368,
"test_a": 3.1399669761079396,
"test_b": -18.091804967222387,
"ref_a_norm": 0.1710031191208372,
"ref_b_norm": -0.9852704873540792,
"test_a_norm": 0.17100131654794304,
"test_b_norm": -0.9852722947928526,
"Rcs_pct": 0.00014210448177820405,
"Rhs": -2.1205507737651178e-06,
"Rf_h": 100.00011542850079
},
{
"bin": 14,
"ref_a": 9.195915239651905,
"ref_b": -14.070998289447374,
"test_a": 9.195859736334171,
"test_b": -14.071027867663329,
"ref_a_norm": 0.547067948301649,
"ref_b_norm": -0.8370882032026399,
"test_a_norm": 0.5470646463914676,
"test_b_norm": -0.8370899628201978,
"Rcs_pct": -3.7137448018051166e-05,
"Rhs": -3.723029115016219e-06,
"Rf_h": 99.99999646231082
},
{
"bin": 15,
"ref_a": 18.268111183819318,
"ref_b": -11.932033222898948,
"test_a": 18.268074707789726,
"test_b": -11.932095550246302,
"ref_a_norm": 0.837231934943391,
"ref_b_norm": -0.5468479561184675,
"test_a_norm": 0.8372302632381705,
"test_b_norm": -0.5468508125958066,
"Rcs_pct": 1.9700168934567813e-05,
"Rhs": -3.3038237646135215e-06,
"Rf_h": 99.999909284548
},
{
"bin": 16,
"ref_a": 16.784863949608233,
"ref_b": -3.807441345888433,
"test_a": 16.78483549373106,
"test_b": -3.8074587102455086,
"ref_a_norm": 0.9752244391482773,
"ref_b_norm": -0.22121775084275702,
"test_a_norm": 0.9752227858213905,
"test_b_norm": -0.22121875973657001,
"Rcs_pct": -0.0001424733255350465,
"Rhs": -1.3120562759872044e-06,
"Rf_h": 100.00003290022211
}
]
}
}