Skip to content

Commit c28ab11

Browse files
committed
PlateReader commands take backend_kwargs
1 parent 756f7b6 commit c28ab11

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pylabrobot/plate_reading/plate_reader.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,31 +74,36 @@ async def close(self, **backend_kwargs) -> None:
7474
await self.backend.close(plate=plate, **backend_kwargs)
7575

7676
@need_setup_finished
77-
async def read_luminescence(self, focal_height: float) -> List[List[float]]:
77+
async def read_luminescence(self, focal_height: float, **backend_kwargs) -> List[List[float]]:
7878
"""Read the luminescence from the plate.
7979
8080
Args:
8181
focal_height: The focal height to read the luminescence at, in micrometers.
8282
"""
8383

84-
return await self.backend.read_luminescence(plate=self.get_plate(), focal_height=focal_height)
84+
return await self.backend.read_luminescence(
85+
plate=self.get_plate(), focal_height=focal_height, **backend_kwargs
86+
)
8587

8688
@need_setup_finished
87-
async def read_absorbance(self, wavelength: int) -> List[List[float]]:
89+
async def read_absorbance(self, wavelength: int, **backend_kwargs) -> List[List[float]]:
8890
"""Read the absorbance from the plate in OD, unless otherwise specified by the backend.
8991
9092
Args:
9193
wavelength: The wavelength to read the absorbance at, in nanometers.
9294
"""
9395

94-
return await self.backend.read_absorbance(plate=self.get_plate(), wavelength=wavelength)
96+
return await self.backend.read_absorbance(
97+
plate=self.get_plate(), wavelength=wavelength, **backend_kwargs
98+
)
9599

96100
@need_setup_finished
97101
async def read_fluorescence(
98102
self,
99103
excitation_wavelength: int,
100104
emission_wavelength: int,
101105
focal_height: float,
106+
**backend_kwargs,
102107
) -> List[List[float]]:
103108
"""
104109
@@ -118,4 +123,5 @@ async def read_fluorescence(
118123
excitation_wavelength=excitation_wavelength,
119124
emission_wavelength=emission_wavelength,
120125
focal_height=focal_height,
126+
**backend_kwargs,
121127
)

0 commit comments

Comments
 (0)