forked from M-Labs/artiq
kasli_tester: fix grabber test
This commit is contained in:
parent
139e87de36
commit
bcff533899
|
@ -308,7 +308,7 @@ class KasliTester(EnvExperiment):
|
||||||
card_dev.input_mu(n)
|
card_dev.input_mu(n)
|
||||||
self.core.break_realtime()
|
self.core.break_realtime()
|
||||||
card_dev.gate_roi(0)
|
card_dev.gate_roi(0)
|
||||||
print("ROI sums: {}".format(n))
|
print("ROI sums:", n)
|
||||||
|
|
||||||
def test_grabbers(self):
|
def test_grabbers(self):
|
||||||
if self.grabbers:
|
if self.grabbers:
|
||||||
|
@ -320,7 +320,7 @@ class KasliTester(EnvExperiment):
|
||||||
print("skipping...")
|
print("skipping...")
|
||||||
return
|
return
|
||||||
rois = [[0, 0, 0, 2, 2], [1, 0, 0, 2048, 2048]]
|
rois = [[0, 0, 0, 2, 2], [1, 0, 0, 2048, 2048]]
|
||||||
print("ROIs: {}".format(rois))
|
print("ROIs:", rois)
|
||||||
for card_n, (card_name, card_dev) in enumerate(self.grabbers):
|
for card_n, (card_name, card_dev) in enumerate(self.grabbers):
|
||||||
print(card_name)
|
print(card_name)
|
||||||
self.grabber_capture(card_dev, rois)
|
self.grabber_capture(card_dev, rois)
|
||||||
|
|
Loading…
Reference in New Issue