mirror of https://github.com/m-labs/artiq.git
kasli_tester: skip Grabber test when no Grabber is present
This commit is contained in:
parent
bc532e0088
commit
a987d2b2e5
|
@ -310,18 +310,19 @@ class KasliTester(EnvExperiment):
|
||||||
print("ROI sums: {}".format(n))
|
print("ROI sums: {}".format(n))
|
||||||
|
|
||||||
def test_grabbers(self):
|
def test_grabbers(self):
|
||||||
print("*** Testing Grabber Frame Grabbers.")
|
if self.grabbers:
|
||||||
print("Activate the camera's frame grabber output, type 'g', press "
|
print("*** Testing Grabber Frame Grabbers.")
|
||||||
"ENTER, and trigger the camera.")
|
print("Activate the camera's frame grabber output, type 'g', press "
|
||||||
print("Just press ENTER to skip the test.")
|
"ENTER, and trigger the camera.")
|
||||||
if input().strip().lower() != "g":
|
print("Just press ENTER to skip the test.")
|
||||||
print("skipping...")
|
if input().strip().lower() != "g":
|
||||||
return
|
print("skipping...")
|
||||||
rois = [[0, 0, 0, 2, 2], [1, 0, 0, 2048, 2048]]
|
return
|
||||||
print("ROIs: {}".format(rois))
|
rois = [[0, 0, 0, 2, 2], [1, 0, 0, 2048, 2048]]
|
||||||
for card_n, (card_name, card_dev) in enumerate(self.grabbers):
|
print("ROIs: {}".format(rois))
|
||||||
print(card_name)
|
for card_n, (card_name, card_dev) in enumerate(self.grabbers):
|
||||||
self.grabber_capture(card_dev, rois)
|
print(card_name)
|
||||||
|
self.grabber_capture(card_dev, rois)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
print("****** Kasli system tester ******")
|
print("****** Kasli system tester ******")
|
||||||
|
|
Loading…
Reference in New Issue