Check we have a background set before starting scan
This commit is contained in:
parent
125bae9c6d
commit
4445990966
1 changed files with 8 additions and 0 deletions
|
|
@ -343,6 +343,14 @@ class SmartScanThing(Thing):
|
||||||
* `overlap` is the fraction by which images should overlap, i.e.
|
* `overlap` is the fraction by which images should overlap, i.e.
|
||||||
`0.3` means we will move by 70% of the field of view each time.
|
`0.3` means we will move by 70% of the field of view each time.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# Before anything else, check that we've got a background set
|
||||||
|
# It's annoying to have to wait to find out!
|
||||||
|
|
||||||
|
d = background_detect.background_distributions
|
||||||
|
if not d:
|
||||||
|
raise RuntimeError("Background is not set: you need to calibrate background detection.")
|
||||||
|
|
||||||
names = []
|
names = []
|
||||||
positions = []
|
positions = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue