Skip to content

Commit

Permalink
add author and license notes, fix links, remove alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Aug 25, 2024
1 parent cdab161 commit e78d6ae
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Install MNE-Python (development version)
if: matrix.mne-version == 'mne-main'
run: |
pip install git+https://github.com/mne-tools/mne-python.git@main
pip install --upgrade https://github.com/mne-tools/mne-python/archive/refs/heads/main.zip
- name: Check installed versions
run: |
Expand Down
11 changes: 2 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ For documentation, see the:
`Preprocessing Pipeline (PREP) <https://doi.org/10.3389/fninf.2015.00016>`_
for EEG data, working with `MNE-Python <https://mne.tools>`_.

**ALPHA SOFTWARE.**
**This package is currently in its early stages of iteration.**
**It may change both its internals or its user-facing API in the near future.**
**Any feedback and ideas on how to improve either of these is welcome!**
**Use this software at your own risk.**

Installation
============

Expand All @@ -75,13 +69,12 @@ For installing the **latest (development)** version of ``pyprep``, call:

.. code-block:: Text
pip install git+https://github.com/sappelhoff/pyprep.git@main
pip install --upgrade https://github.com/sappelhoff/pyprep/archive/refs/heads/main.zip
Both the *stable* and the *latest* installation will additionally install
all required dependencies automatically.
The dependencies are defined in the ``pyproject.toml`` file under the
``project.optional-dependencies`` section.
``dependencies`` and ``project.optional-dependencies`` sections.

Contributions
=============
Expand Down
8 changes: 2 additions & 6 deletions examples/run_full_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
.. currentmodule:: pyprep
""" # noqa: D205 D400

# Authors: Aamna Lawrence <[email protected]>
# Adam Li <[email protected]>
# Victor Xiang <[email protected]>
#
# License: MIT
#
# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

###############################################################################
#
Expand Down
6 changes: 2 additions & 4 deletions examples/run_ransac.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
.. currentmodule:: pyprep
""" # noqa: D205 D400

# Authors: Yorguin Mantilla <[email protected]>
#
# License: MIT
# Based On: use_noisy_module.py
# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

###############################################################################
# First we import what we need for this example.
Expand Down
3 changes: 3 additions & 0 deletions pyprep/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Initialize PyPREP."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import pyprep.ransac as ransac # noqa: F401
from pyprep.find_noisy_channels import NoisyChannels # noqa: F401
from pyprep.prep_pipeline import PrepPipeline # noqa: F401
Expand Down
3 changes: 3 additions & 0 deletions pyprep/find_noisy_channels.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""finds bad channels."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import mne
import numpy as np
from mne.utils import check_random_state, logger
Expand Down
3 changes: 3 additions & 0 deletions pyprep/prep_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Module for PREP pipeline."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import mne
from mne.utils import check_random_state

Expand Down
3 changes: 3 additions & 0 deletions pyprep/ransac.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""RANSAC bad channel identification."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import mne
import numpy as np
from mne.channels.interpolation import _make_interpolation_matrix
Expand Down
3 changes: 3 additions & 0 deletions pyprep/removeTrend.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""High-pass filter and locally detrend the EEG signal."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import logging

import mne
Expand Down
3 changes: 3 additions & 0 deletions pyprep/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Module contains frequently used functions dealing with channel lists."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import math
from cmath import sqrt

Expand Down
5 changes: 4 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
"""Initilialize testing of pyprep modules."""
"""Initilialize testing of PyPREP modules."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Configure tests."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import mne
import numpy as np
import pytest
Expand Down
3 changes: 3 additions & 0 deletions tests/test_find_noisy_channels.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Test the find_noisy_channels module."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import numpy as np
import pytest

Expand Down
3 changes: 3 additions & 0 deletions tests/test_matprep_compare.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Compare PyPREP results to MATLAB PREP."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

from urllib.request import urlopen

import mne
Expand Down
3 changes: 3 additions & 0 deletions tests/test_prep_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Test the full PREP pipeline."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import matplotlib.pyplot as plt
import mne
import numpy as np
Expand Down
3 changes: 3 additions & 0 deletions tests/test_removeTrend.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Test remove trend."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import numpy as np

import pyprep.removeTrend as removeTrend
Expand Down
3 changes: 3 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""Test various helper functions."""

# Authors: The PyPREP developers
# SPDX-License-Identifier: MIT

import numpy as np
import pytest

Expand Down

0 comments on commit e78d6ae

Please sign in to comment.