Skip to content

Commit 1cf0fbf

Browse files
Ian Dobbiemickp
authored andcommitted
typo fixes
1 parent 43357cc commit 1cf0fbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

microscope/cameras/ximea.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
@Pyro4.behavior('single')
5656
class XimeaCamera(devices.CameraDevice):
57-
def __init__(self, *args, **kwargs):
57+
def __init__(self, **kwargs):
5858
super(XimeaCamera, self).__init__(**kwargs)
5959
self._acquiring = False
6060
self._exposure_time = 0.1
@@ -126,7 +126,7 @@ def get_trigger_type(self):
126126
trig=self.handle.get_trigger_source()
127127
if trig==XI_TRG_SOFTWARE:
128128
return devices.TRIGGER_SOFT
129-
else if trig==XI_TRG_EDGE_RISING:
129+
elif trig==XI_TRG_EDGE_RISING:
130130
return devices.TRIGGER_BEFORE
131131

132132
def set_trigger_type(self, trigger):
@@ -156,7 +156,7 @@ def _get_roi(self):
156156

157157
@keep_acquiring
158158
def _set_roi(self, x, y, width, height):
159-
self.Roi = ROI(x, y, width, height):
159+
self.Roi = ROI(x, y, width, height)
160160

161161
def _on_shutdown(self):
162162
if self._acquiring:

0 commit comments

Comments
 (0)