Files
lamp-testbench/crates/tm30/tests/golden/daylight_6500K.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

455 lines
9.4 KiB
JSON

{
"name": "daylight_6500K",
"source": "sd_CIE_illuminant_D_series(CCT_to_xy_CIE_D(6500*1.4388/1.4380))",
"generator": "crates/tm30/tools/golden.py (tm30.py + colour-science 0.4.7, numpy 2.5.1)",
"wavelengths": [
300.0,
305.0,
310.0,
315.0,
320.0,
325.0,
330.0,
335.0,
340.0,
345.0,
350.0,
355.0,
360.0,
365.0,
370.0,
375.0,
380.0,
385.0,
390.0,
395.0,
400.0,
405.0,
410.0,
415.0,
420.0,
425.0,
430.0,
435.0,
440.0,
445.0,
450.0,
455.0,
460.0,
465.0,
470.0,
475.0,
480.0,
485.0,
490.0,
495.0,
500.0,
505.0,
510.0,
515.0,
520.0,
525.0,
530.0,
535.0,
540.0,
545.0,
550.0,
555.0,
560.0,
565.0,
570.0,
575.0,
580.0,
585.0,
590.0,
595.0,
600.0,
605.0,
610.0,
615.0,
620.0,
625.0,
630.0,
635.0,
640.0,
645.0,
650.0,
655.0,
660.0,
665.0,
670.0,
675.0,
680.0,
685.0,
690.0,
695.0,
700.0,
705.0,
710.0,
715.0,
720.0,
725.0,
730.0,
735.0,
740.0,
745.0,
750.0,
755.0,
760.0,
765.0,
770.0,
775.0,
780.0,
785.0,
790.0,
795.0,
800.0,
805.0,
810.0,
815.0,
820.0,
825.0,
830.0
],
"values": [
0.0341,
1.6643,
3.2945,
11.765250000000002,
20.236,
28.644750000000002,
37.0535,
38.50115,
39.94879999999999,
42.43025,
44.911699999999996,
45.775,
46.6383,
49.3637,
52.0891,
51.0323,
49.9755,
52.31184999999999,
54.648199999999996,
68.70154999999998,
82.7549,
87.12044999999999,
91.48599999999999,
92.45889999999999,
93.4318,
90.05704999999999,
86.6823,
95.7736,
104.8649,
110.93625,
117.0076,
117.4099,
117.81219999999999,
116.33655,
114.8609,
115.39189999999999,
115.9229,
112.3668,
108.8107,
109.0826,
109.3545,
108.5781,
107.8017,
106.29575,
104.7898,
106.23965000000001,
107.6895,
106.0475,
104.40549999999999,
104.22585,
104.0462,
102.02310000000001,
100.0,
98.1671,
96.3342,
96.0611,
95.788,
92.23679999999999,
88.6856,
89.3459,
90.00619999999999,
89.80265000000001,
89.59909999999999,
88.6489,
87.69870000000002,
85.49365,
83.2886,
83.4939,
83.6992,
81.86300000000001,
80.0268,
80.1207,
80.2146,
81.24619999999999,
82.2778,
80.28099999999999,
78.2842,
74.00274999999999,
69.72130000000001,
70.6652,
71.6091,
72.97904999999999,
74.349,
67.9765,
61.60399999999999,
65.7448,
69.8856,
72.48629999999999,
75.087,
69.33985,
63.5927,
55.00545,
46.418200000000006,
56.6118,
66.80539999999999,
65.0941,
63.382799999999996,
63.843399999999995,
64.304,
61.87794999999999,
59.4519,
55.70545,
51.959,
54.699799999999996,
57.440599999999996,
58.87655,
60.3125
],
"expected": {
"Rf": 99.9924786737848,
"Rg": 100.0011835231251,
"CCT_K": 6501.833595790215,
"Duv": 0.0032142511335876423,
"bins": [
{
"bin": 1,
"ref_a": 23.82098448657007,
"ref_b": 4.87679865972495,
"test_a": 23.821154453326805,
"test_b": 4.876499299682636,
"ref_a_norm": 0.9796799988941125,
"ref_b_norm": 0.20056694584809243,
"test_a_norm": 0.9796869890767452,
"test_b_norm": 0.20055463413838584,
"Rcs_pct": 0.00044539728222520874,
"Rhs": -1.343886063756478e-05,
"Rf_h": 99.99604941483143
},
{
"bin": 2,
"ref_a": 18.62450560525995,
"ref_b": 11.890753671989799,
"test_a": 18.6241452089483,
"test_b": 11.891080814566378,
"ref_a_norm": 0.8428653239676316,
"ref_b_norm": 0.538124563324273,
"test_a_norm": 0.8428490139747429,
"test_b_norm": 0.5381393683955934,
"Rcs_pct": -0.0005336006540544123,
"Rhs": 2.137131346054759e-05,
"Rf_h": 99.99541739381802
},
{
"bin": 3,
"ref_a": 13.41229488368166,
"ref_b": 20.708136922053775,
"test_a": 13.412031109030194,
"test_b": 20.70842340562642,
"ref_a_norm": 0.5436201231493497,
"ref_b_norm": 0.8393313777686892,
"test_a_norm": 0.5436094319731,
"test_b_norm": 0.8393429893710578,
"Rcs_pct": 0.00037149952394282626,
"Rhs": 1.5340448805088747e-05,
"Rf_h": 99.9944065710728
},
{
"bin": 4,
"ref_a": 4.497250086937527,
"ref_b": 22.85791920520157,
"test_a": 4.497498609001025,
"test_b": 22.858186643767006,
"ref_a_norm": 0.1930470793178648,
"ref_b_norm": 0.9811894950349,
"test_a_norm": 0.19305774727218733,
"test_b_norm": 0.9812009749910859,
"Rcs_pct": 0.001334058669074099,
"Rhs": -8.223344222519277e-06,
"Rf_h": 99.99476132806481
},
{
"bin": 5,
"ref_a": -1.5586795188179994,
"ref_b": 21.50037593581726,
"test_a": -1.5590319755016309,
"test_b": 21.501574102503596,
"ref_a_norm": -0.07230569860211343,
"ref_b_norm": 0.9973825173671635,
"test_a_norm": -0.07232204874107996,
"test_b_norm": 0.9974380992095189,
"Rcs_pct": 0.005770360671572851,
"Rhs": 5.19249610758116e-06,
"Rf_h": 99.98837914169252
},
{
"bin": 6,
"ref_a": -10.217046983959596,
"ref_b": 16.76273968019651,
"test_a": -10.21752051666128,
"test_b": 16.763071299032166,
"ref_a_norm": -0.5204538412781571,
"ref_b_norm": 0.8538898050092945,
"test_a_norm": -0.5204779629166255,
"test_b_norm": 0.8539066975905979,
"Rcs_pct": 0.002744693233183563,
"Rhs": 1.0671394054397755e-05,
"Rf_h": 99.99410466329093
},
{
"bin": 7,
"ref_a": -17.900786589543717,
"ref_b": 11.626028528186552,
"test_a": -17.901705684689993,
"test_b": 11.625888693436936,
"ref_a_norm": -0.8386465611395261,
"ref_b_norm": 0.5446760004707818,
"test_a_norm": -0.8386896204754904,
"test_b_norm": 0.5446694492540904,
"Rcs_pct": 0.003216286839649242,
"Rhs": 2.9369622917808765e-05,
"Rf_h": 99.99379414369255
},
{
"bin": 8,
"ref_a": -24.003468458180524,
"ref_b": 2.988107839784543,
"test_a": -24.004174105303594,
"test_b": 2.9887792076094732,
"ref_a_norm": -0.9923404654642813,
"ref_b_norm": 0.12353299398190501,
"test_a_norm": -0.9923696380063988,
"test_b_norm": 0.12356074936488434,
"Rcs_pct": 0.0034026806503831735,
"Rhs": -2.1530790442358142e-05,
"Rf_h": 99.99250082185397
},
{
"bin": 9,
"ref_a": -15.682829138461875,
"ref_b": -2.5913518818427894,
"test_a": -15.683488583671732,
"test_b": -2.5904694462259132,
"ref_a_norm": -0.9866220266595951,
"ref_b_norm": -0.16302446598628445,
"test_a_norm": -0.9866635129988057,
"test_b_norm": -0.1629689511037953,
"Rcs_pct": 0.0029858774534086,
"Rhs": -6.254176286453215e-05,
"Rf_h": 99.99138628893799
},
{
"bin": 10,
"ref_a": -17.34510818830174,
"ref_b": -10.667088018297028,
"test_a": -17.346245812857198,
"test_b": -10.66543795555791,
"ref_a_norm": -0.851807880237721,
"ref_b_norm": -0.5238543071932504,
"test_a_norm": -0.8518637482986504,
"test_b_norm": -0.5237732735998702,
"Rcs_pct": 0.0001432742604412497,
"Rhs": -9.84156021002078e-05,
"Rf_h": 99.98665763011813
},
{
"bin": 11,
"ref_a": -14.294616636351853,
"ref_b": -21.235090875195265,
"test_a": -14.295661031186077,
"test_b": -21.23353386698508,
"ref_a_norm": -0.5584238743718227,
"ref_b_norm": -0.8295557705974702,
"test_a_norm": -0.5584646739976216,
"test_b_norm": -0.8294949455624743,
"Rcs_pct": -0.002790711065419409,
"Rhs": -6.771622791120693e-05,
"Rf_h": 99.98773249529462
},
{
"bin": 12,
"ref_a": -3.7486150572267056,
"ref_b": -20.755101033422942,
"test_a": -3.7489067528403037,
"test_b": -20.754904500984047,
"ref_a_norm": -0.1777360812284449,
"ref_b_norm": -0.984078190709232,
"test_a_norm": -0.17774991162566653,
"test_b_norm": -0.9840688723596575,
"Rcs_pct": -0.0006441123452762918,
"Rhs": -1.5382569836263055e-05,
"Rf_h": 99.99737317021643
},
{
"bin": 13,
"ref_a": 1.903150415638521,
"ref_b": -15.820468782733457,
"test_a": 1.9030872159876644,
"test_b": -15.820181790253374,
"ref_a_norm": 0.11943562419036355,
"ref_b_norm": -0.9928419469755789,
"test_a_norm": 0.11943165798270773,
"test_b_norm": -0.9928239362467816,
"Rcs_pct": -0.0018438426422545185,
"Rhs": -3.7627920702582303e-07,
"Rf_h": 99.99488962788963
},
{
"bin": 14,
"ref_a": 12.608405843070699,
"ref_b": -18.774763719510062,
"test_a": 12.608193315166195,
"test_b": -18.774368795940585,
"ref_a_norm": 0.5575101679314969,
"ref_b_norm": -0.8301701106718997,
"test_a_norm": 0.5575007705128855,
"test_b_norm": -0.830152648202157,
"Rcs_pct": -0.0019740438994589617,
"Rhs": 1.8879603746129435e-06,
"Rf_h": 99.99425612441722
},
{
"bin": 15,
"ref_a": 12.088472495367219,
"ref_b": -8.349869751429393,
"test_a": 12.088193380397145,
"test_b": -8.348583245418363,
"ref_a_norm": 0.82279927261926,
"ref_b_norm": -0.5683320833607906,
"test_a_norm": 0.8227802747190338,
"test_b_norm": -0.5682445176066805,
"Rcs_pct": -0.006444510315110062,
"Rhs": 6.22535957654064e-05,
"Rf_h": 99.98875609879286
},
{
"bin": 16,
"ref_a": 22.585949520225732,
"ref_b": -3.8918436838877772,
"test_a": 22.585994282355948,
"test_b": -3.891768192820436,
"ref_a_norm": 0.985476808341529,
"ref_b_norm": -0.16981007102346227,
"test_a_norm": 0.9854787614159914,
"test_b_norm": -0.16980677717495546,
"Rcs_pct": 0.0001272948718502314,
"Rhs": 3.6115840571578373e-06,
"Rf_h": 99.99559860282885
}
]
}
}