Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
4 changes: 1 addition & 3 deletions .github/workflows/linux_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libopengl0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
- run: ./tools/setup_xvfb.sh
name: 'Setup xvfb'
- uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/linux_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
# PIP + non-default stim channel + log level info
job:
if: "github.repository == 'mne-tools/mne-python' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
name: 'py3.8'
runs-on: ubuntu-latest
name: 'py3.9'
runs-on: ubuntu-18.04 # same as ubuntu-latest, but more precise name
defaults:
run:
shell: bash
Expand All @@ -22,14 +22,12 @@ jobs:
MNE_STIM_CHANNEL: 'STI101'
OPENBLAS_NUM_THREADS: '1'
PYTHONUNBUFFERED: '1'
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.9'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libopengl0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
- run: ./tools/setup_xvfb.sh
name: 'Setup xvfb'
- uses: actions/setup-python@v2
with:
Expand Down
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
.. -*- mode: rst -*-

|Travis|_ |Azure|_ |Circle|_ |Codecov|_ |PyPI|_ |conda-forge|_ |Zenodo|_
|GH-Linux|_ |GH-macOS|_ |Azure|_ |Circle|_ |Codecov|_ |PyPI|_ |conda-forge|_ |Zenodo|_

|MNE|_

.. |Travis| image:: https://api.travis-ci.org/mne-tools/mne-python.svg?branch=master
.. _Travis: https://travis-ci.org/mne-tools/mne-python/branches
.. |GH-Linux| image:: https://github.com/mne-tools/mne-python/workflows/linux%20/%20conda/badge.svg?branch=master
.. _GH-Linux: https://github.com/mne-tools/mne-python/actions?query=branch:master+event:push

.. |GH-macOS| image:: https://github.com/mne-tools/mne-python/workflows/macos%20/%20conda/badge.svg?branch=master
.. _GH-macOS: https://github.com/mne-tools/mne-python/actions?query=branch:master+event:push
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preview version:

https://github.com/mne-tools/mne-python/blob/69045051f1d4a007bbc37d8159aba024e2347587/README.rst

I could add linux / pip etc. but since our official instructions are conda I think it makes sense to just to have the conda ones listed here.


.. |Azure| image:: https://dev.azure.com/mne-tools/mne-python/_apis/build/status/mne-tools.mne-python?branchName=master
.. _Azure: https://dev.azure.com/mne-tools/mne-python/_build/latest?definitionId=1&branchName=master
Expand Down
12 changes: 5 additions & 7 deletions mne/preprocessing/tests/test_xdawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
create_info, EpochsArray)
from mne.decoding import Vectorizer
from mne.io import read_raw_fif
from mne.utils import requires_sklearn, check_version
from mne.utils import requires_sklearn
from mne.preprocessing.xdawn import Xdawn, _XdawnTransformer

base_dir = op.join(op.dirname(__file__), '..', '..', 'io', 'tests', 'data')
Expand Down Expand Up @@ -193,12 +193,10 @@ def test_xdawn_regularization():
xd.fit(epochs)
xd = Xdawn(correct_overlap=False, reg='diagonal_fixed')
xd.fit(epochs)
bad_eig = check_version('numpy', '1.16.5') # some problem with newer NumPy
if bad_eig:
pytest.skip('Unknown MKL+Windows error fails for eig check')
xd = Xdawn(correct_overlap=False, reg=None)
with pytest.raises(ValueError, match='Could not compute eigenvalues'):
xd.fit(epochs)
# XXX in principle this should maybe raise an error due to deficiency?
# xd = Xdawn(correct_overlap=False, reg=None)
# with pytest.raises(ValueError, match='Could not compute eigenvalues'):
# xd.fit(epochs)


@requires_sklearn
Expand Down
2 changes: 1 addition & 1 deletion mne/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def sys_info(fid=None, show_paths=False):
elif mod_name in ('mayavi', 'vtk'):
has_3d = True
if mod_name == 'vtk':
version = mod.VTK_VERSION
version = getattr(mod, 'VTK_VERSION', 'VTK_VERSION missing')
elif mod_name == 'PyQt5':
version = _check_pyqt5_version()
else:
Expand Down
2 changes: 1 addition & 1 deletion mne/viz/backends/_pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from pyvista import BackgroundPlotter
from pyvista.utilities import try_callback
from pyvista.plotting.plotting import _ALL_PLOTTERS
VTK9 = LooseVersion(vtk.VTK_VERSION) >= LooseVersion('9.0')
VTK9 = LooseVersion(getattr(vtk, 'VTK_VERSION', '9.0')) >= LooseVersion('9.0')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.



_FIGURES = dict()
Expand Down
21 changes: 14 additions & 7 deletions tools/github_actions_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ if [ ! -z "$CONDA_ENV" ]; then
pip uninstall -yq mne
elif [ ! -z "$CONDA_DEPENDENCIES" ]; then
conda install -y $CONDA_DEPENDENCIES
else # pip
python -m pip install --upgrade pip setuptools wheel
else # pip 3.9 (missing statsmodels and dipy)
python -m pip install --progress-bar off --upgrade pip setuptools wheel
pip uninstall -yq numpy
pip install -i "https://pypi.anaconda.org/scipy-wheels-nightly/simple" --pre "numpy!=1.20.0.dev0+20201111233731.0ffaaf8,!=1.20.0.dev0+20201111232921.0ffaaf8"
pip install -f "https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com" scipy pandas scikit-learn matplotlib h5py Pillow
pip install https://github.com/pyvista/pyvista/zipball/master
pip install https://github.com/pyvista/pyvistaqt/zipball/master
pip install --progress-bar off --upgrade --pre --only-binary ":all:" python-dateutil pytz joblib threadpoolctl
pip install --progress-bar off --upgrade --pre --only-binary ":all:" -i "https://pypi.anaconda.org/scipy-wheels-nightly/simple" numpy scipy pandas scikit-learn
pip install --progress-bar off --upgrade --pre --only-binary ":all:" -f "https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com" matplotlib
# built using vtk master branch on an Ubuntu 18.04.5 VM and uploaded to OSF:
wget -q https://osf.io/kej3v/download -O vtk-9.0.20201117-cp39-cp39-linux_x86_64.whl
pip install vtk-9.0.20201117-cp39-cp39-linux_x86_64.whl
pip install --progress-bar off https://github.com/pyvista/pyvista/zipball/master
pip install --progress-bar off https://github.com/pyvista/pyvistaqt/zipball/master
pip install --progress-bar off --upgrade --pre PyQt5
python -c "import vtk"
python -c "import pyvistaqt"
fi
pip install --upgrade -r requirements_testing.txt
pip install --progress-bar off --upgrade -r requirements_testing.txt
if [ "${DEPS}" != "minimal" ]; then
pip install nitime
fi
4 changes: 4 additions & 0 deletions tools/setup_xvfb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -ef

sudo apt-get install -yq libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libopengl0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset