Skip to content

Commit dcb3c0c

Browse files
committed
Merge remote-tracking branch 'upstream/master' into enh/cifti2
* upstream/master: (153 commits) DOC: fix path to links_names.txt FIX: remove improper space from import in freesurfer/io.py BLD: add doctest to Travis matrix DOC: fix ImportErrors in apigen.py for Python 3 DOC: remove another nipy.github.io link DOC: remove last vestiges of nipy-devel list DOC: fix mailing list and website link in README ENH: ls test -- take Matthew's snippet with better msg DOC: add additional sorting details to the parrec API docs BF: allow for int type string in ls on BE begin with <i DOC: add info on sorting to API docs for PAR/REC STY: PEP8 in doc/tools DOC: python 3 compatibility fixes in doc/tools RF: update code to remove deprecated imp module BF: make MPL viewer tests require MPL 1.3 NF: add min version argumemt to optpkg and test ENH: limit number of unique counts to be processed by 1000 and add --all-counts to override RF(no functional changes): flake8 nib-ls ENH: drop use of Counter in favor of MB's shared snippet using recipe from scipy DOC: mention that -c reports 0s if -z ...
2 parents ca37d4c + 7e41691 commit dcb3c0c

Some content is hidden

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

53 files changed

+3511
-288
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
[submodule "nibabel-data/nitest-freesurfer"]
1111
path = nibabel-data/nitest-freesurfer
1212
url = https://bitbucket.org/nipy/nitest-freesurfer.git
13+
[submodule "nibabel-data/parrec_oblique"]
14+
path = nibabel-data/parrec_oblique
15+
url = https://github.com/grlee77/parrec_oblique.git

.travis.yml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# munges each line before executing it to print out the exit status. It's okay
44
# for it to be on multiple physical lines, so long as you remember: - There
55
# can't be any leading "-"s - All newlines will be removed, so use ";"s
6+
67
language: python
78

89
# Run jobs on container-based infrastructure, can be overridden per job
@@ -11,15 +12,15 @@ sudo: false
1112
cache:
1213
directories:
1314
- $HOME/.cache/pip
14-
1515
addons:
1616
apt:
1717
packages:
1818
- libhdf5-serial-dev
19-
19+
# For numpy --pre wheels
20+
- libatlas-base-dev
2021
env:
2122
global:
22-
- DEPENDS="numpy scipy matplotlib h5py"
23+
- DEPENDS="numpy scipy matplotlib h5py pillow"
2324
- PYDICOM=1
2425
- INSTALL_TYPE="setup"
2526
python:
@@ -36,14 +37,26 @@ matrix:
3637
- python: 2.7
3738
env:
3839
- DEPENDS=numpy==1.5.1 PYDICOM=0
40+
# Absolute minimum dependencies plus oldest MPL
41+
- python: 2.7
42+
env:
43+
- DEPENDS="numpy==1.5.1 matplotlib==1.3.1" PYDICOM=0
3944
# Minimum pydicom dependency
4045
- python: 2.7
4146
env:
42-
- DEPENDS="numpy==1.5.1 pydicom==0.9.7"
47+
- DEPENDS="numpy==1.5.1 pydicom==0.9.7 pillow==2.6"
48+
# test against numpy 1.7
49+
- python: 2.7
50+
env:
51+
- DEPENDS="numpy==1.7.1"
4352
# pydicom 1.0 (currently unreleased)
4453
- python: 2.7
4554
env:
4655
- PYDICOM="v1.0"
56+
# test against pre-release builds
57+
- python: 2.7
58+
env:
59+
- EXTRA_PIP_FLAGS="--pre"
4760
# Documentation doctests
4861
- python: 2.7
4962
env:
@@ -63,14 +76,17 @@ matrix:
6376
- python: 3.5
6477
env:
6578
- STYLE=1
79+
- python: 3.5
80+
env:
81+
- DOC_DOC_TEST=1
6682
before_install:
6783
- source tools/travis_tools.sh
6884
- virtualenv --python=python venv
6985
- source venv/bin/activate
7086
- python --version # just to check
7187
- pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
7288
- retry pip install nose flake8 # always
73-
- wheelhouse_pip_install $DEPENDS
89+
- wheelhouse_pip_install $EXTRA_PIP_FLAGS $DEPENDS
7490
# pydicom <= 0.9.8 doesn't install on python 3
7591
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]; then
7692
if [ "$PYDICOM" == "1" ]; then
@@ -82,6 +98,7 @@ before_install:
8298
- if [ "${COVERAGE}" == "1" ]; then
8399
pip install coverage;
84100
pip install coveralls;
101+
pip install codecov;
85102
fi
86103
# command to install dependencies
87104
install:
@@ -91,13 +108,13 @@ install:
91108
elif [ "$INSTALL_TYPE" == "sdist" ]; then
92109
python setup_egg.py egg_info # check egg_info while we're here
93110
python setup_egg.py sdist
94-
wheelhouse_pip_install dist/*.tar.gz
111+
wheelhouse_pip_install $EXTRA_PIP_FLAGS dist/*.tar.gz
95112
elif [ "$INSTALL_TYPE" == "wheel" ]; then
96113
pip install wheel
97114
python setup_egg.py bdist_wheel
98-
wheelhouse_pip_install dist/*.whl
115+
wheelhouse_pip_install $EXTRA_PIP_FLAGS dist/*.whl
99116
elif [ "$INSTALL_TYPE" == "requirements" ]; then
100-
wheelhouse_pip_install -r requirements.txt
117+
wheelhouse_pip_install $EXTRA_PIP_FLAGS -r requirements.txt
101118
python setup.py install
102119
fi
103120
# Point to nibabel data directory
@@ -117,16 +134,16 @@ script:
117134
COVER_ARGS="--with-coverage --cover-package nibabel";
118135
fi
119136
if [ "$DOC_DOC_TEST" == "1" ]; then
120-
pip install sphinx numpydoc texext;
121137
cd ../doc;
138+
pip install -r ../doc-requirements.txt
122139
make html;
123140
make doctest;
124141
else
125142
nosetests --with-doctest $COVER_ARGS nibabel;
126143
fi
127144
fi
128145
after_success:
129-
- if [ "${COVERAGE}" == "1" ]; then coveralls; fi
146+
- if [ "${COVERAGE}" == "1" ]; then coveralls; codecov; fi
130147

131148
notifications:
132149
webhooks: http://nipy.bic.berkeley.edu:54856/travis

Changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ References like "pr/298" refer to github pull request numbers.
2626

2727
* Upcoming
2828

29+
* Read and write support for DICOM tags in NIfTI Extended Header using
30+
pydicom (pr/296);
2931
* Trackvis reader will now allow final streamline to have fewer points that
3032
tne numbe declared in the header, with ``strict=False`` argument to
3133
``read`` function;

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ deb-src: check-debian distclean
221221
bdist_rpm:
222222
$(PYTHON) setup.py bdist_rpm \
223223
--doc-files "doc" \
224-
--packager "nibabel authors <http://mail.scipy.org/mailman/listinfo/nipy-devel>"
225-
--vendor "nibabel authors <http://mail.scipy.org/mailman/listinfo/nipy-devel>"
224+
--packager "nibabel authors <http://mail.python.org/mailman/listinfo/neuroimaging>"
225+
--vendor "nibabel authors <http://mail.python.org/mailman/listinfo/neuroimaging>"
226226

227227

228228
# build MacOS installer -- depends on patched bdist_mpkg for Leopard

README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ Website
4141
=======
4242

4343
Current documentation on nibabel can always be found at the `NIPY nibabel
44-
website <https://nipy.github.io/nibabel>`_.
44+
website <http://nipy.org/nibabel>`_.
4545

4646
Mailing Lists
4747
=============
4848

49-
Please see the `nipy devel list
50-
<http://mail.scipy.org/mailman/listinfo/nipy-devel>`_. The nipy devel list is
51-
fine for user and developer questions about nibabel.
49+
Please send any questions or suggestions to the `neuroimaging mailing list
50+
<https://mail.python.org/mailman/listinfo/neuroimaging>`_.
5251

5352
Code
5453
====
@@ -62,7 +61,7 @@ You can find our sources and single-click downloads:
6261
* Downloads of all `available releases`_.
6362

6463
.. _main repository: https://github.com/nipy/nibabel
65-
.. _Documentation: https://nipy.github.io/nibabel
64+
.. _Documentation: http://nipy.org/nibabel
6665
.. _current release: https://pypi.python.org/pypi/nibabel
6766
.. _current development version: https://github.com/nipy/nibabel/archive/master.zip
6867
.. _available releases: https://github.com/nipy/nibabel/releases

bin/nib-dicomfs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!python
22
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##

0 commit comments

Comments
 (0)