Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 3, 2023
1 parent b061bdf commit e576901
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mne_bids/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ def _write_raw_set(raw, bids_fname, overwrite):
overwrite : bool
Whether to overwrite an existing file or not.
"""
assert str(bids_fname).endswith('.set')
assert str(bids_fname).endswith(".set")
raw.export(bids_fname, overwrite=overwrite)

Check warning on line 1172 in mne_bids/write.py

View check run for this annotation

Codecov / codecov/patch

mne_bids/write.py#L1171-L1172

Added lines #L1171 - L1172 were not covered by tests


Expand Down Expand Up @@ -2047,9 +2047,9 @@ def write_raw_bids(
elif format == "EDF" and bids_path.datatype in ["ieeg", "eeg"]:
convert = True
bids_path.update(extension=".edf")
elif format == "SET" and bids_path.datatype in ['ieeg', 'eeg']:
elif format == "SET" and bids_path.datatype in ["ieeg", "eeg"]:
convert = True
bids_path.update(extension='.set')
bids_path.update(extension=".set")

Check warning on line 2052 in mne_bids/write.py

View check run for this annotation

Codecov / codecov/patch

mne_bids/write.py#L2051-L2052

Added lines #L2051 - L2052 were not covered by tests
elif format == "FIF" and bids_path.datatype == "meg":
convert = True
bids_path.update(extension=".fif")
Expand Down Expand Up @@ -2110,8 +2110,8 @@ def write_raw_bids(
elif bids_path.datatype in ["eeg", "ieeg"] and format == "EDF":
warn("Converting data files to EDF format")
_write_raw_edf(raw, bids_path.fpath, overwrite=overwrite)
elif bids_path.datatype in ['eeg', 'ieeg'] and format == 'SET':
warn('Converting data files to SET format')
elif bids_path.datatype in ["eeg", "ieeg"] and format == "SET":
warn("Converting data files to SET format")
_write_raw_set(raw, bids_path.fpath, overwrite=overwrite)

Check warning on line 2115 in mne_bids/write.py

View check run for this annotation

Codecov / codecov/patch

mne_bids/write.py#L2114-L2115

Added lines #L2114 - L2115 were not covered by tests
else:
warn("Converting data files to BrainVision format")
Expand Down

0 comments on commit e576901

Please sign in to comment.