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,74 @@
|
||||
{
|
||||
"name": "dc-strip",
|
||||
"manufacturer": "",
|
||||
"model": "",
|
||||
"notes": "powered externally",
|
||||
"instrument": "HPCS6500",
|
||||
"measured_at": "2026-07-09T16:22:57+07:00",
|
||||
"instrument_date": "2026-02-05",
|
||||
"instrument_time": "17:57:56",
|
||||
"readings_averaged": 1,
|
||||
"tm30": {
|
||||
"Rf": 82.1,
|
||||
"Rg": 109.9
|
||||
},
|
||||
"cri": {
|
||||
"Ra": 83.53800201416016,
|
||||
"R1": 81.74681854248047,
|
||||
"R2": 89.89591979980469,
|
||||
"R3": 94.66126251220703,
|
||||
"R4": 81.88838958740234,
|
||||
"R5": 81.9393081665039,
|
||||
"R6": 84.4315185546875,
|
||||
"R7": 86.51227569580078,
|
||||
"R8": 67.2285385131836,
|
||||
"R9": 12.525043487548828,
|
||||
"R10": 75.23241424560547,
|
||||
"R11": 80.69010925292969,
|
||||
"R12": 53.97742462158203,
|
||||
"R13": 84.02236938476562,
|
||||
"R14": 97.37865447998047,
|
||||
"R15": 76.29852294921875
|
||||
},
|
||||
"photometric": {
|
||||
"Phi_lm": 182.61920166015625,
|
||||
"eta_lm_W": 0.0,
|
||||
"CCT_K": 4936.84375,
|
||||
"Duv": 0.002135422546416521,
|
||||
"SDCM": 1.5234547853469849,
|
||||
"TLCI": 71.05938720703125
|
||||
},
|
||||
"chromaticity": {
|
||||
"x": 0.3473931849002838,
|
||||
"y": 0.35774698853492737,
|
||||
"u": 0.21059946715831757,
|
||||
"v": 0.32531434297561646,
|
||||
"u_prime": 0.21059946715831757,
|
||||
"v_prime": 0.4879715144634247,
|
||||
"CIE_X": 259.6396484375,
|
||||
"CIE_Y": 267.3780212402344,
|
||||
"CIE_Z": 220.3765106201172
|
||||
},
|
||||
"radiometric": {
|
||||
"Phi_e_mW": 558.6363525390625,
|
||||
"Phi_euv_mW": 0.0,
|
||||
"Phi_eb_mW": 152.54922485351562,
|
||||
"Phi_ey_mW": 257.9691162109375,
|
||||
"Phi_er_mW": 144.27931213378906,
|
||||
"Phi_efr_mW": 5.738129138946533,
|
||||
"Phi_eir_mW": 0.0,
|
||||
"Phi_e_total": 560.5353393554688
|
||||
},
|
||||
"electrical": {
|
||||
"Voltage_V": 0.0,
|
||||
"Current_A": 0.0,
|
||||
"Power_W": 0.0,
|
||||
"Freq_Hz": 0.0,
|
||||
"PF": 0.0
|
||||
},
|
||||
"sensor": {
|
||||
"PeakSignal": 55124.0,
|
||||
"DarkSignal": 2518.0,
|
||||
"Compensate": 2834.0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,351 @@
|
||||
wavelength_nm,value
|
||||
380.00,0.0127516
|
||||
381.92,0.0198729
|
||||
383.84,0.0280456
|
||||
385.76,0.0372354
|
||||
387.68,0.0458637
|
||||
389.60,0.0555703
|
||||
391.52,0.0694203
|
||||
393.44,0.0877175
|
||||
395.36,0.10759
|
||||
397.28,0.130742
|
||||
399.20,0.156692
|
||||
401.12,0.188518
|
||||
403.04,0.225401
|
||||
404.96,0.266486
|
||||
406.88,0.311904
|
||||
408.80,0.361827
|
||||
410.72,0.418749
|
||||
412.64,0.483755
|
||||
414.56,0.557749
|
||||
416.48,0.642327
|
||||
418.40,0.736962
|
||||
420.32,0.842222
|
||||
422.23,0.959372
|
||||
424.15,1.08748
|
||||
426.07,1.22694
|
||||
427.99,1.38257
|
||||
429.91,1.55662
|
||||
431.83,1.75592
|
||||
433.75,1.98427
|
||||
435.67,2.24307
|
||||
437.59,2.56713
|
||||
439.51,2.92726
|
||||
441.43,3.2811
|
||||
443.35,3.65163
|
||||
445.27,4.02356
|
||||
447.19,4.3754
|
||||
449.11,4.68466
|
||||
451.03,4.92422
|
||||
452.95,5.07375
|
||||
454.87,5.11863
|
||||
456.79,5.05461
|
||||
458.71,4.88937
|
||||
460.63,4.63875
|
||||
462.55,4.32859
|
||||
464.47,3.98765
|
||||
466.39,3.64831
|
||||
468.31,3.33287
|
||||
470.23,3.05645
|
||||
472.15,2.82354
|
||||
474.07,2.63151
|
||||
475.99,2.47483
|
||||
477.91,2.34741
|
||||
479.83,2.24
|
||||
481.75,2.14338
|
||||
483.67,2.05061
|
||||
485.59,1.95662
|
||||
487.51,1.8595
|
||||
489.43,1.7598
|
||||
491.35,1.65877
|
||||
493.27,1.55951
|
||||
495.19,1.46615
|
||||
497.11,1.38368
|
||||
499.03,1.31492
|
||||
500.95,1.26071
|
||||
502.87,1.22134
|
||||
504.79,1.19592
|
||||
506.70,1.18122
|
||||
508.62,1.17779
|
||||
510.54,1.18258
|
||||
512.46,1.19369
|
||||
514.38,1.20931
|
||||
516.30,1.22792
|
||||
518.22,1.24908
|
||||
520.14,1.27239
|
||||
522.06,1.29921
|
||||
523.98,1.32894
|
||||
525.90,1.3587
|
||||
527.82,1.39036
|
||||
529.74,1.42475
|
||||
531.66,1.46217
|
||||
533.58,1.5025
|
||||
535.50,1.54596
|
||||
537.42,1.59038
|
||||
539.34,1.63591
|
||||
541.26,1.68198
|
||||
543.18,1.72764
|
||||
545.10,1.77328
|
||||
547.02,1.81797
|
||||
548.94,1.86176
|
||||
550.86,1.9039
|
||||
552.78,1.94394
|
||||
554.70,1.98124
|
||||
556.62,2.0167
|
||||
558.54,2.05074
|
||||
560.46,2.08357
|
||||
562.38,2.11449
|
||||
564.30,2.14278
|
||||
566.22,2.16894
|
||||
568.14,2.19369
|
||||
570.06,2.21677
|
||||
571.98,2.23732
|
||||
573.90,2.25624
|
||||
575.82,2.27366
|
||||
577.74,2.29117
|
||||
579.66,2.30806
|
||||
581.58,2.32423
|
||||
583.50,2.33864
|
||||
585.42,2.35112
|
||||
587.34,2.36317
|
||||
589.26,2.37417
|
||||
591.17,2.38517
|
||||
593.09,2.39768
|
||||
595.01,2.41045
|
||||
596.93,2.42181
|
||||
598.85,2.43301
|
||||
600.77,2.44349
|
||||
602.69,2.45349
|
||||
604.61,2.46461
|
||||
606.53,2.47648
|
||||
608.45,2.48869
|
||||
610.37,2.50104
|
||||
612.29,2.51299
|
||||
614.21,2.52617
|
||||
616.13,2.53985
|
||||
618.05,2.5535
|
||||
619.97,2.56653
|
||||
621.89,2.57811
|
||||
623.81,2.58981
|
||||
625.73,2.60193
|
||||
627.65,2.61388
|
||||
629.57,2.6256
|
||||
631.49,2.63668
|
||||
633.41,2.6478
|
||||
635.33,2.65996
|
||||
637.25,2.67304
|
||||
639.17,2.68592
|
||||
641.09,2.69685
|
||||
643.01,2.70641
|
||||
644.93,2.71465
|
||||
646.85,2.72281
|
||||
648.77,2.7312
|
||||
650.69,2.7388
|
||||
652.61,2.74545
|
||||
654.53,2.75114
|
||||
656.45,2.75604
|
||||
658.37,2.76051
|
||||
660.29,2.76554
|
||||
662.21,2.77136
|
||||
664.13,2.77754
|
||||
666.05,2.78302
|
||||
667.97,2.78749
|
||||
669.89,2.7914
|
||||
671.81,2.79575
|
||||
673.72,2.80097
|
||||
675.64,2.80645
|
||||
677.56,2.81169
|
||||
679.48,2.81677
|
||||
681.40,2.82234
|
||||
683.32,2.83039
|
||||
685.24,2.83891
|
||||
687.16,2.84523
|
||||
689.08,2.85039
|
||||
691.00,2.85423
|
||||
692.92,2.85698
|
||||
694.84,2.85957
|
||||
696.76,2.86154
|
||||
698.68,2.86338
|
||||
700.60,2.8655
|
||||
702.52,2.86739
|
||||
704.44,2.86921
|
||||
706.36,2.87048
|
||||
708.28,2.87029
|
||||
710.20,2.86925
|
||||
712.12,2.86762
|
||||
714.04,2.86576
|
||||
715.96,2.8641
|
||||
717.88,2.86255
|
||||
719.80,2.85972
|
||||
721.72,2.85585
|
||||
723.64,2.85035
|
||||
725.56,2.84321
|
||||
727.48,2.83524
|
||||
729.40,2.82621
|
||||
731.32,2.81981
|
||||
733.24,2.81334
|
||||
735.16,2.80323
|
||||
737.08,2.79262
|
||||
739.00,2.78091
|
||||
740.92,2.76763
|
||||
742.84,2.75346
|
||||
744.76,2.7383
|
||||
746.68,2.72258
|
||||
748.60,2.70553
|
||||
750.52,2.68694
|
||||
752.44,2.66699
|
||||
754.36,2.64509
|
||||
756.28,2.62182
|
||||
758.19,2.59794
|
||||
760.11,2.57342
|
||||
762.03,2.54894
|
||||
763.95,2.52412
|
||||
765.87,2.49834
|
||||
767.79,2.47207
|
||||
769.71,2.45007
|
||||
771.63,2.42686
|
||||
773.55,2.39592
|
||||
775.47,2.363
|
||||
777.39,2.32998
|
||||
779.31,2.2978
|
||||
781.23,2.26722
|
||||
783.15,2.23668
|
||||
785.07,2.20501
|
||||
786.99,2.17199
|
||||
788.91,2.13793
|
||||
790.83,2.10306
|
||||
792.75,2.06789
|
||||
794.67,2.03309
|
||||
796.59,1.99925
|
||||
798.51,1.96579
|
||||
800.43,1.93148
|
||||
802.35,1.89608
|
||||
804.27,1.8651
|
||||
806.19,1.83338
|
||||
808.11,1.79629
|
||||
810.03,1.75975
|
||||
811.95,1.72458
|
||||
813.87,1.69014
|
||||
815.79,1.65543
|
||||
817.71,1.61992
|
||||
819.63,1.58289
|
||||
821.55,1.5452
|
||||
823.47,1.50805
|
||||
825.39,1.47259
|
||||
827.31,1.43832
|
||||
829.23,1.40479
|
||||
831.15,1.37059
|
||||
833.07,1.34079
|
||||
834.99,1.31092
|
||||
836.91,1.27587
|
||||
838.83,1.24079
|
||||
840.74,1.20603
|
||||
842.66,1.17184
|
||||
844.58,1.13899
|
||||
846.50,1.10735
|
||||
848.42,1.07693
|
||||
850.34,1.04731
|
||||
852.26,1.01788
|
||||
854.18,0.98953
|
||||
856.10,0.961995
|
||||
858.02,0.934597
|
||||
859.94,0.91109
|
||||
861.86,0.887674
|
||||
863.78,0.86015
|
||||
865.70,0.833833
|
||||
867.62,0.8094
|
||||
869.54,0.785552
|
||||
871.46,0.762468
|
||||
873.38,0.739331
|
||||
875.30,0.716612
|
||||
877.22,0.694622
|
||||
879.14,0.673412
|
||||
881.06,0.653047
|
||||
882.98,0.632791
|
||||
884.90,0.615673
|
||||
886.82,0.598679
|
||||
888.74,0.57915
|
||||
890.66,0.559961
|
||||
892.58,0.540537
|
||||
894.50,0.520535
|
||||
896.42,0.500454
|
||||
898.34,0.481064
|
||||
900.26,0.463466
|
||||
902.18,0.447636
|
||||
904.10,0.432509
|
||||
906.02,0.417203
|
||||
907.94,0.401882
|
||||
909.86,0.388718
|
||||
911.78,0.376504
|
||||
913.70,0.36322
|
||||
915.62,0.35017
|
||||
917.54,0.336774
|
||||
919.46,0.322679
|
||||
921.38,0.308847
|
||||
923.30,0.295478
|
||||
925.21,0.283027
|
||||
927.13,0.271487
|
||||
929.05,0.260827
|
||||
930.97,0.252124
|
||||
932.89,0.243437
|
||||
934.81,0.233065
|
||||
936.73,0.222627
|
||||
938.65,0.212282
|
||||
940.57,0.202949
|
||||
942.49,0.194291
|
||||
944.41,0.186002
|
||||
946.33,0.178649
|
||||
948.25,0.17138
|
||||
950.17,0.165025
|
||||
952.09,0.158829
|
||||
954.01,0.153046
|
||||
955.93,0.147216
|
||||
957.85,0.139798
|
||||
959.77,0.132409
|
||||
961.69,0.125687
|
||||
963.61,0.11935
|
||||
965.53,0.113866
|
||||
967.45,0.109203
|
||||
969.37,0.104639
|
||||
971.29,0.100141
|
||||
973.21,0.095685
|
||||
975.13,0.0909515
|
||||
977.05,0.0862067
|
||||
978.97,0.0823861
|
||||
980.89,0.0786927
|
||||
982.81,0.0746361
|
||||
984.73,0.0705994
|
||||
986.65,0.0668975
|
||||
988.57,0.0642885
|
||||
990.49,0.0623986
|
||||
992.41,0.0605949
|
||||
994.33,0.058452
|
||||
996.25,0.0554474
|
||||
998.17,0.0525455
|
||||
1000.09,0.0499588
|
||||
1002.01,0.0474978
|
||||
1003.93,0.0451222
|
||||
1005.85,0.0427836
|
||||
1007.77,0.040732
|
||||
1009.68,0.0395093
|
||||
1011.60,0.0388028
|
||||
1013.52,0.0379491
|
||||
1015.44,0.0367954
|
||||
1017.36,0.0348648
|
||||
1019.28,0.0330665
|
||||
1021.20,0.0313772
|
||||
1023.12,0.0298331
|
||||
1025.04,0.0286528
|
||||
1026.96,0.0268847
|
||||
1028.88,0.024801
|
||||
1030.80,0.0227592
|
||||
1032.72,0.0206606
|
||||
1034.64,0.0185722
|
||||
1036.56,0.0172613
|
||||
1038.48,0.0168033
|
||||
1040.40,0.0161983
|
||||
1042.32,0.0150743
|
||||
1044.24,0.013724
|
||||
1046.16,0.012221
|
||||
1048.08,0.0112937
|
||||
1050.00,0.0107075
|
||||
|
@@ -0,0 +1,17 @@
|
||||
bin,ref_a,ref_b,test_a,test_b,ref_a_norm,ref_b_norm,test_a_norm,test_b_norm,Rcs_pct,Rhs,Rf_h
|
||||
1,24.194,5.30758,25.3877,6.89524,0.976772,0.21428,1.02497,0.278378,5.97734,0.0534641,78.0536
|
||||
2,18.8368,12.1186,18.7172,13.7904,0.840992,0.541048,0.835654,0.615689,3.70297,0.065027,78.9914
|
||||
3,13.7918,20.6633,13.3499,22.5585,0.555152,0.831749,0.537366,0.908034,5.35474,0.0571707,79.3008
|
||||
4,4.00106,22.1466,2.64982,23.2262,0.177784,0.984069,0.117743,1.03204,3.53358,0.0682465,86.4029
|
||||
5,-1.7494,19.9855,-2.77389,20.545,-0.0871999,0.996191,-0.138266,1.02408,3.73111,0.0446452,87.6302
|
||||
6,-10.1887,17.3743,-10.838,17.7509,-0.505861,0.862615,-0.538097,0.881312,3.34557,0.0164162,90.2709
|
||||
7,-17.7969,12.2543,-18.4508,11.5209,-0.823633,0.567123,-0.853896,0.533181,0.630543,0.0450353,86.2201
|
||||
8,-24.2144,2.21301,-25.5951,0.165895,-0.99585,0.0910129,-1.05263,0.00682266,3.92658,0.0936501,78.5718
|
||||
9,-15.5974,-3.15957,-15.625,-4.89775,-0.980093,-0.198538,-0.981828,-0.30776,2.301,0.106785,84.4575
|
||||
10,-19.953,-11.5419,-19.1744,-13.9822,-0.865611,-0.500716,-0.831835,-0.606582,3.07318,0.10679,77.2816
|
||||
11,-13.1113,-19.0908,-11.439,-21.3903,-0.56613,-0.824316,-0.493921,-0.923604,4.2438,0.115201,79.1803
|
||||
12,-3.41035,-20.7596,-0.905198,-21.7942,-0.162105,-0.986773,-0.0430271,-1.03595,2.50039,0.126385,81.5547
|
||||
13,2.34978,-15.6965,5.13967,-16.0504,0.148051,-0.98898,0.323832,-1.01128,5.61605,0.168053,80.7737
|
||||
14,13.1602,-18.321,16.2522,-17.6607,0.583402,-0.812183,0.720469,-0.782909,5.18091,0.130231,77.8198
|
||||
15,12.769,-8.09612,15.5862,-8.15662,0.844546,-0.535482,1.03088,-0.539484,15.7154,0.100194,78.1031
|
||||
16,22.8351,-3.34293,23.9488,-1.92221,0.989454,-0.14485,1.03771,-0.08329,3.5317,0.0697912,81.5972
|
||||
|
Reference in new issue
Block a user