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 Feb 29, 2024
1 parent 6820cf1 commit f7f2cf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Detailed list of changes

- The datatype in the dataframe returned by :func:`mne_bids.stats.count_events` is now
``pandas.Int64Dtype`` instead of ``float64``, by `Eric Larson`_ (:gh:`1227`)
- The :func:`mne_bids.copyfiles.copyfile_ctf` now accounts for files with ``.{integer}_meg4`` extension, instead of only .meg4,
- The :func:`mne_bids.copyfiles.copyfile_ctf` now accounts for files with ``.{integer}_meg4`` extension, instead of only .meg4,
when renaming the files of a .ds folder, by `Mara Wolter`_ (:gh:`1230`)

⚕️ Code health
Expand Down
4 changes: 3 additions & 1 deletion mne_bids/copyfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ def copyfile_ctf(src, dest):
)

# Consider CTF files that are split having consecutively numbered extensions
extra_ctf_file_types = tuple(f".{i}_meg4" for i in range(1, 21)) # cap at 20 is arbitrary
extra_ctf_file_types = tuple(
f".{i}_meg4" for i in range(1, 21)
) # cap at 20 is arbitrary
file_types += extra_ctf_file_types

# Rename files in dest with the name of the dest directory
Expand Down

0 comments on commit f7f2cf5

Please sign in to comment.