@@ -839,7 +839,15 @@ def dllFunc(name, args=[], argnames=[], buf_len=0):
839839 ["can_num" , "cam_name" ],
840840 buf_len = CAM_NAME_LEN ,
841841)
842- dllFunc ("pl_cam_get_total" , [OUTPUT (int16 ),], ["total_cams" ,])
842+ dllFunc (
843+ "pl_cam_get_total" ,
844+ [
845+ OUTPUT (int16 ),
846+ ],
847+ [
848+ "total_cams" ,
849+ ],
850+ )
843851dllFunc (
844852 "pl_cam_open" ,
845853 [STRING , OUTPUT (int16 ), int16 ],
@@ -890,24 +898,42 @@ def dllFunc(name, args=[], argnames=[], buf_len=0):
890898 [int16 , uns32 , uns32 , OUTPUT (uns32 )],
891899 ["hcam" , "param_id" , "index" , "length" ],
892900)
893- dllFunc ("pl_pp_reset" , [int16 ,], ["hcam" ])
901+ dllFunc (
902+ "pl_pp_reset" ,
903+ [
904+ int16 ,
905+ ],
906+ ["hcam" ],
907+ )
894908dllFunc (
895909 "pl_create_smart_stream_struct" ,
896910 [OUTPUT (smart_stream_type ), uns16 ],
897911 ["pSmtStruct" , "entries" ],
898912)
899913dllFunc (
900914 "pl_release_smart_stream_struct" ,
901- [ctypes .POINTER (smart_stream_type ),],
902- ["pSmtStruct" ,],
915+ [
916+ ctypes .POINTER (smart_stream_type ),
917+ ],
918+ [
919+ "pSmtStruct" ,
920+ ],
903921)
904922dllFunc (
905- "pl_create_frame_info_struct" , [OUTPUT (FRAME_INFO ),], ["pNewFrameInfo" ]
923+ "pl_create_frame_info_struct" ,
924+ [
925+ OUTPUT (FRAME_INFO ),
926+ ],
927+ ["pNewFrameInfo" ],
906928)
907929dllFunc (
908930 "pl_release_frame_info_struct" ,
909- [ctypes .POINTER (FRAME_INFO ),],
910- ["pFrameInfoToDel" ,],
931+ [
932+ ctypes .POINTER (FRAME_INFO ),
933+ ],
934+ [
935+ "pFrameInfoToDel" ,
936+ ],
911937)
912938dllFunc ("pl_exp_abort" , [int16 , int16 ], ["hcam" , "cam_state" ])
913939dllFunc (
@@ -1370,7 +1396,8 @@ def values(self):
13701396
13711397
13721398class PVCamera (
1373- microscope .abc .FloatingDeviceMixin , microscope .abc .Camera ,
1399+ microscope .abc .FloatingDeviceMixin ,
1400+ microscope .abc .Camera ,
13741401):
13751402 """Implements the CameraDevice interface for the pvcam library."""
13761403
0 commit comments