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.
This commit is contained in:
commit
2a3f28001c
241 files changed
+46390
No files matched your search
@@ -0,0 +1,435 @@
|
||||
{
|
||||
"name": "illuminant_D65",
|
||||
"source": "colour.SDS_ILLUMINANTS['D65'] (300.0, 780.0, 5.0)",
|
||||
"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
|
||||
],
|
||||
"values": [
|
||||
0.0341,
|
||||
1.6643,
|
||||
3.2945,
|
||||
11.7652,
|
||||
20.236,
|
||||
28.6447,
|
||||
37.0535,
|
||||
38.5011,
|
||||
39.9488,
|
||||
42.4302,
|
||||
44.9117,
|
||||
45.775,
|
||||
46.6383,
|
||||
49.3637,
|
||||
52.0891,
|
||||
51.0323,
|
||||
49.9755,
|
||||
52.3118,
|
||||
54.6482,
|
||||
68.7015,
|
||||
82.7549,
|
||||
87.1204,
|
||||
91.486,
|
||||
92.4589,
|
||||
93.4318,
|
||||
90.057,
|
||||
86.6823,
|
||||
95.7736,
|
||||
104.865,
|
||||
110.936,
|
||||
117.008,
|
||||
117.41,
|
||||
117.812,
|
||||
116.336,
|
||||
114.861,
|
||||
115.392,
|
||||
115.923,
|
||||
112.367,
|
||||
108.811,
|
||||
109.082,
|
||||
109.354,
|
||||
108.578,
|
||||
107.802,
|
||||
106.296,
|
||||
104.79,
|
||||
106.239,
|
||||
107.689,
|
||||
106.047,
|
||||
104.405,
|
||||
104.225,
|
||||
104.046,
|
||||
102.023,
|
||||
100.0,
|
||||
98.1671,
|
||||
96.3342,
|
||||
96.0611,
|
||||
95.788,
|
||||
92.2368,
|
||||
88.6856,
|
||||
89.3459,
|
||||
90.0062,
|
||||
89.8026,
|
||||
89.5991,
|
||||
88.6489,
|
||||
87.6987,
|
||||
85.4936,
|
||||
83.2886,
|
||||
83.4939,
|
||||
83.6992,
|
||||
81.863,
|
||||
80.0268,
|
||||
80.1207,
|
||||
80.2146,
|
||||
81.2462,
|
||||
82.2778,
|
||||
80.281,
|
||||
78.2842,
|
||||
74.0027,
|
||||
69.7213,
|
||||
70.6652,
|
||||
71.6091,
|
||||
72.979,
|
||||
74.349,
|
||||
67.9765,
|
||||
61.604,
|
||||
65.7448,
|
||||
69.8856,
|
||||
72.4863,
|
||||
75.087,
|
||||
69.3398,
|
||||
63.5927,
|
||||
55.0054,
|
||||
46.4182,
|
||||
56.6118,
|
||||
66.8054,
|
||||
65.0941,
|
||||
63.3828
|
||||
],
|
||||
"expected": {
|
||||
"Rf": 99.99244522554164,
|
||||
"Rg": 100.00121956215816,
|
||||
"CCT_K": 6501.83224982686,
|
||||
"Duv": 0.0032141045445623906,
|
||||
"bins": [
|
||||
{
|
||||
"bin": 1,
|
||||
"ref_a": 23.82098448657007,
|
||||
"ref_b": 4.87679865972495,
|
||||
"test_a": 23.821160302854967,
|
||||
"test_b": 4.8765061128000555,
|
||||
"ref_a_norm": 0.9796799988941125,
|
||||
"ref_b_norm": 0.20056694584809243,
|
||||
"test_a_norm": 0.9796872296489073,
|
||||
"test_b_norm": 0.20055491433985567,
|
||||
"Rcs_pct": 0.00047445870527523186,
|
||||
"Rhs": -1.3210976460986435e-05,
|
||||
"Rf_h": 99.99605279472277
|
||||
},
|
||||
{
|
||||
"bin": 2,
|
||||
"ref_a": 18.62450560525995,
|
||||
"ref_b": 11.890753671989799,
|
||||
"test_a": 18.624146960395258,
|
||||
"test_b": 11.891087639908301,
|
||||
"ref_a_norm": 0.8428653239676316,
|
||||
"ref_b_norm": 0.538124563324273,
|
||||
"test_a_norm": 0.8428490932377279,
|
||||
"test_b_norm": 0.5381396772813245,
|
||||
"Rcs_pct": -0.0005098494059486001,
|
||||
"Rhs": 2.1584106404644453e-05,
|
||||
"Rf_h": 99.9953663488081
|
||||
},
|
||||
{
|
||||
"bin": 3,
|
||||
"ref_a": 13.41229488368166,
|
||||
"ref_b": 20.708136922053775,
|
||||
"test_a": 13.412035699930033,
|
||||
"test_b": 20.70842867846364,
|
||||
"ref_a_norm": 0.5436201231493497,
|
||||
"ref_b_norm": 0.8393313777686892,
|
||||
"test_a_norm": 0.5436096180490518,
|
||||
"test_b_norm": 0.839343203086939,
|
||||
"Rcs_pct": 0.0003996071760181326,
|
||||
"Rhs": 1.5304466487483893e-05,
|
||||
"Rf_h": 99.99437869743511
|
||||
},
|
||||
{
|
||||
"bin": 4,
|
||||
"ref_a": 4.497250086937527,
|
||||
"ref_b": 22.85791920520157,
|
||||
"test_a": 4.497505240525093,
|
||||
"test_b": 22.85818791759557,
|
||||
"ref_a_norm": 0.1930470793178648,
|
||||
"ref_b_norm": 0.9811894950349,
|
||||
"test_a_norm": 0.19305803193422033,
|
||||
"test_b_norm": 0.9812010296709188,
|
||||
"Rcs_pct": 0.0013449750673735648,
|
||||
"Rhs": -8.491869048160494e-06,
|
||||
"Rf_h": 99.99473421016543
|
||||
},
|
||||
{
|
||||
"bin": 5,
|
||||
"ref_a": -1.5586795188179994,
|
||||
"ref_b": 21.50037593581726,
|
||||
"test_a": -1.5590285200318565,
|
||||
"test_b": 21.501575110842797,
|
||||
"ref_a_norm": -0.07230569860211343,
|
||||
"ref_b_norm": 0.9973825173671635,
|
||||
"test_a_norm": -0.07232188844503898,
|
||||
"test_b_norm": 0.99743814598544,
|
||||
"Rcs_pct": 0.0057718211644451085,
|
||||
"Rhs": 5.026154580549775e-06,
|
||||
"Rf_h": 99.98834348039617
|
||||
},
|
||||
{
|
||||
"bin": 6,
|
||||
"ref_a": -10.217046983959596,
|
||||
"ref_b": 16.76273968019651,
|
||||
"test_a": -10.21752366701954,
|
||||
"test_b": 16.763070105182695,
|
||||
"ref_a_norm": -0.5204538412781571,
|
||||
"ref_b_norm": 0.8538898050092945,
|
||||
"test_a_norm": -0.5204781233950945,
|
||||
"test_b_norm": 0.8539066367762017,
|
||||
"Rcs_pct": 0.0027485524069864745,
|
||||
"Rhs": 1.0838613693084403e-05,
|
||||
"Rf_h": 99.99408013594328
|
||||
},
|
||||
{
|
||||
"bin": 7,
|
||||
"ref_a": -17.900786589543717,
|
||||
"ref_b": 11.626028528186552,
|
||||
"test_a": -17.901714573540993,
|
||||
"test_b": 11.625883549212347,
|
||||
"ref_a_norm": -0.8386465611395261,
|
||||
"ref_b_norm": 0.5446760004707818,
|
||||
"test_a_norm": -0.8386900369155326,
|
||||
"test_b_norm": 0.5446692082486888,
|
||||
"Rcs_pct": 0.0032375230209792287,
|
||||
"Rhs": 2.9801373276962557e-05,
|
||||
"Rf_h": 99.99373084755142
|
||||
},
|
||||
{
|
||||
"bin": 8,
|
||||
"ref_a": -24.003468458180524,
|
||||
"ref_b": 2.988107839784543,
|
||||
"test_a": -24.004187731857947,
|
||||
"test_b": 2.9887719661165426,
|
||||
"ref_a_norm": -0.9923404654642813,
|
||||
"ref_b_norm": 0.12353299398190501,
|
||||
"test_a_norm": -0.9923702013492053,
|
||||
"test_b_norm": 0.12356044999038028,
|
||||
"Rcs_pct": 0.0034520919767941057,
|
||||
"Rhs": -2.1127265605905687e-05,
|
||||
"Rf_h": 99.9924518819128
|
||||
},
|
||||
{
|
||||
"bin": 9,
|
||||
"ref_a": -15.682829138461875,
|
||||
"ref_b": -2.5913518818427894,
|
||||
"test_a": -15.683498486181422,
|
||||
"test_b": -2.590471501753139,
|
||||
"ref_a_norm": -0.9866220266595951,
|
||||
"ref_b_norm": -0.16302446598628445,
|
||||
"test_a_norm": -0.9866641359753168,
|
||||
"test_b_norm": -0.1629690804190113,
|
||||
"Rcs_pct": 0.003049500887327366,
|
||||
"Rhs": -6.253646909230542e-05,
|
||||
"Rf_h": 99.9913408723485
|
||||
},
|
||||
{
|
||||
"bin": 10,
|
||||
"ref_a": -17.34510818830174,
|
||||
"ref_b": -10.667088018297028,
|
||||
"test_a": -17.346258473664765,
|
||||
"test_b": -10.665436755235996,
|
||||
"ref_a_norm": -0.851807880237721,
|
||||
"ref_b_norm": -0.5238543071932504,
|
||||
"test_a_norm": -0.8518643700633312,
|
||||
"test_b_norm": -0.5237732146527795,
|
||||
"Rcs_pct": 0.0001916971793549633,
|
||||
"Rhs": -9.881004876344647e-05,
|
||||
"Rf_h": 99.98660145516835
|
||||
},
|
||||
{
|
||||
"bin": 11,
|
||||
"ref_a": -14.294616636351853,
|
||||
"ref_b": -21.235090875195265,
|
||||
"test_a": -14.295672963416688,
|
||||
"test_b": -21.233533565349557,
|
||||
"ref_a_norm": -0.5584238743718227,
|
||||
"ref_b_norm": -0.8295557705974702,
|
||||
"test_a_norm": -0.5584651401341132,
|
||||
"test_b_norm": -0.8294949337789839,
|
||||
"Rcs_pct": -0.002765793670910907,
|
||||
"Rhs": -6.811035279568195e-05,
|
||||
"Rf_h": 99.98768382951182
|
||||
},
|
||||
{
|
||||
"bin": 12,
|
||||
"ref_a": -3.7486150572267056,
|
||||
"ref_b": -20.755101033422942,
|
||||
"test_a": -3.7489130274456035,
|
||||
"test_b": -20.754904452646418,
|
||||
"ref_a_norm": -0.1777360812284449,
|
||||
"ref_b_norm": -0.984078190709232,
|
||||
"test_a_norm": -0.17775020912854164,
|
||||
"test_b_norm": -0.9840688700677869,
|
||||
"Rcs_pct": -0.000638533135403464,
|
||||
"Rhs": -1.5674803398836643e-05,
|
||||
"Rf_h": 99.99734076653297
|
||||
},
|
||||
{
|
||||
"bin": 13,
|
||||
"ref_a": 1.903150415638521,
|
||||
"ref_b": -15.820468782733457,
|
||||
"test_a": 1.9030860882842735,
|
||||
"test_b": -15.82018097391874,
|
||||
"ref_a_norm": 0.11943562419036355,
|
||||
"ref_b_norm": -0.9928419469755789,
|
||||
"test_a_norm": 0.11943158721165502,
|
||||
"test_b_norm": -0.9928238850162348,
|
||||
"Rcs_pct": -0.0018502479336261132,
|
||||
"Rhs": -4.3569582992788047e-07,
|
||||
"Rf_h": 99.99488322294361
|
||||
},
|
||||
{
|
||||
"bin": 14,
|
||||
"ref_a": 12.608405843070699,
|
||||
"ref_b": -18.774763719510062,
|
||||
"test_a": 12.608197253376927,
|
||||
"test_b": -18.774364125850727,
|
||||
"ref_a_norm": 0.5575101679314969,
|
||||
"ref_b_norm": -0.8301701106718997,
|
||||
"test_a_norm": 0.5575009446500884,
|
||||
"test_b_norm": -0.8301524417032059,
|
||||
"Rcs_pct": -0.0019815391150970006,
|
||||
"Rhs": 2.1474748375376244e-06,
|
||||
"Rf_h": 99.99425017617709
|
||||
},
|
||||
{
|
||||
"bin": 15,
|
||||
"ref_a": 12.088472495367219,
|
||||
"ref_b": -8.349869751429393,
|
||||
"test_a": 12.088196540398116,
|
||||
"test_b": -8.348577535004525,
|
||||
"ref_a_norm": 0.82279927261926,
|
||||
"ref_b_norm": -0.5683320833607906,
|
||||
"test_a_norm": 0.8227804898038182,
|
||||
"test_b_norm": -0.5682441289285944,
|
||||
"Rcs_pct": -0.006448220466365075,
|
||||
"Rhs": 6.269626448663806e-05,
|
||||
"Rf_h": 99.9887294477191
|
||||
},
|
||||
{
|
||||
"bin": 16,
|
||||
"ref_a": 22.585949520225732,
|
||||
"ref_b": -3.8918436838877772,
|
||||
"test_a": 22.58599775884995,
|
||||
"test_b": -3.891759058186969,
|
||||
"ref_a_norm": 0.985476808341529,
|
||||
"ref_b_norm": -0.16981007102346227,
|
||||
"test_a_norm": 0.9854789131034026,
|
||||
"test_b_norm": -0.16980637860993494,
|
||||
"Rcs_pct": 0.00013439653204384277,
|
||||
"Rhs": 4.032083508483764e-06,
|
||||
"Rf_h": 99.99555479243523
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user