Skip to content

Commit

Permalink
adjust copyright and authors in tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Jul 11, 2024
1 parent 83f1ae8 commit c15b37b
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 44 deletions.
3 changes: 3 additions & 0 deletions mne_bids/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Configure tests."""

# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

import os
import platform

Expand Down
3 changes: 3 additions & 0 deletions mne_bids/tests/data/tiny_bids/code/make_tiny_bids_dataset.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 3 additions & 5 deletions mne_bids/tests/test_copyfiles.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
"""Testing copyfile functions."""

# Authors: Chris Holdgraf <choldgraf@berkeley.edu>
# Mainak Jas <mainak.jas@telecom-paristech.fr>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# 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
Expand Down
6 changes: 3 additions & 3 deletions mne_bids/tests/test_dig.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
For each supported coordinate frame, implement a test.
"""
# Authors: Alex Rockhill <aprockhill@mailbox.org>
#
# License: BSD-3-Clause

# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

import os
import os.path as op
Expand Down
6 changes: 5 additions & 1 deletion mne_bids/tests/test_inspect.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -8,7 +11,6 @@
from matplotlib.backend_bases import KeyEvent
from mne.datasets import testing
from mne.viz.utils import _fake_click
from test_read import warning_str

import mne_bids.inspect
from mne_bids import (
Expand All @@ -21,6 +23,8 @@
)
from mne_bids.read import _from_tsv

from .test_read import warning_str

_bids_path = BIDSPath(
subject="01", session="01", run="01", task="testing", datatype="meg"
)
Expand Down
10 changes: 5 additions & 5 deletions mne_bids/tests/test_path.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""Test for the MNE BIDSPath functions."""

# Authors: Adam Li <adam2392@gmail.com>
# Richard Höchenberger <richard.hoechenberger@gmail.com>
#
# License: BSD-3-Clause
# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

import os
import os.path as op
import shutil
Expand All @@ -15,7 +14,6 @@
import pytest
from mne.datasets import testing
from mne.io import anonymize_info
from test_read import _read_raw_fif, warning_str

from mne_bids import (
BIDSPath,
Expand All @@ -38,6 +36,8 @@
search_folder_for_text,
)

from .test_read import _read_raw_fif, warning_str

subject_id = "01"
session_id = "01"
run = "01"
Expand Down
6 changes: 3 additions & 3 deletions mne_bids/tests/test_pick.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test for the coil type picking function."""
# Authors: Matt Sanderson <matt.sanderson@mq.edu.au>
#
# License: BSD-3-Clause

# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

import os.path as op

Expand Down
6 changes: 3 additions & 3 deletions mne_bids/tests/test_read.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Testing utilities for file io."""

# Authors: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD-3-Clause
# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

import json
import os
import os.path as op
Expand Down
6 changes: 3 additions & 3 deletions mne_bids/tests/test_report.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Testing automatic BIDS report."""

# Authors: Adam Li <adam2392@gmail.com>
#
# License: BSD-3-Clause
# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

import os.path as op
import textwrap

Expand Down
6 changes: 3 additions & 3 deletions mne_bids/tests/test_stats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Testing stats reporting."""
# Authors: Alex Gramfort <alexandre.gramfort@inria.fr>
#
# License: BSD-3-Clause

# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

import itertools

Expand Down
6 changes: 3 additions & 3 deletions mne_bids/tests/test_tsv_handler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test for the tsv handling functions."""
# Authors: Matt Sanderson <matt.sanderson@mq.edu.au>
#
# License: BSD-3-Clause

# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

from collections import OrderedDict as odict

Expand Down
6 changes: 3 additions & 3 deletions mne_bids/tests/test_update.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Test for the MNE BIDS updating of BIDS datasets."""

# Authors: Adam Li <adam2392@gmail.com>
#
# 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
Expand Down
8 changes: 3 additions & 5 deletions mne_bids/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
"""Testing utilities for the MNE BIDS converter."""

# Authors: Chris Holdgraf <choldgraf@berkeley.edu>
# Mainak Jas <mainak.jas@telecom-paristech.fr>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# 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
Expand Down
10 changes: 3 additions & 7 deletions mne_bids/tests/test_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
For each supported file format, implement a test.
"""

# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr>
# Teon L Brooks <teon.brooks@gmail.com>
# Chris Holdgraf <choldgraf@berkeley.edu>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
# Matt Sanderson <matt.sanderson@mq.edu.au>
#
# License: BSD-3-Clause
# Authors: The MNE-BIDS developers
# SPDX-License-Identifier: BSD-3-Clause

import codecs
import inspect
import json
Expand Down

0 comments on commit c15b37b

Please sign in to comment.