Skip to content

Commit 3f48e4e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into resize
* upstream/master: (23 commits) MAINT: Add mne.surface to docstring tests (mne-tools#7930) MRG: Add smoothing controller to TimeViewer for the notebook backend (mne-tools#7928) MRG: TimeViewer matplotlib figure color (mne-tools#7925) fix typos (mne-tools#7924) MRG, ENH: Add method to project onto max power ori (mne-tools#7883) WIP: Warn if untested NIRX device (mne-tools#7905) MRG, BUG: Fix bug with volume morph and subject_to!="fsaverage" (mne-tools#7896) MRG, MAINT: Clean up use of bool, float, int (mne-tools#7917) ENH: Better error message for incompatible Evoked objects (mne-tools#7910) try to fix nullcontext (mne-tools#7908) WIP: Fix Travis (mne-tools#7906) WIP: Prototype of notebook viz (screencast) (mne-tools#7758) MRG, FIX: Speed up I/O tests, mark some slow (mne-tools#7904) Proper attribution for Blender tutorial (mne-tools#7900) MAINT: Check usage [ci skip] (mne-tools#7902) Allow find_bad_channels_maxwell() to return scores (mne-tools#7845) Warn if NIRx directory structure has been modified from original format (mne-tools#7898) Pin pvyista to 0.24.3 (mne-tools#7899) MRG: Add support for reading and writing sufaces to .obj (mne-tools#7824) Fix _auto_topomap_coords docstring. (mne-tools#7895) ...
2 parents a6da011 + c9064e7 commit 3f48e4e

File tree

139 files changed

+2090
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+2090
-620
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
name: Install 3D rendering libraries \ PyQt5 dependencies \ graphviz \ optipng (for optimized images)
5757
command: |
5858
sudo apt-get install libosmesa6 libglx-mesa0 libopengl0 libglx0 libdbus-1-3 \
59-
libxkbcommon-x11-0 \
59+
libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xfixes0 libxcb-xinerama0 \
6060
graphviz \
6161
optipng
6262
@@ -81,7 +81,6 @@ jobs:
8181
command: |
8282
python -m pip install --user --upgrade --progress-bar off pip numpy setuptools
8383
python -m pip install --user --upgrade --progress-bar off -f "https://vtk.org/download" "vtk>=9"
84-
python -m pip install --user --upgrade --progress-bar off https://github.com/enthought/mayavi/zipball/master
8584
python -m pip install --user --upgrade --progress-bar off -r requirements.txt
8685
python -m pip uninstall -yq pysurfer mayavi
8786
python -m pip install --user --upgrade --progress-bar off --pre sphinx
@@ -94,6 +93,10 @@ jobs:
9493
paths:
9594
- ~/.cache/pip
9695

96+
- run:
97+
name: Check PyQt5
98+
command: LD_DEBUG=libs python -c "from PyQt5.QtWidgets import QApplication, QWidget; app = QApplication([])"
99+
97100
# Look at what we have and fail early if there is some library conflict
98101
- run:
99102
name: Check installation

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ coverage
4646
.pytest_cache/
4747
__pycache__/
4848
prof/
49+
mne/viz/_brain/tests/.ipynb_checkpoints
4950

5051
dist/
5152
doc/_build/

.travis.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ addons:
66
apt:
77
packages:
88
- libxkbcommon-x11-0
9+
- libxcb*
910
- libosmesa6
1011
- libglx-mesa0
1112
- libopengl0
@@ -52,22 +53,21 @@ before_install:
5253
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
5354
/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;
5455
fi;
55-
- if [ -z "$CONDA_ENV" ] && [ -z "$CONDA_DEPENDENCIES" ]; then
56-
pip uninstall -yq numpy;
57-
pip install -i "https://pypi.anaconda.org/scipy-wheels-nightly/simple" --pre numpy;
58-
pip install -f "https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com" scipy pandas scikit-learn matplotlib h5py Pillow;
59-
pip install -f "https://vtk.org/download" "vtk>=9";
60-
pip install https://github.com/enthought/mayavi/zipball/master;
61-
pip install $PIP_DEPENDENCIES;
62-
pip install --upgrade -r requirements.txt;
56+
- |
57+
if [ -z "$CONDA_ENV" ] && [ -z "$CONDA_DEPENDENCIES" ]; then
58+
pip uninstall -yq numpy
59+
pip install -i "https://pypi.anaconda.org/scipy-wheels-nightly/simple" --pre numpy
60+
pip install -f "https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com" scipy pandas scikit-learn matplotlib h5py Pillow
61+
pip install -f "https://vtk.org/download" "vtk>=9"
62+
pip install --upgrade -r requirements.txt
6363
else
64-
git clone https://github.com/astropy/ci-helpers.git;
65-
source ci-helpers/travis/setup_conda.sh;
64+
git clone https://github.com/astropy/ci-helpers.git
65+
source ci-helpers/travis/setup_conda.sh
6666
if [ ! -z "$CONDA_ENV" ]; then
67-
conda activate base;
68-
conda env update --file $CONDA_ENV;
69-
pip uninstall -yq mne;
70-
fi;
67+
conda activate base
68+
conda env update --file $CONDA_ENV
69+
pip uninstall -yq mne
70+
fi
7171
fi
7272
# Always install these via pip so we get the latest possible versions (testing bugfixes)
7373
- pip install --upgrade "pytest<5.4" pytest-sugar pytest-cov pytest-mock pytest-timeout pytest-xdist codecov
@@ -141,7 +141,7 @@ script:
141141
pip install -e .;
142142
python mne/tests/test_evoked.py;
143143
fi;
144-
- echo pytest -m "${CONDITION}" --cov=mne -n 1 ${USE_DIRS}
144+
- echo 'pytest -m "${CONDITION}" --cov=mne -n 1 ${USE_DIRS}'
145145
- pytest -m "${CONDITION}" --tb=short --cov=mne -n 1 ${USE_DIRS}
146146
# run the minimal one with the testing data
147147
- if [ "${DEPS}" == "minimal" ]; then

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ recursive-include mne mne/datasets *.csv
3232
include mne/io/edf/gdf_encodes.txt
3333
include mne/datasets/sleep_physionet/SHA1SUMS
3434
include mne/externals/tqdm/_tqdm/tqdm.1
35+
include mne/viz/_brain/tests/test.ipynb
3536

3637
### Exclude
3738

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ flake:
105105
@echo "flake8 passed"
106106

107107
codespell: # running manually
108-
@codespell --builtin clear,rare,informal,names -w -i 3 -q 3 -S $(CODESPELL_SKIPS) --ignore-words=ignore_words.txt $(CODESPELL_DIRS)
108+
@codespell --builtin clear,rare,informal,names,usage -w -i 3 -q 3 -S $(CODESPELL_SKIPS) --ignore-words=ignore_words.txt $(CODESPELL_DIRS)
109109

110110
codespell-error: # running on travis
111-
@codespell --builtin clear,rare,informal,names -i 0 -q 7 -S $(CODESPELL_SKIPS) --ignore-words=ignore_words.txt $(CODESPELL_DIRS)
111+
@codespell --builtin clear,rare,informal,names,usage -i 0 -q 7 -S $(CODESPELL_SKIPS) --ignore-words=ignore_words.txt $(CODESPELL_DIRS)
112112

113113
pydocstyle:
114114
@echo "Running pydocstyle"

azure-pipelines.yml

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
- job: Style
1616
pool:
1717
vmImage: 'ubuntu-18.04'
18-
strategy:
19-
matrix:
20-
Python37-64bit-fast:
21-
PYTHON_VERSION: '3.7'
22-
PYTHON_ARCH: 'x64'
18+
variables:
19+
PYTHON_VERSION: '3.8'
20+
PYTHON_ARCH: 'x64'
2321
steps:
2422
- task: UsePythonVersion@0
2523
inputs:
@@ -28,6 +26,7 @@ jobs:
2826
addToPath: true
2927
displayName: 'Get Python'
3028
- bash: |
29+
set -e
3130
python -m pip install --upgrade pip setuptools
3231
python -m pip install numpy scipy matplotlib sphinx pytest pytest-cov pytest-timeout pytest-sugar flake8
3332
displayName: Install dependencies
@@ -89,7 +88,7 @@ jobs:
8988
OPENBLAS_NUM_THREADS: '1'
9089
steps:
9190
- bash: |
92-
sudo apt install libxkbcommon-x11-0 xvfb tcsh
91+
sudo apt install libxkbcommon-x11-0 xvfb tcsh libxcb*
9392
displayName: 'Install Ubuntu dependencies'
9493
- bash: |
9594
source tools/get_minimal_commands.sh
@@ -124,16 +123,55 @@ jobs:
124123
displayName: 'Get test data'
125124
- script: pytest -m "ultraslowtest" --tb=short --cov=mne -n 1 mne
126125
displayName: 'Run ultraslow tests'
127-
- script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN%
126+
- script: codecov --root $BUILD_REPOSITORY_LOCALPATH -t $CODECOV_TOKEN
128127
displayName: 'Codecov'
129128
env:
130129
CODECOV_TOKEN: $(CODECOV_TOKEN)
131-
condition: always()
130+
condition: succeededOrFailed()
132131
- task: PublishTestResults@2
133132
inputs:
134133
testResultsFiles: 'junit-*.xml'
135-
testRunTitle: 'Publish test results for Python $(python.version)'
136-
condition: always()
134+
testRunTitle: 'Publish test results for $(Agent.JobName)'
135+
failTaskOnFailedTests: true
136+
condition: succeededOrFailed()
137+
138+
139+
- job: Notebook
140+
pool:
141+
vmImage: 'ubuntu-18.04'
142+
variables:
143+
CONDA_ENV: 'server_environment.yml'
144+
steps:
145+
- bash: |
146+
set -e
147+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh --progress=dot:mega
148+
bash miniconda.sh -b -p ~/miniconda
149+
source ~/miniconda/etc/profile.d/conda.sh
150+
conda activate base
151+
conda env update --file $CONDA_ENV
152+
pip uninstall -yq mne
153+
pip install -ve .
154+
pip install pytest pytest-cov pytest-timeout pytest-sugar pytest-xdist flake8 codecov
155+
echo "##vso[task.setvariable variable=PATH]${PATH}"
156+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]${LD_LIBRARY_PATH}"
157+
displayName: 'Install dependencies'
158+
- script: mne sys_info
159+
displayName: 'Print config and test access to commands'
160+
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
161+
displayName: 'Get test data'
162+
- script: pytest --tb=short --cov=mne mne/viz
163+
displayName: 'Run viz tests'
164+
- script: codecov --root $BUILD_REPOSITORY_LOCALPATH -t $CODECOV_TOKEN
165+
displayName: 'Codecov'
166+
env:
167+
CODECOV_TOKEN: $(CODECOV_TOKEN)
168+
condition: succeededOrFailed()
169+
- task: PublishTestResults@2
170+
inputs:
171+
testResultsFiles: 'junit-*.xml'
172+
testRunTitle: 'Publish test results for $(Agent.JobName)'
173+
failTaskOnFailedTests: true
174+
condition: succeededOrFailed()
137175

138176

139177
- job: Windows
@@ -220,15 +258,16 @@ jobs:
220258
displayName: Print NumPy config
221259
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
222260
displayName: 'Get test data'
223-
- script: pytest -m "not ultraslowtest" --tb=short --cov=mne -n 1 mne
261+
- script: pytest -m "not slowtest" --tb=short --cov=mne -n 1 mne
224262
displayName: 'Run tests'
225263
- script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN%
226264
displayName: 'Codecov'
227265
env:
228266
CODECOV_TOKEN: $(CODECOV_TOKEN)
229-
condition: always()
267+
condition: succeededOrFailed()
230268
- task: PublishTestResults@2
231269
inputs:
232270
testResultsFiles: 'junit-*.xml'
233-
testRunTitle: 'Publish test results for Python $(python.version)'
234-
condition: always()
271+
testRunTitle: 'Publish test results for $(Agent.JobName) $(TEST_MODE) $(PYTHON_VERSION)'
272+
failTaskOnFailedTests: true
273+
condition: succeededOrFailed()
101 KB
Loading
70.4 KB
Loading
53.3 KB
Loading

doc/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
{% endblock %}
6565

6666
{# put the sidebar before the body #}
67-
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
67+
{% block sidebar1 %}{% endblock %}
6868
{% block sidebar2 %}{% endblock %}
6969

7070
{%- block footer %}

0 commit comments

Comments
 (0)