Skip to content

Commit 71752c4

Browse files
committed
make neurosharectypesio.py pathlib robust
1 parent 6f73075 commit 71752c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/io/neuroshareapiio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,13 @@ def read_spiketrain(self,
333333
numIndx = endat - startat
334334
# get the end point using segment duration
335335
# create a numpy empty array to store the waveforms
336-
waveforms = np.array(np.zeros([numIndx, tempSpks.max_sample_count]))
336+
waveforms = np.array(np.zeros([numIndx, 1, tempSpks.max_sample_count]))
337337
# loop through the data from the specific channel index
338338
for i in range(startat, endat, 1):
339339
# get cutout, timestamp, cutout duration, and spike unit
340340
tempCuts, timeStamp, duration, unit = tempSpks.get_data(i)
341341
# save the cutout in the waveform matrix
342-
waveforms[i] = tempCuts[0]
342+
waveforms[i, 0, :] = tempCuts[0]
343343
# append time stamp to list
344344
times.append(timeStamp)
345345

0 commit comments

Comments
 (0)