Skip to content

Commit 364f953

Browse files
committed
Change ctypes argument hints for PL2_GetSpikeChannelInfoByName and PL2_GetSpikeChannelDataByName to POINTER(ctypes.c_char)
1 parent 7627026 commit 364f953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/plexon2rawio/pypl2/pypl2lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def pl2_get_spike_channel_info_by_name(self, channel_name):
610610

611611
self.pl2_dll.PL2_GetSpikeChannelInfoByName.argtypes = (
612612
ctypes.c_int,
613-
ctypes.c_char * len(channel_name),
613+
ctypes.POINTER(ctypes.c_char),
614614
ctypes.POINTER(PL2SpikeChannelInfo),
615615
)
616616

@@ -744,7 +744,7 @@ def pl2_get_spike_channel_data_by_name(self, channel_name):
744744

745745
self.pl2_dll.PL2_GetSpikeChannelDataByName.argtypes = (
746746
ctypes.c_int,
747-
ctypes.c_char,
747+
ctypes.POINTER(ctypes.c_char),
748748
ctypes.POINTER(ctypes.c_ulonglong),
749749
ctypes.POINTER(ctypes.c_ulonglong),
750750
ctypes.POINTER(ctypes.c_ushort),

0 commit comments

Comments
 (0)