Skip to content

Commit 1308ebe

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3ce7c9c commit 1308ebe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mne_bids/tsv_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ def _from_tsv(fname, dtypes=None):
154154
if data.size == 0:
155155
warn(f"TSV file is empty: '{fname}'")
156156
return OrderedDict()
157-
157+
158158
# If data is 1-dimensional (only header), make it 2D
159159
if data.ndim == 1:
160160
data = data.reshape(1, -1)
161-
161+
162162
column_names = data[0, :]
163163
info = data[1:, :]
164164
data_dict = OrderedDict()

mne_bids/write.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def _participants_tsv(raw, subject_id, fname, overwrite=False):
582582
# We should still treat this as having the file structure, just no rows
583583
else:
584584
orig_data = None
585-
585+
586586
if orig_data is not None:
587587
# whether the new data exists identically in the previous data
588588
# Use .get() with empty list default in case participant_id column is empty

0 commit comments

Comments
 (0)