Skip to content

Commit 219d5fa

Browse files
JujuDelJulien Delclos
andauthored
r5.0.7 (#258)
Co-authored-by: Julien Delclos <[email protected]>
1 parent cb72612 commit 219d5fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pyzed/sl.pyx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6193,7 +6193,8 @@ cdef class SensorsConfiguration:
61936193
IF UNAME_SYSNAME == u"Linux":
61946194
if isinstance(py_camera, CameraOne):
61956195
self.__set_from_cameraone(py_camera, resizer)
6196-
raise TypeError("Argument is not of Camera or CameraOne type.")
6196+
else:
6197+
raise TypeError("Argument is not of Camera or CameraOne type.")
61976198
ELSE:
61986199
raise TypeError("Argument is not of Camera type.")
61996200

@@ -6394,7 +6395,7 @@ cdef class CameraInformation:
63946395
# res = sl.Resolution(0,0)
63956396
# cam_info = sl.CameraInformation(cam, res)
63966397
# \endcode
6397-
def __cinit__(self, py_camera: Camera, resizer=Resolution(0,0)) -> CameraInformation:
6398+
def __cinit__(self, Camera py_camera, Resolution resizer=Resolution(0,0)) -> CameraInformation:
63986399
res = c_Resolution(resizer.width, resizer.height)
63996400
caminfo = py_camera.camera.getCameraInformation(res)
64006401

@@ -14630,7 +14631,7 @@ IF UNAME_SYSNAME == u"Linux":
1463014631
# res = sl.Resolution(0,0)
1463114632
# cam_info = sl.CameraInformation(cam, res)
1463214633
# \endcode
14633-
def __cinit__(self, py_camera: CameraOne, resizer=Resolution(0,0)) -> CameraOneInformation:
14634+
def __cinit__(self, CameraOne py_camera, Resolution resizer=Resolution(0,0)) -> CameraOneInformation:
1463414635
res = c_Resolution(resizer.width, resizer.height)
1463514636
caminfo = py_camera.camera.getCameraInformation(res)
1463614637

0 commit comments

Comments
 (0)