-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify authors and copyright in all .py files (and make consistent) (…
…#1267) * authors are 'The MNE-BIDS developers' * clean up artifact from example * adjust copyright and authors in examples/ * adjust copyright and authors in root package * adjust copyright and authors in commands/ * adjust copyright and authors in tests/ * undo 'fix' of imports * fix example * bump previous mne version, it's 1.6, not 1.5 * fix where to write example
- Loading branch information
1 parent
422a842
commit 313fe10
Showing
65 changed files
with
185 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
# Alexandre Gramfort <[email protected]> | ||
# Stefan Appelhoff <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
|
||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
import glob | ||
import os | ||
import shutil | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,11 @@ | |
to do the heavy lifting for you, automatically. | ||
""" # noqa: D400 D205 | ||
|
||
# Authors: Richard Höchenberger <[email protected]> | ||
# 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, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
# Stefan Appelhoff <[email protected]> | ||
# | ||
# 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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,8 @@ | |
""" # noqa: E501 | ||
|
||
# Authors: Stefan Appelhoff <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# %% | ||
# We are importing everything we need for this example: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,8 @@ | |
format and how to retrieve them. | ||
""" | ||
|
||
# Authors: Mainak Jas <[email protected]> | ||
# | ||
# 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,8 @@ | |
checking out this group conversion example: :ref:`ex-convert-mne-sample` | ||
""" | ||
|
||
# Authors: Mainak Jas <[email protected]> | ||
# Teon Brooks <[email protected]> | ||
# Stefan Appelhoff <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# %% | ||
# Let us import ``mne_bids`` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,11 +41,8 @@ | |
""" # noqa: E501 | ||
|
||
# Authors: Adam Li <[email protected]> | ||
# Stefan Appelhoff <[email protected]> | ||
# Alex Rockhill <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# %% | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
# Alexandre Gramfort <[email protected]> | ||
# Teon Brooks <[email protected]> | ||
# Stefan Appelhoff <[email protected]> | ||
# Richard Höchenberger <[email protected]> | ||
# | ||
# 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,9 @@ | |
``nilearn`` on top of your usual ``mne-bids`` installation. | ||
""" | ||
# Authors: Stefan Appelhoff <[email protected]> | ||
# Alex Rockhill <[email protected]> | ||
# Alex Gramfort <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
|
||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# %% | ||
# Let's import everything we need for this example: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,8 @@ | |
""" # noqa: E501 | ||
|
||
# Authors: Robert Luke <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# %% | ||
# We are importing everything we need for this example: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,16 @@ | |
``write_raw_bids``. This example is for manually creating files/folders. | ||
""" | ||
|
||
# Authors: Chris Holdgraf <[email protected]> | ||
# | ||
# 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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
# | ||
# 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,9 @@ | |
inspect BIDS-formatted data. | ||
""" | ||
# Authors: Adam Li <[email protected]> | ||
# Richard Höchenberger <[email protected]> | ||
# Alex Rockhill <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
|
||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# %% | ||
# Imports | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,8 @@ | |
.. _BrainVision data format: https://www.brainproducts.com/support-resources/brainvision-core-data-format-1-0/ | ||
""" # noqa:E501 | ||
|
||
# Authors: Stefan Appelhoff <[email protected]> | ||
# | ||
# 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 <bv-validator_>`_ | ||
# | ||
# .. _`pybv`: https://github.com/bids-standard/pybv | ||
# .. _`bv-validator`: https://github.com/sappelhoff/brainvision-validator | ||
# | ||
# References | ||
# ---------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
# mne-bids developers | ||
# | ||
# License: BSD-3-Clause | ||
|
||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# %% | ||
# Imports | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
"""Initialize cli.""" | ||
|
||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
--bids_root=bids_root --file=sss_cal.dat | ||
""" | ||
# Authors: Richard Höchenberger <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
|
||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
from mne.utils import logger | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ | |
""" | ||
|
||
# Authors: Alex Gramfort <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
from pathlib import Path | ||
|
||
import mne_bids | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
example usage: $ mne_bids cp --input myfile.vhdr --output sub-01_task-test.vhdr | ||
""" | ||
|
||
# Authors: Stefan Appelhoff <[email protected]> | ||
# | ||
# 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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
--bids_root=bids_root --file=ct_sparse.fif | ||
""" | ||
# Authors: Richard Höchenberger <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
|
||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
from mne.utils import logger | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
--datatype=meg --suffix=meg --bids_root=bids_root | ||
""" | ||
# Authors: Richard Höchenberger <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
|
||
# Authors: The MNE-BIDS developers | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
from mne.utils import logger | ||
|
||
|
Oops, something went wrong.