Rename "active_detector" for background detecor. Improve thing selector coercion
This commit is contained in:
parent
e46836ffe1
commit
ca46439269
10 changed files with 182 additions and 52 deletions
|
|
@ -234,7 +234,10 @@ class SmartScanThing(lt.Thing):
|
|||
self._csm.assert_calibration()
|
||||
|
||||
if self.skip_background:
|
||||
if not self._cam.active_detector.ready:
|
||||
if (
|
||||
self._cam.background_detector is None
|
||||
or not self._cam.background_detector.ready
|
||||
):
|
||||
raise RuntimeError(
|
||||
"Background is not set: you need to calibrate background detection."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue