Skip to content

Commit ebce415

Browse files
Merge branch 'parallel_writing' of https://github.com/bruAristimunha/mne-bids into parallel_writing
2 parents 9db1516 + 43e784e commit ebce415

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mne_bids/tsv_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ def _from_tsv(fname, dtypes=None):
156156
return OrderedDict()
157157

158158
# If data is 1-dimensional (only header), make it 2D
159-
if data.ndim == 1:
160-
data = data.reshape(1, -1)
159+
data = np.atleast_2d(data)
161160

162161
column_names = data[0, :]
163162
info = data[1:, :]

0 commit comments

Comments
 (0)