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,85 @@
|
||||
{
|
||||
"name": "L0007",
|
||||
"type": "halogen",
|
||||
"dimmable": true,
|
||||
"manufacturer": "",
|
||||
"model": "",
|
||||
"notes": "",
|
||||
"instrument": "HPCS6500",
|
||||
"measured_at": "2026-07-09T16:22:57+07:00",
|
||||
"instrument_date": "2026-02-04",
|
||||
"instrument_time": "16:29:39",
|
||||
"readings_averaged": 1,
|
||||
"tm30": {
|
||||
"Rf": 82.8,
|
||||
"Rg": 102.6
|
||||
},
|
||||
"cri": {
|
||||
"Ra": 83.03077697753906,
|
||||
"R1": 82.11673736572266,
|
||||
"R2": 93.9566421508789,
|
||||
"R3": 93.32406616210938,
|
||||
"R4": 76.64042663574219,
|
||||
"R5": 81.5961685180664,
|
||||
"R6": 89.55091094970703,
|
||||
"R7": 83.03118896484375,
|
||||
"R8": 64.03005981445312,
|
||||
"R9": 4.829061031341553,
|
||||
"R10": 84.0609130859375,
|
||||
"R11": 76.2067642211914,
|
||||
"R12": 60.158180236816406,
|
||||
"R13": 86.46263885498047,
|
||||
"R14": 96.80621337890625,
|
||||
"R15": 75.96227264404297
|
||||
},
|
||||
"supply": {
|
||||
"ac_voltage": 230.0,
|
||||
"ac_frequency": 50.0,
|
||||
"dc_voltage": 24.0,
|
||||
"dc_current": 5.0,
|
||||
"mode": "AC"
|
||||
},
|
||||
"photometric": {
|
||||
"Phi_lm": 479.5904235839844,
|
||||
"eta_lm_W": 57.03839111328125,
|
||||
"CCT_K": 5661.3740234375,
|
||||
"Duv": 0.005495334509760141,
|
||||
"SDCM": 4.661009311676025,
|
||||
"TLCI": 67.88436889648438
|
||||
},
|
||||
"chromaticity": {
|
||||
"x": 0.3286939859390259,
|
||||
"y": 0.34864285588264465,
|
||||
"u": 0.20145727694034576,
|
||||
"v": 0.32052600383758545,
|
||||
"u_prime": 0.20145727694034576,
|
||||
"v_prime": 0.4807890057563782,
|
||||
"CIE_X": 662.0042114257812,
|
||||
"CIE_Y": 702.18212890625,
|
||||
"CIE_Z": 649.8577880859375
|
||||
},
|
||||
"radiometric": {
|
||||
"Phi_e_mW": 1492.0255126953125,
|
||||
"Phi_euv_mW": 0.0,
|
||||
"Phi_eb_mW": 470.2662658691406,
|
||||
"Phi_ey_mW": 679.6720581054688,
|
||||
"Phi_er_mW": 330.6041564941406,
|
||||
"Phi_efr_mW": 11.205649375915527,
|
||||
"Phi_eir_mW": 0.0,
|
||||
"Phi_e_total": 1491.7479248046875
|
||||
},
|
||||
"electrical": {
|
||||
"Voltage_V": 230.289794921875,
|
||||
"Current_A": 0.06533221900463104,
|
||||
"Power_W": 8.404895782470703,
|
||||
"Freq_Hz": 50.02182388305664,
|
||||
"PF": 0.5585951805114746,
|
||||
"UThd": 0.8112547993659973,
|
||||
"AThd": 109.011474609375
|
||||
},
|
||||
"sensor": {
|
||||
"PeakSignal": 53165.0,
|
||||
"DarkSignal": 2310.0,
|
||||
"Compensate": 2834.0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,351 @@
|
||||
wavelength_nm,value
|
||||
380.00,0.00012437
|
||||
381.92,0.00325128
|
||||
383.84,0.0121374
|
||||
385.76,0.0277415
|
||||
387.68,0.0499055
|
||||
389.60,0.0770335
|
||||
391.52,0.113006
|
||||
393.44,0.155736
|
||||
395.36,0.200766
|
||||
397.28,0.251532
|
||||
399.20,0.309992
|
||||
401.12,0.378357
|
||||
403.04,0.457739
|
||||
404.96,0.549033
|
||||
406.88,0.651834
|
||||
408.80,0.766103
|
||||
410.72,0.89645
|
||||
412.64,1.04439
|
||||
414.56,1.21227
|
||||
416.48,1.40185
|
||||
418.40,1.61142
|
||||
420.32,1.84377
|
||||
422.23,2.09783
|
||||
424.15,2.37553
|
||||
426.07,2.67843
|
||||
427.99,3.00636
|
||||
429.91,3.36508
|
||||
431.83,3.7554
|
||||
433.75,4.17804
|
||||
435.67,4.63919
|
||||
437.59,5.19895
|
||||
439.51,5.81118
|
||||
441.43,6.42285
|
||||
443.35,7.09515
|
||||
445.27,7.82478
|
||||
447.19,8.60823
|
||||
449.11,9.43156
|
||||
451.03,10.2756
|
||||
452.95,11.1145
|
||||
454.87,11.9149
|
||||
456.79,12.6327
|
||||
458.71,13.223
|
||||
460.63,13.6467
|
||||
462.55,13.8619
|
||||
464.47,13.8602
|
||||
466.39,13.656
|
||||
468.31,13.276
|
||||
470.23,12.7626
|
||||
472.15,12.1576
|
||||
474.07,11.505
|
||||
475.99,10.8536
|
||||
477.91,10.2334
|
||||
479.83,9.66753
|
||||
481.75,9.16456
|
||||
483.67,8.72063
|
||||
485.59,8.32902
|
||||
487.51,7.97934
|
||||
489.43,7.66042
|
||||
491.35,7.36116
|
||||
493.27,7.07295
|
||||
495.19,6.78887
|
||||
497.11,6.50904
|
||||
499.03,6.23842
|
||||
500.95,5.98105
|
||||
502.87,5.73951
|
||||
504.79,5.5147
|
||||
506.70,5.30024
|
||||
508.62,5.11031
|
||||
510.54,4.94715
|
||||
512.46,4.81164
|
||||
514.38,4.70412
|
||||
516.30,4.6232
|
||||
518.22,4.56477
|
||||
520.14,4.52716
|
||||
522.06,4.49757
|
||||
523.98,4.48574
|
||||
525.90,4.49328
|
||||
527.82,4.50975
|
||||
529.74,4.53441
|
||||
531.66,4.56592
|
||||
533.58,4.60312
|
||||
535.50,4.64601
|
||||
537.42,4.69397
|
||||
539.34,4.74984
|
||||
541.26,4.8129
|
||||
543.18,4.88137
|
||||
545.10,4.95458
|
||||
547.02,5.03094
|
||||
548.94,5.11027
|
||||
550.86,5.19323
|
||||
552.78,5.27894
|
||||
554.70,5.36574
|
||||
556.62,5.45106
|
||||
558.54,5.53401
|
||||
560.46,5.61319
|
||||
562.38,5.69013
|
||||
564.30,5.76408
|
||||
566.22,5.83525
|
||||
568.14,5.90377
|
||||
570.06,5.96844
|
||||
571.98,6.02758
|
||||
573.90,6.08097
|
||||
575.82,6.12977
|
||||
577.74,6.17567
|
||||
579.66,6.21891
|
||||
581.58,6.25922
|
||||
583.50,6.29479
|
||||
585.42,6.32698
|
||||
587.34,6.35762
|
||||
589.26,6.38562
|
||||
591.17,6.41223
|
||||
593.09,6.44115
|
||||
595.01,6.46769
|
||||
596.93,6.48953
|
||||
598.85,6.50949
|
||||
600.77,6.52767
|
||||
602.69,6.54609
|
||||
604.61,6.56516
|
||||
606.53,6.58662
|
||||
608.45,6.61081
|
||||
610.37,6.63582
|
||||
612.29,6.66216
|
||||
614.21,6.68962
|
||||
616.13,6.71879
|
||||
618.05,6.74956
|
||||
619.97,6.77916
|
||||
621.89,6.80681
|
||||
623.81,6.83487
|
||||
625.73,6.86371
|
||||
627.65,6.89415
|
||||
629.57,6.92539
|
||||
631.49,6.95379
|
||||
633.41,6.98066
|
||||
635.33,7.00707
|
||||
637.25,7.03273
|
||||
639.17,7.05778
|
||||
641.09,7.08091
|
||||
643.01,7.10164
|
||||
644.93,7.12056
|
||||
646.85,7.13904
|
||||
648.77,7.15693
|
||||
650.69,7.17338
|
||||
652.61,7.18816
|
||||
654.53,7.20251
|
||||
656.45,7.21699
|
||||
658.37,7.23194
|
||||
660.29,7.24629
|
||||
662.21,7.25935
|
||||
664.13,7.272
|
||||
666.05,7.28479
|
||||
667.97,7.29768
|
||||
669.89,7.31153
|
||||
671.81,7.32651
|
||||
673.72,7.34241
|
||||
675.64,7.35813
|
||||
677.56,7.3732
|
||||
679.48,7.38972
|
||||
681.40,7.41038
|
||||
683.32,7.4381
|
||||
685.24,7.46643
|
||||
687.16,7.4891
|
||||
689.08,7.50523
|
||||
691.00,7.51547
|
||||
692.92,7.52156
|
||||
694.84,7.52337
|
||||
696.76,7.52165
|
||||
698.68,7.51663
|
||||
700.60,7.50879
|
||||
702.52,7.49846
|
||||
704.44,7.48704
|
||||
706.36,7.47491
|
||||
708.28,7.46264
|
||||
710.20,7.44957
|
||||
712.12,7.43222
|
||||
714.04,7.40958
|
||||
715.96,7.38246
|
||||
717.88,7.35219
|
||||
719.80,7.32075
|
||||
721.72,7.28764
|
||||
723.64,7.25152
|
||||
725.56,7.21202
|
||||
727.48,7.16895
|
||||
729.40,7.12555
|
||||
731.32,7.09348
|
||||
733.24,7.06023
|
||||
735.16,7.0133
|
||||
737.08,6.96061
|
||||
739.00,6.90334
|
||||
740.92,6.84409
|
||||
742.84,6.78359
|
||||
744.76,6.72074
|
||||
746.68,6.65452
|
||||
748.60,6.58609
|
||||
750.52,6.51548
|
||||
752.44,6.44292
|
||||
754.36,6.36742
|
||||
756.28,6.28835
|
||||
758.19,6.20696
|
||||
760.11,6.12408
|
||||
762.03,6.04174
|
||||
763.95,5.96018
|
||||
765.87,5.87764
|
||||
767.79,5.79497
|
||||
769.71,5.72498
|
||||
771.63,5.65348
|
||||
773.55,5.56674
|
||||
775.47,5.47926
|
||||
777.39,5.39248
|
||||
779.31,5.30597
|
||||
781.23,5.21974
|
||||
783.15,5.13292
|
||||
785.07,5.04519
|
||||
786.99,4.95836
|
||||
788.91,4.87262
|
||||
790.83,4.78664
|
||||
792.75,4.70125
|
||||
794.67,4.61637
|
||||
796.59,4.53143
|
||||
798.51,4.44683
|
||||
800.43,4.36164
|
||||
802.35,4.2745
|
||||
804.27,4.20141
|
||||
806.19,4.12886
|
||||
808.11,4.04329
|
||||
810.03,3.95809
|
||||
811.95,3.87164
|
||||
813.87,3.78356
|
||||
815.79,3.69546
|
||||
817.71,3.60807
|
||||
819.63,3.52274
|
||||
821.55,3.43901
|
||||
823.47,3.35653
|
||||
825.39,3.27403
|
||||
827.31,3.19068
|
||||
829.23,3.10716
|
||||
831.15,3.02401
|
||||
833.07,2.95399
|
||||
834.99,2.8852
|
||||
836.91,2.80614
|
||||
838.83,2.728
|
||||
840.74,2.6514
|
||||
842.66,2.57594
|
||||
844.58,2.50181
|
||||
846.50,2.42922
|
||||
848.42,2.35736
|
||||
850.34,2.28699
|
||||
852.26,2.21866
|
||||
854.18,2.15275
|
||||
856.10,2.08984
|
||||
858.02,2.029
|
||||
859.94,1.97794
|
||||
861.86,1.92754
|
||||
863.78,1.86968
|
||||
865.70,1.81322
|
||||
867.62,1.75827
|
||||
869.54,1.70454
|
||||
871.46,1.65163
|
||||
873.38,1.5998
|
||||
875.30,1.5483
|
||||
877.22,1.49811
|
||||
879.14,1.44982
|
||||
881.06,1.40312
|
||||
882.98,1.35849
|
||||
884.90,1.3205
|
||||
886.82,1.28288
|
||||
888.74,1.24007
|
||||
890.66,1.19758
|
||||
892.58,1.15609
|
||||
894.50,1.11548
|
||||
896.42,1.07556
|
||||
898.34,1.03672
|
||||
900.26,0.998743
|
||||
902.18,0.961315
|
||||
904.10,0.924942
|
||||
906.02,0.889715
|
||||
907.94,0.855423
|
||||
909.86,0.826954
|
||||
911.78,0.798934
|
||||
913.70,0.767269
|
||||
915.62,0.736874
|
||||
917.54,0.707128
|
||||
919.46,0.678713
|
||||
921.38,0.651975
|
||||
923.30,0.626551
|
||||
925.21,0.602139
|
||||
927.13,0.57811
|
||||
929.05,0.553469
|
||||
930.97,0.532404
|
||||
932.89,0.512057
|
||||
934.81,0.489179
|
||||
936.73,0.467825
|
||||
938.65,0.447807
|
||||
940.57,0.429395
|
||||
942.49,0.412061
|
||||
944.41,0.395608
|
||||
946.33,0.379753
|
||||
948.25,0.364275
|
||||
950.17,0.349777
|
||||
952.09,0.334972
|
||||
954.01,0.321767
|
||||
955.93,0.308504
|
||||
957.85,0.292831
|
||||
959.77,0.276846
|
||||
961.69,0.261265
|
||||
963.61,0.246135
|
||||
965.53,0.231452
|
||||
967.45,0.217818
|
||||
969.37,0.205109
|
||||
971.29,0.193366
|
||||
973.21,0.18465
|
||||
975.13,0.176894
|
||||
977.05,0.168529
|
||||
978.97,0.160908
|
||||
980.89,0.154111
|
||||
982.81,0.147506
|
||||
984.73,0.140508
|
||||
986.65,0.133633
|
||||
988.57,0.126815
|
||||
990.49,0.12034
|
||||
992.41,0.11526
|
||||
994.33,0.110217
|
||||
996.25,0.104319
|
||||
998.17,0.0986741
|
||||
1000.09,0.0931682
|
||||
1002.01,0.0872736
|
||||
1003.93,0.0809993
|
||||
1005.85,0.07483
|
||||
1007.77,0.069364
|
||||
1009.68,0.064749
|
||||
1011.60,0.0614614
|
||||
1013.52,0.0582413
|
||||
1015.44,0.0541198
|
||||
1017.36,0.0501878
|
||||
1019.28,0.0461407
|
||||
1021.20,0.0425238
|
||||
1023.12,0.0389367
|
||||
1025.04,0.0348234
|
||||
1026.96,0.0307412
|
||||
1028.88,0.02715
|
||||
1030.80,0.0247482
|
||||
1032.72,0.0224838
|
||||
1034.64,0.0198648
|
||||
1036.56,0.0171769
|
||||
1038.48,0.0140465
|
||||
1040.40,0.0110774
|
||||
1042.32,0.00785347
|
||||
1044.24,0.00472714
|
||||
1046.16,0.00212014
|
||||
1048.08,0.000720481
|
||||
1050.00,8.16882e-05
|
||||
|
@@ -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,23.8322,4.89044,25.5143,6.78835,0.979588,0.201015,1.04873,0.279026,8.30334,0.0630229,76.4441
|
||||
2,18.6309,11.8982,19.8479,13.1157,0.842797,0.538232,0.897851,0.593308,7.63743,0.015208,82.0393
|
||||
3,13.4241,20.707,15.7508,20.9107,0.543979,0.839099,0.638262,0.847352,5.92434,-0.0738084,81.8363
|
||||
4,4.49861,22.8543,6.44068,22.2658,0.193133,0.981173,0.276509,0.955907,-0.851417,-0.0867033,85.1735
|
||||
5,-1.55246,21.4895,0.339439,19.7562,-0.0720553,0.997401,0.0157546,0.916955,-9.60308,-0.0704284,81.5541
|
||||
6,-10.2156,16.75,-9.43359,15.3207,-0.520687,0.853748,-0.480829,0.780893,-8.27205,0.00733577,85.6792
|
||||
7,-17.901,11.6088,-17.832,9.70121,-0.839017,0.544105,-0.835783,0.454695,-5.23628,0.0725445,84.9471
|
||||
8,-24.0094,2.96356,-25.6481,-0.43544,-0.992468,0.122504,-1.0602,-0.0179996,3.90235,0.151018,72.7844
|
||||
9,-15.6797,-2.60957,-16.6033,-4.96949,-0.986432,-0.164172,-1.04454,-0.312638,8.59555,0.134277,81.8143
|
||||
10,-19.7518,-11.9916,-21.0921,-14.0327,-0.854798,-0.518961,-0.912802,-0.607292,9.73027,0.0412196,82.0354
|
||||
11,-12.8556,-18.9464,-14.4795,-19.9788,-0.561476,-0.827493,-0.632401,-0.872584,7.6896,-0.033921,85.838
|
||||
12,-3.73856,-20.7556,-5.08464,-20.7591,-0.17727,-0.984162,-0.241097,-0.984329,1.26154,-0.0625677,90.6907
|
||||
13,1.91647,-15.8171,1.91568,-15.5877,0.120285,-0.992739,0.120235,-0.978341,-1.41314,0.00276032,91.1775
|
||||
14,12.6248,-18.7612,13.1529,-17.2582,0.558288,-0.829647,0.581642,-0.763184,-4.22874,0.0563433,86.4173
|
||||
15,12.1099,-8.34251,13.7213,-8.11653,0.823504,-0.56731,0.93308,-0.551943,8.25711,0.0736542,80.9915
|
||||
16,22.5933,-3.87457,23.3147,-1.51543,0.985612,-0.169025,1.01708,-0.0661093,1.07904,0.107078,79.1926
|
||||
|
Reference in new issue
Block a user