Skip to content

Commit ea0e220

Browse files
committed
ugly warning on data load fixed
1 parent d6989e1 commit ea0e220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pymice/_ICData.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def _loadZip(self, zf, source=None):
332332
timeOrderer.coupleTuples(npStarts, npEnds)
333333
timeOrderer.makeOrderedSequence(npEnds)
334334

335-
npStarts = np.array(npStarts + [None], dtype=object)
335+
npStarts = np.array(npStarts + [None], dtype=object)[:-1] # None is to force a creation of a 1D array of lists instead of a 2D array
336336

337337
npTags = np.array(list(imap(vid2tag.__getitem__, npVids)))
338338
npSides = np.array(list(imap(int, nosepokes['Side']))) % 2 # no bilocation assumed

0 commit comments

Comments
 (0)