Skip to content

Commit 160447d

Browse files
committed
indent
1 parent 6bda8a4 commit 160447d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mne_bids/write.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,15 +1359,15 @@ def _write_raw_edf_bdf(raw, bids_fname, overwrite):
13591359
"to dates after 1985-01-01. Setting `startdate` to 1985-01-01 00:00:00 in "
13601360
f"the {ext} file; the original anonymized date will be written to scans.tsv"
13611361
)
1362-
# make a copy, so that anonymized meas_date is unchanged in orig raw,
1363-
# and thus scans.tsv ends up with the properly anonymized meas_date
1364-
raw_anon = raw.copy()
1365-
raw_anon.set_meas_date(
1366-
raw_anon.info["meas_date"].replace(
1367-
year=1985, month=1, day=1, hour=0, minute=0, second=0, microsecond=0
1362+
# make a copy, so that anonymized meas_date is unchanged in orig raw,
1363+
# and thus scans.tsv ends up with the properly anonymized meas_date
1364+
raw = raw.copy()
1365+
raw.set_meas_date(
1366+
raw.info["meas_date"].replace(
1367+
year=1985, month=1, day=1, hour=0, minute=0, second=0, microsecond=0
1368+
)
13681369
)
1369-
)
1370-
raw_anon.export(bids_fname, overwrite=overwrite)
1370+
raw.export(bids_fname, overwrite=overwrite)
13711371

13721372

13731373
def _write_raw_eeglab(raw, bids_fname, overwrite):

0 commit comments

Comments
 (0)