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,403 @@
|
||||
{
|
||||
"name": "illuminant_LED_B1",
|
||||
"source": "colour.SDS_ILLUMINANTS['LED-B1'] (380.0, 780.0, 5.0)",
|
||||
"generator": "crates/tm30/tools/golden.py (tm30.py + colour-science 0.4.7, numpy 2.5.1)",
|
||||
"wavelengths": [
|
||||
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.0,
|
||||
0.01,
|
||||
0.01,
|
||||
0.02,
|
||||
0.04,
|
||||
0.07,
|
||||
0.15,
|
||||
0.28,
|
||||
0.53,
|
||||
0.92,
|
||||
1.54,
|
||||
2.52,
|
||||
4.16,
|
||||
6.39,
|
||||
7.89,
|
||||
7.57,
|
||||
6.25,
|
||||
5.16,
|
||||
4.37,
|
||||
3.84,
|
||||
3.7,
|
||||
3.88,
|
||||
4.26,
|
||||
4.79,
|
||||
5.41,
|
||||
6.05,
|
||||
6.7,
|
||||
7.34,
|
||||
7.98,
|
||||
8.64,
|
||||
9.31,
|
||||
10.02,
|
||||
10.76,
|
||||
11.53,
|
||||
12.38,
|
||||
13.28,
|
||||
14.23,
|
||||
15.2,
|
||||
16.2,
|
||||
17.19,
|
||||
18.14,
|
||||
19.02,
|
||||
19.78,
|
||||
20.38,
|
||||
20.8,
|
||||
21.0,
|
||||
20.97,
|
||||
20.71,
|
||||
20.23,
|
||||
19.56,
|
||||
18.76,
|
||||
17.82,
|
||||
16.78,
|
||||
15.66,
|
||||
14.49,
|
||||
13.31,
|
||||
12.15,
|
||||
11.02,
|
||||
9.95,
|
||||
8.93,
|
||||
7.98,
|
||||
7.1,
|
||||
6.3,
|
||||
5.57,
|
||||
4.89,
|
||||
4.26,
|
||||
3.72,
|
||||
3.25,
|
||||
2.83,
|
||||
2.47,
|
||||
2.15,
|
||||
1.87,
|
||||
1.63,
|
||||
1.42,
|
||||
1.25,
|
||||
1.1,
|
||||
0.97,
|
||||
0.86,
|
||||
0.76,
|
||||
0.68,
|
||||
0.61
|
||||
],
|
||||
"expected": {
|
||||
"Rf": 84.12969850751313,
|
||||
"Rg": 96.11064304715322,
|
||||
"CCT_K": 2734.7403465554503,
|
||||
"Duv": -0.0006625318872610033,
|
||||
"bins": [
|
||||
{
|
||||
"bin": 1,
|
||||
"ref_a": 24.280132086547074,
|
||||
"ref_b": 5.408937098610144,
|
||||
"test_a": 21.591071535805423,
|
||||
"test_b": 4.8075846946704495,
|
||||
"ref_a_norm": 0.9760732583703736,
|
||||
"ref_b_norm": 0.2174419331551342,
|
||||
"test_a_norm": 0.8679717009174832,
|
||||
"test_b_norm": 0.1932672705853414,
|
||||
"Rcs_pct": -11.07406590438311,
|
||||
"Rhs": -0.002620585553238343,
|
||||
"Rf_h": 80.07057373321364
|
||||
},
|
||||
{
|
||||
"bin": 2,
|
||||
"ref_a": 20.728303482646645,
|
||||
"ref_b": 15.137250118779702,
|
||||
"test_a": 17.884025072612665,
|
||||
"test_b": 15.535624011877314,
|
||||
"ref_a_norm": 0.80758328908048,
|
||||
"ref_b_norm": 0.5897535342818674,
|
||||
"test_a_norm": 0.6967690241620396,
|
||||
"test_b_norm": 0.6052743461582906,
|
||||
"Rcs_pct": -8.351579281848952,
|
||||
"Rhs": 0.0744701904161442,
|
||||
"Rf_h": 80.39202066706625
|
||||
},
|
||||
{
|
||||
"bin": 3,
|
||||
"ref_a": 14.953420083055576,
|
||||
"ref_b": 22.693191807862306,
|
||||
"test_a": 11.68911551269857,
|
||||
"test_b": 23.858642673487555,
|
||||
"ref_a_norm": 0.5502246955164468,
|
||||
"ref_b_norm": 0.8350166372257701,
|
||||
"test_a_norm": 0.4301116392175152,
|
||||
"test_b_norm": 0.8779004620709421,
|
||||
"Rcs_pct": -3.107464145862864,
|
||||
"Rhs": 0.12369533291535047,
|
||||
"Rf_h": 76.1249098182959
|
||||
},
|
||||
{
|
||||
"bin": 4,
|
||||
"ref_a": 2.7436427517778226,
|
||||
"ref_b": 20.08021904817262,
|
||||
"test_a": 1.2540160909124423,
|
||||
"test_b": 20.684383778023975,
|
||||
"ref_a_norm": 0.1353762863406827,
|
||||
"ref_b_norm": 0.9907942577026804,
|
||||
"test_a_norm": 0.061875417741315934,
|
||||
"test_b_norm": 1.0206048361434414,
|
||||
"Rcs_pct": 1.4898468411488728,
|
||||
"Rhs": 0.07790432536660603,
|
||||
"Rf_h": 87.47368765927723
|
||||
},
|
||||
{
|
||||
"bin": 5,
|
||||
"ref_a": -2.8947048858716515,
|
||||
"ref_b": 16.445261491730776,
|
||||
"test_a": -3.7354497383292133,
|
||||
"test_b": 16.964192919162564,
|
||||
"ref_a_norm": -0.173355532020732,
|
||||
"ref_b_norm": 0.984859309504565,
|
||||
"test_a_norm": -0.22370531790143847,
|
||||
"test_b_norm": 1.0159366169440165,
|
||||
"Rcs_pct": 4.0302921632089905,
|
||||
"Rhs": 0.0433194469474945,
|
||||
"Rf_h": 92.69867250026557
|
||||
},
|
||||
{
|
||||
"bin": 6,
|
||||
"ref_a": -12.478044261316356,
|
||||
"ref_b": 16.71168175230954,
|
||||
"test_a": -12.399821763534508,
|
||||
"test_b": 17.63658810716702,
|
||||
"ref_a_norm": -0.5982888800912176,
|
||||
"ref_b_norm": 0.8012804851980339,
|
||||
"test_a_norm": -0.594538320338763,
|
||||
"test_b_norm": 0.8456272734966158,
|
||||
"Rcs_pct": 3.4789307517859904,
|
||||
"Rhs": -0.02775623197200506,
|
||||
"Rf_h": 92.61344492492461
|
||||
},
|
||||
{
|
||||
"bin": 7,
|
||||
"ref_a": -17.592126956204417,
|
||||
"ref_b": 13.175368008802009,
|
||||
"test_a": -16.062930313813975,
|
||||
"test_b": 14.349488098338242,
|
||||
"ref_a_norm": -0.800408799525612,
|
||||
"ref_b_norm": 0.5994545467689513,
|
||||
"test_a_norm": -0.7308332188228673,
|
||||
"test_b_norm": 0.6528748099187212,
|
||||
"Rcs_pct": -2.817127306654944,
|
||||
"Rhs": -0.0830714470737371,
|
||||
"Rf_h": 86.56688259576224
|
||||
},
|
||||
{
|
||||
"bin": 8,
|
||||
"ref_a": -21.40233106972439,
|
||||
"ref_b": 5.014636351339698,
|
||||
"test_a": -20.102904893753685,
|
||||
"test_b": 5.310748162193928,
|
||||
"ref_a_norm": -0.973631822435419,
|
||||
"ref_b_norm": 0.22812512869275245,
|
||||
"test_a_norm": -0.9145185103523097,
|
||||
"test_b_norm": 0.24159580537312997,
|
||||
"Rcs_pct": -5.534946771564605,
|
||||
"Rhs": -0.024744276494919035,
|
||||
"Rf_h": 89.9172186085351
|
||||
},
|
||||
{
|
||||
"bin": 9,
|
||||
"ref_a": -24.02935571709725,
|
||||
"ref_b": -4.1661613914557085,
|
||||
"test_a": -22.24380873453704,
|
||||
"test_b": -4.398205684132331,
|
||||
"ref_a_norm": -0.985300615247858,
|
||||
"ref_b_norm": -0.17082944006286727,
|
||||
"test_a_norm": -0.9120859789012512,
|
||||
"test_b_norm": -0.18034419306044158,
|
||||
"Rcs_pct": -6.995160141262653,
|
||||
"Rhs": 0.023615396667846632,
|
||||
"Rf_h": 87.37077981281243
|
||||
},
|
||||
{
|
||||
"bin": 10,
|
||||
"ref_a": -17.403316910775256,
|
||||
"ref_b": -11.618376706583868,
|
||||
"test_a": -15.256326180174478,
|
||||
"test_b": -12.815290162186269,
|
||||
"ref_a_norm": -0.8316935674327643,
|
||||
"ref_b_norm": -0.5552349141498234,
|
||||
"test_a_norm": -0.729090231003669,
|
||||
"test_b_norm": -0.6124346552625015,
|
||||
"Rcs_pct": -5.353308286301608,
|
||||
"Rhs": 0.10456320609526559,
|
||||
"Rf_h": 82.3952395195385
|
||||
},
|
||||
{
|
||||
"bin": 11,
|
||||
"ref_a": -10.492504519847726,
|
||||
"ref_b": -16.076933128094645,
|
||||
"test_a": -8.124403877218894,
|
||||
"test_b": -17.41450689080737,
|
||||
"ref_a_norm": -0.546543598681109,
|
||||
"ref_b_norm": -0.8374306507053003,
|
||||
"test_a_norm": -0.4231917102150946,
|
||||
"test_b_norm": -0.9071034706113197,
|
||||
"Rcs_pct": -1.0599804863188615,
|
||||
"Rhs": 0.14127149166994377,
|
||||
"Rf_h": 80.55572267483866
|
||||
},
|
||||
{
|
||||
"bin": 12,
|
||||
"ref_a": -6.073226212902036,
|
||||
"ref_b": -21.21971628046086,
|
||||
"test_a": -5.410552323562591,
|
||||
"test_b": -22.759481352169818,
|
||||
"ref_a_norm": -0.2751588291286285,
|
||||
"ref_b_norm": -0.9613987823752235,
|
||||
"test_a_norm": -0.2451351538870593,
|
||||
"test_b_norm": -1.0311607078184952,
|
||||
"Rcs_pct": 6.256414113636306,
|
||||
"Rhs": 0.043056655239731005,
|
||||
"Rf_h": 84.79569624110914
|
||||
},
|
||||
{
|
||||
"bin": 13,
|
||||
"ref_a": 3.754362977320948,
|
||||
"ref_b": -17.79240767344944,
|
||||
"test_a": 2.832352668294976,
|
||||
"test_b": -19.02976568646164,
|
||||
"ref_a_norm": 0.20646295377959742,
|
||||
"ref_b_norm": -0.9784544183131905,
|
||||
"test_a_norm": 0.15575901999198585,
|
||||
"test_b_norm": -1.0465002071174607,
|
||||
"Rcs_pct": 5.684646128254565,
|
||||
"Rhs": -0.063004746767096,
|
||||
"Rf_h": 88.08292269755711
|
||||
},
|
||||
{
|
||||
"bin": 14,
|
||||
"ref_a": 10.06389839321009,
|
||||
"ref_b": -13.639766293337932,
|
||||
"test_a": 8.64013549743553,
|
||||
"test_b": -15.777124123811678,
|
||||
"ref_a_norm": 0.593716785717339,
|
||||
"ref_b_norm": -0.8046740820714132,
|
||||
"test_a_norm": 0.5097223039493992,
|
||||
"test_b_norm": -0.9307668913840367,
|
||||
"Rcs_pct": 5.817750546513087,
|
||||
"Rhs": -0.1398922706430525,
|
||||
"Rf_h": 81.15771032977116
|
||||
},
|
||||
{
|
||||
"bin": 15,
|
||||
"ref_a": 19.353533611480067,
|
||||
"ref_b": -12.846833503531244,
|
||||
"test_a": 17.64745895295636,
|
||||
"test_b": -14.525027616901133,
|
||||
"ref_a_norm": 0.8331518094660919,
|
||||
"ref_b_norm": -0.5530443584228816,
|
||||
"test_a_norm": 0.7597068656450773,
|
||||
"test_b_norm": -0.6252890704355806,
|
||||
"Rcs_pct": -2.0930227477112044,
|
||||
"Rhs": -0.10087310724086052,
|
||||
"Rf_h": 83.41891442327842
|
||||
},
|
||||
{
|
||||
"bin": 16,
|
||||
"ref_a": 17.314186528951637,
|
||||
"ref_b": -3.892788107663637,
|
||||
"test_a": 15.370171635582494,
|
||||
"test_b": -6.238520692313535,
|
||||
"ref_a_norm": 0.9756447865869282,
|
||||
"ref_b_norm": -0.21935644600910895,
|
||||
"test_a_norm": 0.8661006279519576,
|
||||
"test_b_norm": -0.3515371732476601,
|
||||
"Rcs_pct": -8.165211770204047,
|
||||
"Rhs": -0.15101191681164758,
|
||||
"Rf_h": 77.70731167555729
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user