DAQ: fix bug where if target None we get an error
This commit is contained in:
@@ -372,7 +372,7 @@ class AareDAQ:
|
|||||||
self.__cfg.current_sample = None
|
self.__cfg.current_sample = None
|
||||||
if target is not None:
|
if target is not None:
|
||||||
raise e
|
raise e
|
||||||
elif (target.location is not None
|
elif target is not None and (target.location is not None
|
||||||
and mounted_sample.puck.pos == target.location.pos
|
and mounted_sample.puck.pos == target.location.pos
|
||||||
and mounted_sample.puck.segment == target.location.segment
|
and mounted_sample.puck.segment == target.location.segment
|
||||||
and mounted_sample.pin == target.pin):
|
and mounted_sample.pin == target.pin):
|
||||||
|
|||||||
Reference in New Issue
Block a user