Skip to content

Commit 83b55a2

Browse files
committed
Merge branch 'master' of github.com:nipy/nibabel
2 parents e06ed5e + 2817d1b commit 83b55a2

File tree

102 files changed

+6711
-789
lines changed

Some content is hidden

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

102 files changed

+6711
-789
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
[submodule "nibabel-data/parrec_oblique"]
1414
path = nibabel-data/parrec_oblique
1515
url = https://github.com/grlee77/parrec_oblique.git
16+
[submodule "nibabel-data/nitest-cifti2"]
17+
path = nibabel-data/nitest-cifti2
18+
url = https://github.com/demianw/nibabel-nitest-cifti2.git

.mailmap

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Cindee Madison <[email protected]> CindeeM <[email protected]>
1717
Cindee Madison <[email protected]> cindeem <[email protected]>
1818
Ian Nimmo-Smith <[email protected]> Ian Nimmo-Smith <[email protected]>
1919
Jean-Baptiste Poline <[email protected]> jbpoline <[email protected]>
20-
Félix C. Morency <[email protected]> Felix C. Morency <[email protected]> Félix C. Morency <[email protected]>
20+
Félix C. Morency <[email protected]> Felix C. Morency <[email protected]>
2121
Félix C. Morency <[email protected]> Félix C. Morency <[email protected]>
2222
Krish Subramaniam <[email protected]> Krish Subramaniam <[email protected]>
2323
Eric Larson <[email protected]> Eric89GXL <[email protected]>
@@ -28,10 +28,16 @@ Basile Pinsard <[email protected]> bpinsard <[email protected]>
2828
Basile Pinsard <[email protected]> bpinsard <[email protected]>
2929
3030
Ben Cipollini <[email protected]> Ben Cipollini <[email protected]>
31+
Chris Markiewicz <[email protected]> Christopher J. Markiewicz <[email protected]>
3132
Chris Markiewicz <[email protected]> Christopher J. Markiewicz <[email protected]>
3233
Chris Markiewicz <[email protected]> Christopher J. Markiewicz <[email protected]>
3334
Chris Markiewicz <[email protected]> Chris Johnson <[email protected]>
3435
Jaakko Leppäkangas <[email protected]> jaeilepp <[email protected]>
3536
Ariel Rokem <[email protected]> arokem <[email protected]>
3637
Oliver P. Hinds <[email protected]> ohinds <[email protected]>
3738
Marc-Alexandre Côté <[email protected]> Marc-Alexandre Cote <[email protected]>
39+
Satrajit Ghosh <[email protected]> Satrajit Ghosh <[email protected]>
40+
Jasper J.F. van den Bosch <[email protected]> Jasper <[email protected]>
41+
Gregory R. Lee <[email protected]> Gregory R. Lee <[email protected]>
42+
Demian Wassermann <[email protected]> Demian Wassermann <[email protected]>
43+
Paul McCarthy <[email protected]> Paul McCarthy <[email protected]>

.travis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ cache:
1515
env:
1616
global:
1717
- DEPENDS="six numpy scipy matplotlib h5py pillow"
18+
- OPTIONAL_DEPENDS=""
1819
- PYDICOM=1
1920
- INSTALL_TYPE="setup"
2021
- EXTRA_WHEELS="https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
@@ -33,19 +34,19 @@ matrix:
3334
# Absolute minimum dependencies
3435
- python: 2.7
3536
env:
36-
- DEPENDS="numpy==1.6.0" PYDICOM=0
37+
- DEPENDS="numpy==1.7.1" PYDICOM=0
3738
# Absolute minimum dependencies plus oldest MPL
3839
# Check these against:
3940
# nibabel/info.py
4041
# doc/source/installation.rst
4142
# requirements.txt
4243
- python: 2.7
4344
env:
44-
- DEPENDS="numpy==1.6.0 matplotlib==1.3.1" PYDICOM=0
45+
- DEPENDS="numpy==1.7.1 matplotlib==1.3.1" PYDICOM=0
4546
# Minimum pydicom dependency
4647
- python: 2.7
4748
env:
48-
- DEPENDS="numpy==1.6.0 pydicom==0.9.7 pillow==2.6"
49+
- DEPENDS="numpy==1.7.1 pydicom==0.9.7 pillow==2.6"
4950
# test against numpy 1.7
5051
- python: 2.7
5152
env:
@@ -84,6 +85,13 @@ matrix:
8485
- python: 3.5
8586
env:
8687
- DOC_DOC_TEST=1
88+
# Run tests with indexed_gzip present
89+
- python: 2.7
90+
env:
91+
- OPTIONAL_DEPENDS="indexed_gzip"
92+
- python: 3.5
93+
env:
94+
- OPTIONAL_DEPENDS="indexed_gzip"
8795
before_install:
8896
- source tools/travis_tools.sh
8997
- python -m pip install --upgrade pip
@@ -93,7 +101,7 @@ before_install:
93101
- python --version # just to check
94102
- pip install -U pip wheel # needed at one point
95103
- retry pip install nose flake8 mock # always
96-
- pip install $EXTRA_PIP_FLAGS $DEPENDS
104+
- pip install $EXTRA_PIP_FLAGS $DEPENDS $OPTIONAL_DEPENDS
97105
# pydicom <= 0.9.8 doesn't install on python 3
98106
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]; then
99107
if [ "$PYDICOM" == "1" ]; then

Changelog

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,84 @@ Gerhard (SG) and Eric Larson (EL).
2424

2525
References like "pr/298" refer to github pull request numbers.
2626

27+
2.2.1 (Wednesday 22 November 2017)
28+
==================================
29+
30+
Bug fixes
31+
---------
32+
33+
* Set L/R labels in orthoview correctly (pr/564) (CM)
34+
* Defer use of ufunc / memmap test - allows "freezing" (pr/572) (MB, reviewed
35+
by Satra Ghosh)
36+
* Fix doctest failures with pre-release numpy (pr/582) (MB, reviewed by CM)
37+
38+
Maintenance
39+
-----------
40+
41+
* Update documentation around NIfTI qform/sform codes (pr/576) (Paul McCarthy,
42+
reviewed by MB, CM) + (pr/580) (Bennet Fauber, reviewed by Paul McCarthy)
43+
* Skip precision test on macOS, newer numpy (pr/583) (MB, reviewed by CM)
44+
* Simplify AppVeyor script, removing conda (pr/584) (MB, reviewed by CM)
45+
46+
2.2 (Friday 13 October 2017)
47+
============================
48+
49+
New features
50+
------------
51+
52+
* CIFTI support (pr/249) (Satra Ghosh, Michiel Cottaar, BC, CM, Demian
53+
Wassermann, MB)
54+
* Support for MRtrix TCK streamlines file format (pr/486) (MC, reviewed by
55+
MB, Arnaud Bore, J-Donald Tournier, Jean-Christophe Houde)
56+
* Added ``get_fdata()`` as default method to retrieve scaled floating point
57+
data from ``DataobjImage``s (pr/551) (MB, reviewed by CM, Satra Ghosh)
58+
59+
Enhancements
60+
------------
61+
62+
* Support for alternative header field name variants in .PAR files
63+
(pr/507) (Gregory R. Lee)
64+
* Various enhancements to streamlines API by MC: support for reading TRK
65+
version 1 (pr/512); concatenation of tractograms using `+`/`+=` operators
66+
(pr/495); function to concatenate multiple ArraySequence objects (pr/494)
67+
* Support for numpy 1.12 (pr/500, pr/502) (MC, MB)
68+
* Allow dtype specifiers as fileslice input (pr/485) (MB)
69+
* Support "headerless" ArrayProxy specification, enabling memory-efficient
70+
ArrayProxy reshaping (pr/521) (CM)
71+
* Allow unknown NIfTI intent codes, add FSL codes (pr/528) (Paul McCarthy)
72+
* Improve error handling for ``img.__getitem__`` (pr/533) (Ariel Rokem)
73+
* Delegate reorientation to SpatialImage classes (pr/544) (Mark Hymers, CM,
74+
reviewed by MB)
75+
* Enable using ``indexed_gzip`` to reduce memory usage when reading from
76+
gzipped NIfTI and MGH files (pr/552) (Paul McCarthy, reviewed by MB, CM)
77+
78+
Bug fixes
79+
---------
80+
81+
* Miscellaneous MINC reader fixes (pr/493) (Robert D. Vincent, reviewed by CM,
82+
MB)
83+
* Fix corner case in ``wrapstruct.get`` (pr/516) (Paul McCarthy, reviewed by
84+
CM, MB)
85+
86+
Maintenance
87+
-----------
88+
89+
* Fix documentation errors (pr/517, pr/536) (Fernando Perez, Venky Reddy)
90+
* Documentation update (pr/514) (Ivan Gonzalez)
91+
* Update testing to use pre-release builds of dependencies (pr/509) (MB)
92+
* Better warnings when nibabel not on path (pr/503) (MB)
93+
94+
API changes and deprecations
95+
----------------------------
96+
97+
* ``header`` argument to ``ArrayProxy.__init__`` is renamed to ``spec``
98+
* Deprecation of ``header`` property of ``ArrayProxy`` object, for removal in
99+
3.0
100+
* ``wrapstruct.get`` now returns entries evaluating ``False``, instead of ``None``
101+
* ``DataobjImage.get_data`` to be deprecated April 2018, scheduled for removal
102+
April 2020
103+
104+
27105
2.1 (Monday 22 August 2016)
28106
===========================
29107

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,4 +288,4 @@ rm-orig:
288288
# Remove .orig temporary diff files generated by git
289289
find . -name "*.orig" -print | grep -v "fsaverage" | xargs rm
290290

291-
.PHONY: orig-src pylint
291+
.PHONY: orig-src pylint all build

appveyor.yml

Lines changed: 16 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,34 @@
11
# vim ft=yaml
22
# CI on Windows via appveyor
3-
# This file was based on Olivier Grisel's python-appveyor-demo
43

54
environment:
65

76
matrix:
8-
- PYTHON: "C:\\Python27-conda32"
9-
PYTHON_VERSION: "2.7"
10-
PYTHON_ARCH: "32"
11-
12-
- PYTHON: "C:\\Python34-conda32"
13-
PYTHON_VERSION: "3.4"
14-
PYTHON_ARCH: "32"
15-
16-
- PYTHON: "C:\\Python34-conda64"
17-
PYTHON_VERSION: "3.4"
18-
PYTHON_ARCH: "64"
19-
20-
- PYTHON: "C:\\Python35-conda64"
21-
PYTHON_VERSION: "3.5"
22-
PYTHON_ARCH: "64"
23-
24-
- PYTHON: "C:\\Python35-conda32"
25-
PYTHON_VERSION: "3.5"
26-
PYTHON_ARCH: "32"
7+
- PYTHON: C:\Python27
8+
- PYTHON: C:\Python27-x64
9+
- PYTHON: C:\Python34
10+
- PYTHON: C:\Python34-x64
11+
- PYTHON: C:\Python35
12+
- PYTHON: C:\Python35-x64
13+
- PYTHON: C:\Python36
14+
- PYTHON: C:\Python36-x64
2715

2816
install:
29-
# Install miniconda Python
30-
- "powershell ./tools/install_python.ps1"
31-
3217
# Prepend newly installed Python to the PATH of this build (this cannot be
3318
# done from inside the powershell script as it would require to restart
3419
# the parent CMD process).
35-
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
36-
37-
# Set up a conda environment:
38-
- conda config --set always_yes yes
39-
- conda update -q conda
40-
- conda info -a
41-
- conda create -q -n test-environment python=%PYTHON_VERSION%
42-
- activate test-environment
43-
44-
# Check that we have the expected version and architecture for Python
45-
- "python --version"
46-
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
20+
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
4721

4822
# Install the dependencies of the project.
49-
- "conda install --yes --quiet numpy scipy matplotlib nose h5py mock"
50-
- "pip install pydicom"
51-
- "python setup.py install"
52-
- "SET NIBABEL_DATA_DIR=%CD%\\nibabel-data"
23+
- pip install numpy scipy matplotlib nose h5py mock
24+
- pip install pydicom
25+
- pip install .
26+
- SET NIBABEL_DATA_DIR=%CD%\nibabel-data
5327

5428
build: false # Not a C# project, build stuff at the test step instead.
5529

5630
test_script:
5731
# Change into an innocuous directory and find tests from installation
58-
- "mkdir for_testing"
59-
- "cd for_testing"
60-
- "nosetests --with-doctest nibabel"
32+
- mkdir for_testing
33+
- cd for_testing
34+
- nosetests --with-doctest nibabel

doc-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Requirements for building docs
22
-r requirements.txt
3-
sphinx
3+
# Sphinx >= 1.6 breaks the math_dollar extension
4+
sphinx<=1.5.6
45
numpydoc
56
texext
67
matplotlib>=1.3

doc/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Makefile for Sphinx documentation
22
#
33

4+
# The Python executable to be used
5+
#
6+
PYTHON ?= python
7+
48
# You can set these variables from the command line.
59
SPHINXOPTS =
610
SPHINXBUILD = sphinx-build
@@ -98,4 +102,3 @@ gitwash-update:
98102
python ../tools/gitwash_dumper.py source nibabel --github-user=nipy \
99103
--project-url=http://nipy.org/nibabel \
100104
--project-ml-url=https://mail.python.org/mailman/listinfo/neuroimaging
101-

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# If extensions (or modules to document with autodoc) are in another directory,
4343
# add these directories to sys.path here. If the directory is relative to the
4444
# documentation root, use os.path.abspath to make it absolute, like shown here.
45-
sys.path.append(os.path.abspath('../sphinxext'))
45+
# sys.path.append(os.path.abspath('../sphinxext'))
4646

4747
# -- General configuration ----------------------------------------------------
4848

doc/source/coordinate_systems.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ From scanner to subject
216216
If the subject is lying in the usual position for a brain scan, face up
217217
and head first in the scanner, then scanner-left/right is also the left-right
218218
axis of the subject's head, scanner-floor/ceiling is the anterior-posterior
219-
axis of the head and scanner-bore is the inferior-posterior axis of the head.
219+
axis of the head and scanner-bore is the inferior-superior axis of the head.
220220

221221
Sometimes the subject is not lying in the standard position. For example, the
222222
subject may be lying with their face pointing to the right (in terms of the
@@ -239,7 +239,7 @@ scanner-floor/ceiling, but reversed so that positive values are towards the
239239
floor. This axis goes from left to right in the subject, with positive values
240240
to the right. The second (Y) axis would be scanner-left/right
241241
(anterior-posterior in the subject), and the Z axis would be scanner-bore
242-
(inferior-posterior).
242+
(inferior-superior).
243243

244244
Naming reference spaces
245245
=======================
@@ -386,8 +386,8 @@ A rotation of $\gamma$ radians around the first array axis:
386386
\end{bmatrix} =
387387
\begin{bmatrix}
388388
1 & 0 & 0 \\
389-
0 & \cos(\gamma) & 0 & -\sin(\gamma) \\
390-
0 & \sin(\gamma) & 0 & \cos(\gamma) \\
389+
0 & \cos(\gamma) & -\sin(\gamma) \\
390+
0 & \sin(\gamma) & \cos(\gamma) \\
391391
\end{bmatrix}
392392
\begin{bmatrix}
393393
i\\

0 commit comments

Comments
 (0)