diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index ba9929177..145e36d91 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -204,7 +204,7 @@ jobs: - name: Install MNE (previous stable) if: matrix.mne-version == 'mne-prev-stable' run: | - git clone --single-branch --branch maint/1.5 https://github.com/mne-tools/mne-python.git + git clone --single-branch --branch maint/1.6 https://github.com/mne-tools/mne-python.git python -m pip install -e ./mne-python - name: Install MNE (main) diff --git a/LICENSE b/LICENSE index a3ee63251..5d54e5b98 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2018, mne-bids developers +Copyright (c) 2018, The MNE-BIDS developers All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/doc/conf.py b/doc/conf.py index 75844212d..b5cc83253 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,4 +1,8 @@ """Configure details for documentation with sphinx.""" + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import os import sys from datetime import date @@ -8,7 +12,6 @@ import mne_bids - # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. diff --git a/doc/install.rst b/doc/install.rst index cfdb246e7..3caa6c55d 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -12,7 +12,7 @@ Dependencies Required: -* ``mne`` (>=1.5) +* ``mne`` (>=1.6) * ``numpy`` (>=1.21.2) * ``scipy`` (>=1.7.0) diff --git a/doc/sphinxext/gen_cli.py b/doc/sphinxext/gen_cli.py index c3bab4c46..666b75464 100644 --- a/doc/sphinxext/gen_cli.py +++ b/doc/sphinxext/gen_cli.py @@ -3,11 +3,10 @@ Inspired by MNE-Python's `gen_commands.py` see: github.com/mne-tools/mne-python/blob/main/doc/sphinxext/gen_commands.py """ -# Authors: Eric Larson -# Alexandre Gramfort -# Stefan Appelhoff -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import glob import os import shutil diff --git a/doc/sphinxext/gh_substitutions.py b/doc/sphinxext/gh_substitutions.py index 93e4eb76e..3312d12a8 100644 --- a/doc/sphinxext/gh_substitutions.py +++ b/doc/sphinxext/gh_substitutions.py @@ -6,6 +6,10 @@ https://doughellmann.com/blog/2010/05/09/defining-custom-roles-in-sphinx/ """ + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + from docutils.nodes import reference from docutils.parsers.rst.roles import set_classes diff --git a/doc/whats_new.rst b/doc/whats_new.rst index d5e0526df..1824c82b8 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -39,7 +39,7 @@ Detailed list of changes 🛠 Requirements ^^^^^^^^^^^^^^^ -- nothing yet +- MNE-BIDS now requires MNE-Python 1.6.0 or higher. 🪲 Bug fixes ^^^^^^^^^^^^ diff --git a/doc/whats_new_previous_releases.rst b/doc/whats_new_previous_releases.rst index 470608635..4b5d95cda 100644 --- a/doc/whats_new_previous_releases.rst +++ b/doc/whats_new_previous_releases.rst @@ -54,7 +54,7 @@ Detailed list of changes ^^^^^^^^^^^^^^^ - MNE-BIDS now requires Python 3.9 or higher. -- MNE-BIDS now requires MNE-Python 1.5.0 or higher. +- MNE-BIDS now requires MNE-Python 1.6.0 or higher. - ``edfio`` replaces ``EDFlib-Python`` for export to EDF with MNE-Python >= 1.7.0. - Installing ``mne-bids[full]`` will now also install ``defusedxml`` on all platforms. - Version requirements for optional dependency packages have been bumped up, see installation instructions. diff --git a/examples/anonymize_dataset.py b/examples/anonymize_dataset.py index af821c774..132e515db 100644 --- a/examples/anonymize_dataset.py +++ b/examples/anonymize_dataset.py @@ -18,12 +18,11 @@ to do the heavy lifting for you, automatically. """ # noqa: D400 D205 -# Authors: Richard Höchenberger -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% import shutil -from pathlib import Path import mne @@ -37,7 +36,7 @@ write_raw_bids, ) -data_path = Path(mne.datasets.sample.data_path()) +data_path = mne.datasets.sample.data_path() event_id = { "Auditory/Left": 1, "Auditory/Right": 2, diff --git a/examples/bidspath.py b/examples/bidspath.py index bfe6cb6e2..fac85e9a9 100644 --- a/examples/bidspath.py +++ b/examples/bidspath.py @@ -8,10 +8,9 @@ BIDSPath is MNE-BIDS's working horse when it comes to file and folder operations. Learn here how to use it. """ -# Authors: Richard Höchenberger -# Stefan Appelhoff -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # Obviously, to start exploring BIDSPath, we first need to import it. diff --git a/examples/convert_eeg_to_bids.py b/examples/convert_eeg_to_bids.py index c207a3a7a..b3191bf8c 100644 --- a/examples/convert_eeg_to_bids.py +++ b/examples/convert_eeg_to_bids.py @@ -22,9 +22,8 @@ """ # noqa: E501 -# Authors: Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # We are importing everything we need for this example: diff --git a/examples/convert_empty_room.py b/examples/convert_empty_room.py index 0b56e9288..2c6767d77 100644 --- a/examples/convert_empty_room.py +++ b/examples/convert_empty_room.py @@ -9,9 +9,8 @@ format and how to retrieve them. """ -# Authors: Mainak Jas -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # We are dealing with MEG data, which is often accompanied by so-called diff --git a/examples/convert_group_studies.py b/examples/convert_group_studies.py index fdf35daeb..0990762e0 100644 --- a/examples/convert_group_studies.py +++ b/examples/convert_group_studies.py @@ -10,11 +10,8 @@ checking out this group conversion example: :ref:`ex-convert-mne-sample` """ -# Authors: Mainak Jas -# Teon Brooks -# Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # Let us import ``mne_bids`` diff --git a/examples/convert_ieeg_to_bids.py b/examples/convert_ieeg_to_bids.py index bf0cf5a2b..32db9d8ca 100644 --- a/examples/convert_ieeg_to_bids.py +++ b/examples/convert_ieeg_to_bids.py @@ -41,11 +41,8 @@ """ # noqa: E501 -# Authors: Adam Li -# Stefan Appelhoff -# Alex Rockhill -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% diff --git a/examples/convert_mne_sample.py b/examples/convert_mne_sample.py index 99174d971..0fa6ea4fe 100644 --- a/examples/convert_mne_sample.py +++ b/examples/convert_mne_sample.py @@ -15,13 +15,8 @@ .. _ds000248 dataset_description.json: https://github.com/sappelhoff/bids-examples/blob/master/ds000248/dataset_description.json """ # noqa: D400 D205 E501 -# Authors: Mainak Jas -# Alexandre Gramfort -# Teon Brooks -# Stefan Appelhoff -# Richard Höchenberger -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # First we import some basic Python libraries, followed by MNE-Python and its diff --git a/examples/convert_mri_and_trans.py b/examples/convert_mri_and_trans.py index cef828146..5bd3df88e 100644 --- a/examples/convert_mri_and_trans.py +++ b/examples/convert_mri_and_trans.py @@ -28,11 +28,9 @@ ``nilearn`` on top of your usual ``mne-bids`` installation. """ -# Authors: Stefan Appelhoff -# Alex Rockhill -# Alex Gramfort -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # Let's import everything we need for this example: diff --git a/examples/convert_nirs_to_bids.py b/examples/convert_nirs_to_bids.py index a18aa6f3f..8553f52ba 100644 --- a/examples/convert_nirs_to_bids.py +++ b/examples/convert_nirs_to_bids.py @@ -18,9 +18,8 @@ """ # noqa: E501 -# Authors: Robert Luke -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # We are importing everything we need for this example: diff --git a/examples/create_bids_folder.py b/examples/create_bids_folder.py index ba3c53220..b050b97b6 100644 --- a/examples/create_bids_folder.py +++ b/examples/create_bids_folder.py @@ -13,13 +13,16 @@ ``write_raw_bids``. This example is for manually creating files/folders. """ -# Authors: Chris Holdgraf -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # First we will import the relevant functions +import shutil + +import mne + from mne_bids import BIDSPath # %% @@ -49,7 +52,11 @@ # # You can also use MNE-BIDS to create folder hierarchies. +my_root = mne.datasets.sample.data_path() # replace with *your* root folder bids_path = BIDSPath( - subject="01", session="mysession", datatype="meg", root="path/to/project" + subject="mneBIDStest", session="mysession", datatype="meg", root=my_root ).mkdir() print(bids_path.directory) + +# clean up +shutil.rmtree(my_root / "sub-mneBIDStest") diff --git a/examples/mark_bad_channels.py b/examples/mark_bad_channels.py index 1e075c835..bd6ad7630 100644 --- a/examples/mark_bad_channels.py +++ b/examples/mark_bad_channels.py @@ -15,9 +15,8 @@ .. _MNE-Python Annotations tutorial: https://mne.tools/stable/auto_tutorials/raw/30_annotate_raw.html#annotating-raw-objects-interactively """ # noqa: E501 D400 D205 -# Authors: Richard Höchenberger -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # We will demonstrate how to mark individual channels as bad on the MNE diff --git a/examples/read_bids_datasets.py b/examples/read_bids_datasets.py index 6b062ff86..b0d03ed95 100644 --- a/examples/read_bids_datasets.py +++ b/examples/read_bids_datasets.py @@ -24,11 +24,9 @@ inspect BIDS-formatted data. """ -# Authors: Adam Li -# Richard Höchenberger -# Alex Rockhill -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # Imports diff --git a/examples/rename_brainvision_files.py b/examples/rename_brainvision_files.py index 9a4ee4629..8c479dafe 100644 --- a/examples/rename_brainvision_files.py +++ b/examples/rename_brainvision_files.py @@ -29,9 +29,8 @@ .. _BrainVision data format: https://www.brainproducts.com/support-resources/brainvision-core-data-format-1-0/ """ # noqa:E501 -# Authors: Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # We are importing everything we need for this example: @@ -89,11 +88,7 @@ # For converting data files, or writing new data to the BrainVision format, you # can use :mod:`mne.export` or have a look at the `pybv`_ Python package. # -# There is node JS tool to check the integrity of your BrainVision files. -# For that, see the `BrainVision Validator `_ -# # .. _`pybv`: https://github.com/bids-standard/pybv -# .. _`bv-validator`: https://github.com/sappelhoff/brainvision-validator # # References # ---------- diff --git a/examples/update_bids_datasets.py b/examples/update_bids_datasets.py index 667e721c3..23a693348 100644 --- a/examples/update_bids_datasets.py +++ b/examples/update_bids_datasets.py @@ -10,10 +10,9 @@ In this tutorial, we show how ``update_sidecar_json`` can be used to update and modify BIDS-formatted data. """ -# Authors: Adam Li -# mne-bids developers -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause # %% # Imports diff --git a/mne_bids/__init__.py b/mne_bids/__init__.py index 45e95587b..23cc18ce6 100644 --- a/mne_bids/__init__.py +++ b/mne_bids/__init__.py @@ -1,5 +1,8 @@ """MNE software for easily interacting with BIDS compatible datasets.""" +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + try: from importlib.metadata import version diff --git a/mne_bids/commands/__init__.py b/mne_bids/commands/__init__.py index ffcea797c..55576f924 100644 --- a/mne_bids/commands/__init__.py +++ b/mne_bids/commands/__init__.py @@ -1 +1,4 @@ """Initialize cli.""" + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause diff --git a/mne_bids/commands/mne_bids_calibration_to_bids.py b/mne_bids/commands/mne_bids_calibration_to_bids.py index 4cceccb1a..d67c02f38 100644 --- a/mne_bids/commands/mne_bids_calibration_to_bids.py +++ b/mne_bids/commands/mne_bids_calibration_to_bids.py @@ -5,9 +5,9 @@ --bids_root=bids_root --file=sss_cal.dat """ -# Authors: Richard Höchenberger -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause from mne.utils import logger diff --git a/mne_bids/commands/mne_bids_count_events.py b/mne_bids/commands/mne_bids_count_events.py index 8c7efdc38..45cb0b4a8 100644 --- a/mne_bids/commands/mne_bids_count_events.py +++ b/mne_bids/commands/mne_bids_count_events.py @@ -4,9 +4,9 @@ """ -# Authors: Alex Gramfort -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + from pathlib import Path import mne_bids diff --git a/mne_bids/commands/mne_bids_cp.py b/mne_bids/commands/mne_bids_cp.py index 7d981f11b..d853e71ce 100644 --- a/mne_bids/commands/mne_bids_cp.py +++ b/mne_bids/commands/mne_bids_cp.py @@ -3,9 +3,9 @@ example usage: $ mne_bids cp --input myfile.vhdr --output sub-01_task-test.vhdr """ -# Authors: Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import mne_bids from mne_bids.copyfiles import copyfile_brainvision, copyfile_ctf, copyfile_eeglab diff --git a/mne_bids/commands/mne_bids_crosstalk_to_bids.py b/mne_bids/commands/mne_bids_crosstalk_to_bids.py index 391fbd361..c489b3b48 100644 --- a/mne_bids/commands/mne_bids_crosstalk_to_bids.py +++ b/mne_bids/commands/mne_bids_crosstalk_to_bids.py @@ -5,9 +5,9 @@ --bids_root=bids_root --file=ct_sparse.fif """ -# Authors: Richard Höchenberger -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause from mne.utils import logger diff --git a/mne_bids/commands/mne_bids_inspect.py b/mne_bids/commands/mne_bids_inspect.py index d47339cad..8a0e98d2f 100644 --- a/mne_bids/commands/mne_bids_inspect.py +++ b/mne_bids/commands/mne_bids_inspect.py @@ -5,9 +5,9 @@ --datatype=meg --suffix=meg --bids_root=bids_root """ -# Authors: Richard Höchenberger -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause from mne.utils import logger diff --git a/mne_bids/commands/mne_bids_mark_channels.py b/mne_bids/commands/mne_bids_mark_channels.py index 045e1035e..04787169b 100644 --- a/mne_bids/commands/mne_bids_mark_channels.py +++ b/mne_bids/commands/mne_bids_mark_channels.py @@ -7,9 +7,9 @@ --bids_root=bids_root """ -# Authors: Richard Höchenberger -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause from mne.utils import logger diff --git a/mne_bids/commands/mne_bids_raw_to_bids.py b/mne_bids/commands/mne_bids_raw_to_bids.py index 105054020..76b5cdb47 100644 --- a/mne_bids/commands/mne_bids_raw_to_bids.py +++ b/mne_bids/commands/mne_bids_raw_to_bids.py @@ -5,10 +5,9 @@ """ -# Authors: Teon Brooks -# Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + from itertools import chain, repeat import mne_bids diff --git a/mne_bids/commands/mne_bids_report.py b/mne_bids/commands/mne_bids_report.py index 2ca58bbcf..e2aacc77d 100644 --- a/mne_bids/commands/mne_bids_report.py +++ b/mne_bids/commands/mne_bids_report.py @@ -4,9 +4,9 @@ """ -# Authors: Alexandre Gramfort -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import mne_bids from mne_bids import make_report diff --git a/mne_bids/commands/run.py b/mne_bids/commands/run.py index d0996db58..acc3a6837 100755 --- a/mne_bids/commands/run.py +++ b/mne_bids/commands/run.py @@ -1,9 +1,8 @@ """Command Line Interface for MNE-BIDS.""" -# Authors: Teon Brooks -# Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import glob import os.path as op import subprocess diff --git a/mne_bids/commands/tests/test_cli.py b/mne_bids/commands/tests/test_cli.py index 20101fa28..346a8b5f5 100644 --- a/mne_bids/commands/tests/test_cli.py +++ b/mne_bids/commands/tests/test_cli.py @@ -1,9 +1,8 @@ """Test command line.""" -# Authors: Teon L Brooks -# Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import os.path as op from pathlib import Path diff --git a/mne_bids/config.py b/mne_bids/config.py index 7941cbb2c..eb68544a0 100644 --- a/mne_bids/config.py +++ b/mne_bids/config.py @@ -1,5 +1,8 @@ """Configuration values for MNE-BIDS.""" +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + from mne import io from mne.io.constants import FIFF diff --git a/mne_bids/conftest.py b/mne_bids/conftest.py index 46948d2df..784ef0479 100644 --- a/mne_bids/conftest.py +++ b/mne_bids/conftest.py @@ -1,5 +1,8 @@ """Configure all tests.""" +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import mne import pytest diff --git a/mne_bids/copyfiles.py b/mne_bids/copyfiles.py index dc82c1eaf..84a2078d4 100644 --- a/mne_bids/copyfiles.py +++ b/mne_bids/copyfiles.py @@ -4,17 +4,11 @@ original data formats have properties that restrict such operations. That is, moving/renaming raw data files naively might lead to broken files, for example due to internal pointers that are not being updated. - """ -# Authors: Mainak Jas -# Alexandre Gramfort -# Teon Brooks -# Chris Holdgraf -# Stefan Appelhoff -# Matt Sanderson -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import os import os.path as op import re diff --git a/mne_bids/dig.py b/mne_bids/dig.py index 1b372fa00..aeeae3e16 100644 --- a/mne_bids/dig.py +++ b/mne_bids/dig.py @@ -1,10 +1,8 @@ """Read/write BIDS compatible electrode/coords structures from MNE.""" -# Authors: Adam Li -# Stefan Appelhoff -# Alex Rockhill -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import json import os.path as op import re diff --git a/mne_bids/inspect.py b/mne_bids/inspect.py index 9106cfbe2..445538375 100644 --- a/mne_bids/inspect.py +++ b/mne_bids/inspect.py @@ -1,8 +1,7 @@ """Inspect and annotate BIDS raw data.""" -# Authors: Richard Höchenberger -# Stefan Appelhoff -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause from pathlib import Path diff --git a/mne_bids/path.py b/mne_bids/path.py index 101d2715c..6144e01a4 100644 --- a/mne_bids/path.py +++ b/mne_bids/path.py @@ -1,9 +1,8 @@ """BIDS compatible path functionality.""" -# Authors: Adam Li -# Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import glob import json import os diff --git a/mne_bids/pick.py b/mne_bids/pick.py index a351d131f..959562be2 100644 --- a/mne_bids/pick.py +++ b/mne_bids/pick.py @@ -1,8 +1,8 @@ """Define coil types for MEG.""" -# Authors: Matt Sanderson -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + from mne.io.constants import FIFF diff --git a/mne_bids/read.py b/mne_bids/read.py index cf91f43d7..66d19cc49 100644 --- a/mne_bids/read.py +++ b/mne_bids/read.py @@ -1,12 +1,8 @@ """Check whether a file format is supported by BIDS and then load it.""" -# Authors: Mainak Jas -# Alexandre Gramfort -# Teon Brooks -# Chris Holdgraf -# Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import json import os import os.path as op diff --git a/mne_bids/report/__init__.py b/mne_bids/report/__init__.py index 47816cbbc..18f57cd47 100644 --- a/mne_bids/report/__init__.py +++ b/mne_bids/report/__init__.py @@ -1,3 +1,6 @@ """Create a summary report of the BIDS dataset.""" +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + from ._report import make_report diff --git a/mne_bids/report/_report.py b/mne_bids/report/_report.py index cb681c316..e61269803 100644 --- a/mne_bids/report/_report.py +++ b/mne_bids/report/_report.py @@ -1,8 +1,8 @@ """Make BIDS report from dataset and sidecar files.""" -# Authors: Adam Li -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import json import os.path as op import textwrap diff --git a/mne_bids/sidecar_updates.py b/mne_bids/sidecar_updates.py index 0942aa2a8..481f76069 100644 --- a/mne_bids/sidecar_updates.py +++ b/mne_bids/sidecar_updates.py @@ -1,10 +1,7 @@ """Update BIDS directory structures and sidecar files meta data.""" -# Authors: Adam Li -# Austin Hurst -# Stefan Appelhoff -# mne-bids developers -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause import json from collections import OrderedDict diff --git a/mne_bids/stats.py b/mne_bids/stats.py index 50931b005..aeed07b38 100644 --- a/mne_bids/stats.py +++ b/mne_bids/stats.py @@ -1,8 +1,7 @@ """Some functions to extract stats from a BIDS dataset.""" -# Authors: Alex Gramfort -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause from mne_bids import BIDSPath, get_datatypes from mne_bids.config import EPHY_ALLOWED_DATATYPES diff --git a/mne_bids/tests/conftest.py b/mne_bids/tests/conftest.py index 6dd706cf9..675e82fa2 100644 --- a/mne_bids/tests/conftest.py +++ b/mne_bids/tests/conftest.py @@ -1,5 +1,8 @@ """Configure tests.""" +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import os import platform diff --git a/mne_bids/tests/data/tiny_bids/code/make_tiny_bids_dataset.py b/mne_bids/tests/data/tiny_bids/code/make_tiny_bids_dataset.py index f41e666e5..3ce5f24a3 100644 --- a/mne_bids/tests/data/tiny_bids/code/make_tiny_bids_dataset.py +++ b/mne_bids/tests/data/tiny_bids/code/make_tiny_bids_dataset.py @@ -1,5 +1,8 @@ """Code used to generate the tiny_bids dataset.""" +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + # %% import json from pathlib import Path @@ -110,7 +113,7 @@ ds_json = json.loads(dataset_description_json_path.read_text(encoding="utf-8")) ds_json["Name"] = "tiny_bids" -ds_json["Authors"] = ["MNE-BIDS Developers", "And Friends"] +ds_json["Authors"] = ["The MNE-BIDS developers", "And Friends"] with open(dataset_description_json_path, "w", encoding="utf-8") as fout: json.dump(ds_json, fout, indent=4) diff --git a/mne_bids/tests/data/tiny_bids/dataset_description.json b/mne_bids/tests/data/tiny_bids/dataset_description.json index df7b02aae..bcefa8d2c 100644 --- a/mne_bids/tests/data/tiny_bids/dataset_description.json +++ b/mne_bids/tests/data/tiny_bids/dataset_description.json @@ -3,7 +3,7 @@ "BIDSVersion": "1.7.0", "DatasetType": "raw", "Authors": [ - "MNE-BIDS Developers", + "The MNE-BIDS developers", "And Friends" ] } diff --git a/mne_bids/tests/test_copyfiles.py b/mne_bids/tests/test_copyfiles.py index 2961ea508..68f896736 100644 --- a/mne_bids/tests/test_copyfiles.py +++ b/mne_bids/tests/test_copyfiles.py @@ -1,10 +1,8 @@ """Testing copyfile functions.""" -# Authors: Chris Holdgraf -# Mainak Jas -# Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import datetime import os.path as op from pathlib import Path diff --git a/mne_bids/tests/test_dig.py b/mne_bids/tests/test_dig.py index 82ba9c9ea..f5b7168eb 100644 --- a/mne_bids/tests/test_dig.py +++ b/mne_bids/tests/test_dig.py @@ -2,9 +2,9 @@ For each supported coordinate frame, implement a test. """ -# Authors: Alex Rockhill -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause import os import os.path as op diff --git a/mne_bids/tests/test_inspect.py b/mne_bids/tests/test_inspect.py index b80a4399a..b76589322 100644 --- a/mne_bids/tests/test_inspect.py +++ b/mne_bids/tests/test_inspect.py @@ -1,5 +1,8 @@ """Test the interactive data inspector.""" +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import os.path as op import mne diff --git a/mne_bids/tests/test_path.py b/mne_bids/tests/test_path.py index 945d45736..eaa331c2e 100644 --- a/mne_bids/tests/test_path.py +++ b/mne_bids/tests/test_path.py @@ -1,9 +1,8 @@ """Test for the MNE BIDSPath functions.""" -# Authors: Adam Li -# Richard Höchenberger -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import os import os.path as op import shutil diff --git a/mne_bids/tests/test_pick.py b/mne_bids/tests/test_pick.py index 61320ac49..20dbf21f5 100644 --- a/mne_bids/tests/test_pick.py +++ b/mne_bids/tests/test_pick.py @@ -1,7 +1,7 @@ """Test for the coil type picking function.""" -# Authors: Matt Sanderson -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause import os.path as op diff --git a/mne_bids/tests/test_read.py b/mne_bids/tests/test_read.py index 560f71ac2..6d7e10a07 100644 --- a/mne_bids/tests/test_read.py +++ b/mne_bids/tests/test_read.py @@ -1,8 +1,8 @@ """Testing utilities for file io.""" -# Authors: Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import json import os import os.path as op diff --git a/mne_bids/tests/test_report.py b/mne_bids/tests/test_report.py index 5788d0188..f41271c78 100644 --- a/mne_bids/tests/test_report.py +++ b/mne_bids/tests/test_report.py @@ -1,8 +1,8 @@ """Testing automatic BIDS report.""" -# Authors: Adam Li -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import os.path as op import textwrap diff --git a/mne_bids/tests/test_stats.py b/mne_bids/tests/test_stats.py index d9cd03926..caa5c5f70 100644 --- a/mne_bids/tests/test_stats.py +++ b/mne_bids/tests/test_stats.py @@ -1,7 +1,7 @@ """Testing stats reporting.""" -# Authors: Alex Gramfort -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause import itertools diff --git a/mne_bids/tests/test_tsv_handler.py b/mne_bids/tests/test_tsv_handler.py index cd353c755..2c9285650 100644 --- a/mne_bids/tests/test_tsv_handler.py +++ b/mne_bids/tests/test_tsv_handler.py @@ -1,7 +1,7 @@ """Test for the tsv handling functions.""" -# Authors: Matt Sanderson -# -# License: BSD-3-Clause + +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause from collections import OrderedDict as odict diff --git a/mne_bids/tests/test_update.py b/mne_bids/tests/test_update.py index 52c5a6db9..6bfb13d77 100644 --- a/mne_bids/tests/test_update.py +++ b/mne_bids/tests/test_update.py @@ -1,8 +1,8 @@ """Test for the MNE BIDS updating of BIDS datasets.""" -# Authors: Adam Li -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import json import os.path as op from pathlib import Path diff --git a/mne_bids/tests/test_utils.py b/mne_bids/tests/test_utils.py index 044db417a..0f08454c4 100644 --- a/mne_bids/tests/test_utils.py +++ b/mne_bids/tests/test_utils.py @@ -1,10 +1,8 @@ """Testing utilities for the MNE BIDS converter.""" -# Authors: Chris Holdgraf -# Mainak Jas -# Stefan Appelhoff -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import os.path as op from datetime import datetime from pathlib import Path diff --git a/mne_bids/tests/test_write.py b/mne_bids/tests/test_write.py index 263a6549f..3519e6120 100644 --- a/mne_bids/tests/test_write.py +++ b/mne_bids/tests/test_write.py @@ -3,13 +3,9 @@ For each supported file format, implement a test. """ -# Authors: Mainak Jas -# Teon L Brooks -# Chris Holdgraf -# Stefan Appelhoff -# Matt Sanderson -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import codecs import inspect import json diff --git a/mne_bids/tsv_handler.py b/mne_bids/tsv_handler.py index 3ce4b60d8..73bc228bc 100644 --- a/mne_bids/tsv_handler.py +++ b/mne_bids/tsv_handler.py @@ -1,5 +1,8 @@ """Private functions to handle tabular data.""" +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + from collections import OrderedDict from copy import deepcopy diff --git a/mne_bids/utils.py b/mne_bids/utils.py index 2c934b2b1..105feb7e8 100644 --- a/mne_bids/utils.py +++ b/mne_bids/utils.py @@ -1,13 +1,8 @@ """Utility and helper functions for MNE-BIDS.""" -# Authors: Mainak Jas -# Alexandre Gramfort -# Teon Brooks -# Chris Holdgraf -# Stefan Appelhoff -# Matt Sanderson -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import json import os import re diff --git a/mne_bids/write.py b/mne_bids/write.py index be0a15012..09d4dc46f 100644 --- a/mne_bids/write.py +++ b/mne_bids/write.py @@ -1,13 +1,8 @@ """Make BIDS compatible directory structures and infer meta data from MNE.""" -# Authors: Mainak Jas -# Alexandre Gramfort -# Teon Brooks -# Chris Holdgraf -# Stefan Appelhoff -# Matt Sanderson -# -# License: BSD-3-Clause +# Authors: The MNE-BIDS developers +# SPDX-License-Identifier: BSD-3-Clause + import json import os import os.path as op diff --git a/pyproject.toml b/pyproject.toml index 1a87c0f11..272befae4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "mne-bids" description = "MNE-BIDS: Organizing MEG, EEG, and iEEG data according to the BIDS specification and facilitating their analysis with MNE-Python" dynamic = ["version"] -authors = [{ name = "MNE-BIDS Developers" }] +authors = [{ name = "The MNE-BIDS developers" }] maintainers = [ { name = "Stefan Appelhoff", email = "stefan.appelhoff@mailbox.org" }, ] @@ -39,7 +39,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", ] scripts = { mne_bids = "mne_bids.commands.run:main" } -dependencies = ["mne>=1.5", "numpy>=1.21.2", "scipy>=1.7.1"] +dependencies = ["mne>=1.6", "numpy>=1.21.2", "scipy>=1.7.1"] [project.optional-dependencies] # Variants with dependencies that will get installed on top of those listed unter