@@ -41,7 +41,7 @@ def create_od_raw_batched(channels, voltages: list[float], angles, timestamp: st
4141 for channel , voltage , angle in zip (channels , voltages , angles ):
4242 assert int (channel ) in (1 , 2 )
4343 readings .ods [channel ] = structs .RawODReading (
44- od = voltage , angle = angle , timestamp = to_datetime (timestamp ), channel = channel
44+ od = voltage , angle = angle , timestamp = to_datetime (timestamp ), channel = channel , ir_led_intensity = 80
4545 )
4646
4747 return readings
@@ -937,7 +937,11 @@ def test_baseline_shift_gets_absorbed(self) -> None:
937937 )
938938 publish (
939939 f"pioreactor/{ unit } /{ experiment } /od_reading/od2" ,
940- encode (structs .RawODReading (od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" )),
940+ encode (
941+ structs .RawODReading (
942+ od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" , ir_led_intensity = 80
943+ )
944+ ),
941945 retain = True ,
942946 )
943947 time .sleep (0.5 )
@@ -957,7 +961,11 @@ def test_baseline_shift_gets_absorbed(self) -> None:
957961 )
958962 publish (
959963 f"pioreactor/{ unit } /{ experiment } /od_reading/od2" ,
960- encode (structs .RawODReading (od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" )),
964+ encode (
965+ structs .RawODReading (
966+ od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" , ir_led_intensity = 80
967+ )
968+ ),
961969 retain = True ,
962970 )
963971 time .sleep (0.5 )
@@ -1006,7 +1014,11 @@ def test_massive_outlier_spike_gets_absorbed(self) -> None:
10061014 )
10071015 publish (
10081016 f"pioreactor/{ unit } /{ experiment } /od_reading/od2" ,
1009- encode (structs .RawODReading (od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" )),
1017+ encode (
1018+ structs .RawODReading (
1019+ od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" , ir_led_intensity = 80
1020+ )
1021+ ),
10101022 retain = True ,
10111023 )
10121024 time .sleep (0.5 )
@@ -1024,7 +1036,11 @@ def test_massive_outlier_spike_gets_absorbed(self) -> None:
10241036 )
10251037 publish (
10261038 f"pioreactor/{ unit } /{ experiment } /od_reading/od2" ,
1027- encode (structs .RawODReading (od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" )),
1039+ encode (
1040+ structs .RawODReading (
1041+ od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" , ir_led_intensity = 80
1042+ )
1043+ ),
10281044 retain = True ,
10291045 )
10301046 time .sleep (0.5 )
@@ -1046,7 +1062,11 @@ def test_massive_outlier_spike_gets_absorbed(self) -> None:
10461062 )
10471063 publish (
10481064 f"pioreactor/{ unit } /{ experiment } /od_reading/od2" ,
1049- encode (structs .RawODReading (od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" )),
1065+ encode (
1066+ structs .RawODReading (
1067+ od = v , angle = "90" , timestamp = to_datetime (t ), channel = "2" , ir_led_intensity = 80
1068+ )
1069+ ),
10501070 retain = True ,
10511071 )
10521072 time .sleep (0.5 )
0 commit comments