Skip to content

Commit

Permalink
FIX: Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Sep 1, 2017
1 parent ad9c540 commit 5472d62
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
29 changes: 16 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ cache:
- $HOME/.ccache
env:
# TRAVIS_PYTHON_VERSION is only needed for neo's setup.py
global: PYTHON_VERSION=2.7 DISPLAY=:99.0 MNE_LOGGING_LEVEL=warning TEST_LOCATION=src
global: PYTHON_VERSION=2.7
MNE_LOGGING_LEVEL=warning
TEST_LOCATION=src
SPLIT_0=". beamformer channels commands connectivity datasets decoding forward gui inverse_sparse io"
SPLIT_1="minimum_norm preprocessing realtime simulation stats time_frequency viz"
TRAVIS_PYTHON_VERSION=3.6
SETUP_XVFB=True
os: linux

matrix:
include:
# No data + style testing
- env: DEPS=nodata MNE_DONTWRITE_HOME=true MNE_FORCE_SERIAL=true MNE_SKIP_NETWORK_TEST=1
OPTION="--doctest-ignore-import-errors"
CONDA_DEPENDENCIES="numpy scipy matplotlib sphinx pytest"
PIP_DEPENDENCIES="flake8 numpydoc codespell git+git://github.com/PyCQA/pydocstyle.git codecov check-manifest pytest-sugar pytest-cov pytest-attrib"

# 3.6 + non-default stim channel
- env: SPLIT=0 TEST_LOCATION=install MNE_STIM_CHANNEL=STI101
CONDA_ENVIRONMENT="environment.yml"
Expand All @@ -33,10 +42,10 @@ matrix:
# 2.7
- env: SPLIT=0
CONDA_DEPENDENCIES="numpy scipy matplotlib pandas scikit-learn h5py pillow statsmodels mayavi pytest"
PIP_DEPENDENCIES="git+git://github.com/nipy/PySurfer.git nitime faulthandler joblib nibabel codecov pytest-sugar pytest-cov pytest-attrib"
PIP_DEPENDENCIES="git+git://github.com/nipy/PySurfer.git nitime joblib nibabel codecov pytest-sugar pytest-cov pytest-attrib"
- env: SPLIT=1
CONDA_DEPENDENCIES="numpy scipy matplotlib pandas scikit-learn h5py pillow statsmodels mayavi pytest"
PIP_DEPENDENCIES="git+git://github.com/nipy/PySurfer.git nitime faulthandler joblib nibabel codecov pytest-sugar pytest-cov pytest-attrib"
PIP_DEPENDENCIES="git+git://github.com/nipy/PySurfer.git nitime joblib nibabel codecov pytest-sugar pytest-cov pytest-attrib"

# Oldest supported dependencies
- env: SPLIT=0
Expand All @@ -54,12 +63,6 @@ matrix:
CONDA_DEPENDENCIES="numpy scipy matplotlib pytest"
PIP_DEPENDENCIES="codecov pytest-sugar pytest-cov pytest-attrib"

# No data + style testing
- env: DEPS=nodata MNE_DONTWRITE_HOME=true MNE_FORCE_SERIAL=true MNE_SKIP_NETWORK_TEST=1
OPTION="--doctest-ignore-import-errors"
CONDA_DEPENDENCIES="numpy scipy matplotlib sphinx pytest"
PIP_DEPENDENCIES="flake8 numpydoc codespell git+git://github.com/PyCQA/pydocstyle.git codecov nose-timer nose-faulthandler check-manifest pytest-sugar pytest-cov pytest-attrib"

# Setup anaconda
before_install:
- git clone https://github.com/astropy/ci-helpers.git
Expand All @@ -78,9 +81,6 @@ before_install:
fi;
mne_surf2bem --version;
fi;
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
/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;
fi;
- if [ "${SPLIT}" == "0" ]; then
MNE_DIRS=${SPLIT_0};
elif [ "${SPLIT}" == "1" ]; then
Expand All @@ -90,7 +90,10 @@ before_install:
fi

install:
# Suppress the parallel outputs for logging cleanliness
# Need to uninstall the PIP-installed version
- if [ -z CONDA_ENVIRONMENT ]; then
pip uninstall mne;
fi;
- python setup.py build
- python setup.py install
- python -c "import mne; mne.sys_info()"
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ environment:
matrix:
- PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
cache:
- "C:\\Users\\appveyor\\AppData\\Local\\pip\\"

install:
- "git clone git://github.com/astropy/ci-helpers.git"
Expand Down
2 changes: 1 addition & 1 deletion mne/coreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ def scale_source_space(subject_to, src_name, subject_from=None, scale=None,
spacing = src_name # spacing in mm
src_pattern = src_fname
else:
match = re.match("(oct|ico)-?(\d+)$", src_name)
match = re.match(r"(oct|ico)-?(\d+)$", src_name)
if match:
spacing = '-'.join(match.groups())
src_pattern = src_fname
Expand Down

0 comments on commit 5472d62

Please sign in to comment.