Commit 0b7ab8a8 authored by Kyle Sunden's avatar Kyle Sunden
Browse files

remove exposure time setting outside of _measure, as they are redundant and...

remove exposure time setting outside of _measure, as they are redundant and can cause spurious errors
parent f3729ef2
Pipeline #310349379 failed with stages
in 1 minute and 23 seconds
......@@ -26,9 +26,6 @@ class RGBQmini(HasMapping, HasMeasureTrigger, IsSensor, IsDaemon):
self._channel_mappings = {"intensities": ["wavelengths"]}
self._mapping_units = {"wavelengths": "nm"}
if self._state["exposure_time"]:
self.spec.exposure_time = self._state["exposure_time"]
async def _measure(self):
self.spec.cancel_exposure()
self.spec.exposure_time = self._state["exposure_time"]
......@@ -42,7 +39,6 @@ class RGBQmini(HasMapping, HasMeasureTrigger, IsSensor, IsDaemon):
def set_exposure_time(self, exposure_time: float):
self._state["exposure_time"] = exposure_time
self.spec.exposure_time = exposure_time
def get_exposure_time(self) -> float:
return self._state["exposure_time"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment