Skip to content

Commit 5aab5f9

Browse files
authored
Merge branch 'master' into orthoview_vlim
2 parents be7fd47 + ad26878 commit 5aab5f9

Some content is hidden

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

69 files changed

+2071
-810
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
.project
1717
.pydevproject
1818
*.py.orig
19+
.DS_Store
1920

2021
# Not sure what the next one is for
2122
*.kpf

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Basile Pinsard <basile.pinsard@gmail.com> bpinsard <bpinsard@imed.jussieu.fr>
2929
Nguyen, Ly <nguyen60@seattleu.edu> lxn2 <lxn2@uw.edu>
3030
Ben Cipollini <ben.cipollini@gmail.com> Ben Cipollini <bcipolli@ucsd.edu>
3131
Chris Markiewicz <effigies@gmail.com> Christopher J. Markiewicz <markiewicz@stanford.edu>
32+
Chris Markiewicz <effigies@gmail.com> Chris Markiewicz <markiewicz@stanford.edu>
3233
Chris Markiewicz <effigies@gmail.com> Christopher J. Markiewicz <effigies@bu.edu>
3334
Chris Markiewicz <effigies@gmail.com> Christopher J. Markiewicz <effigies@gmail.com>
3435
Chris Markiewicz <effigies@gmail.com> Chris Johnson <effigies@bu.edu>

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
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
66

7+
dist: xenial
8+
sudo: true
79
language: python
810

9-
# Run jobs on container-based infrastructure, can be overridden per job
10-
sudo: false
11-
1211
cache:
1312
directories:
1413
- $HOME/.cache/pip
@@ -22,11 +21,14 @@ env:
2221
- EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
2322
- PRE_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
2423
python:
25-
- 3.4
2624
- 3.5
2725
- 3.6
26+
- 3.7
2827
matrix:
2928
include:
29+
- python: 3.4
30+
dist: trusty
31+
sudo: false
3032
- python: 2.7
3133
env:
3234
- COVERAGE=1

COPYING

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -121,36 +121,40 @@ Sphinx 0.6 doesn't work properly.
121121
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
122122
DAMAGE.
123123

124-
Ordereddict
124+
OrderedSet
125125
-----------
126126

127-
In ``nibabel/externals/ordereddict.py``
127+
In ``nibabel/externals/oset.py``
128128

129-
Copied from: https://pypi.python.org/packages/source/o/ordereddict/ordereddict-1.1.tar.gz#md5=a0ed854ee442051b249bfad0f638bbec
129+
Copied from: https://files.pythonhosted.org/packages/d6/b1/a49498c699a3fda5d635cc1fa222ffc686ea3b5d04b84a3166c4cab0c57b/oset-0.1.3.tar.gz
130130

131131
::
132132

133-
Copyright (c) 2009 Raymond Hettinger
134-
135-
Permission is hereby granted, free of charge, to any person
136-
obtaining a copy of this software and associated documentation files
137-
(the "Software"), to deal in the Software without restriction,
138-
including without limitation the rights to use, copy, modify, merge,
139-
publish, distribute, sublicense, and/or sell copies of the Software,
140-
and to permit persons to whom the Software is furnished to do so,
141-
subject to the following conditions:
142-
143-
The above copyright notice and this permission notice shall be
144-
included in all copies or substantial portions of the Software.
145-
146-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
147-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
148-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
149-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
150-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
151-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
152-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
153-
OTHER DEALINGS IN THE SOFTWARE.
133+
Copyright (c) 2009, Raymond Hettinger, and others All rights reserved.
134+
135+
Package structured based on the one developed to odict Copyright (c) 2010, BlueDynamics Alliance, Austria
136+
137+
- Redistributions of source code must retain the above copyright notice, this
138+
list of conditions and the following disclaimer.
139+
140+
- Redistributions in binary form must reproduce the above copyright notice, this
141+
list of conditions and the following disclaimer in the documentation and/or
142+
other materials provided with the distribution.
143+
144+
- Neither the name of the BlueDynamics Alliance nor the names of its
145+
contributors may be used to endorse or promote products derived from this
146+
software without specific prior written permission.
147+
148+
THIS SOFTWARE IS PROVIDED BY BlueDynamics Alliance AS IS AND ANY EXPRESS OR
149+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
150+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
151+
SHALL BlueDynamics Alliance BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
152+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
153+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
154+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
155+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
156+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
157+
OF SUCH DAMAGE.
154158

155159
mni_icbm152_t1_tal_nlin_asym_09a
156160
--------------------------------

Changelog

Lines changed: 79 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,105 @@ Nibabel releases
2020

2121
Most work on NiBabel so far has been by Matthew Brett (MB), Michael Hanke (MH)
2222
Ben Cipollini (BC), Marc-Alexandre Côté (MC), Chris Markiewicz (CM), Stephan
23-
Gerhard (SG) and Eric Larson (EL).
23+
Gerhard (SG), Eric Larson (EL), Yaroslav Halchenko (YOH) and Chris Cheng (CC).
2424

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

27-
Upcoming Release
28-
================
27+
2.3.1 (Tuesday 16 October 2018)
28+
===============================
29+
30+
New features
31+
------------
32+
* ``nib-diff`` command line tool for comparing image files (pr/617, pr/672,
33+
pr/678) (CC, reviewed by YOH, Pradeep Raamana and CM)
34+
35+
Enhancements
36+
------------
37+
* Speed up reading of numeric arrays in CIFTI2 (pr/655) (Michiel Cottaar,
38+
reviewed by CM)
39+
* Add ``ndim`` property to ``ArrayProxy`` and ``DataobjImage`` (pr/674) (CM,
40+
reviewed by MB)
41+
42+
Bug fixes
43+
---------
44+
* Deterministic deduction of slice ordering in degenerate cases (pr/647)
45+
(YOH, reviewed by CM)
46+
* Allow 0ms TR in MGH files (pr/653) (EL, reviewed by CM)
47+
* Allow for PPC64 little-endian long doubles (pr/658) (MB, reviewed by CM)
48+
* Correct construction of FreeSurfer annotation labels (pr/666) (CM, reviewed
49+
by EL, Paul D. McCarthy)
50+
* Fix logic for persisting filehandles with indexed-gzip (pr/679) (Paul D.
51+
McCarthy, reviewed by CM)
52+
53+
Maintenance
54+
-----------
55+
* Fix semantic error in coordinate systems documentation (pr/646) (Ariel
56+
Rokem, reviewed by CM, MB)
57+
* Test on Python 3.7, minor associated fixes (pr/651) (CM, reviewed by Gregory
58+
R. Lee, MB)
59+
60+
2.3 (Tuesday 12 June 2018)
61+
==========================
2962

3063
New features
3164
------------
65+
* TRK <=> TCK streamlines conversion CLI tools (pr/606) (MC, reviewed by CM)
3266
* Image slicing for SpatialImages (pr/550) (CM)
3367

3468
Enhancements
3569
------------
3670
* Simplfiy MGHImage and add footer fields (pr/569) (CM, reviewed by MB)
71+
* Force sform/qform codes to be ints, rather than numpy types (pr/575) (Paul
72+
McCarthy, reviewed by MB, CM)
73+
* Auto-fill color table in FreeSurfer annotation file (pr/592) (Paul McCarthy,
74+
reviewed by CM, MB)
75+
* Set default intent code for CIFTI2 images (pr/604) (Mathias Goncalves,
76+
reviewed by CM, Satra Ghosh, MB, Tim Coalson)
77+
* Raise informative error on empty files (pr/611) (Pradeep Raamana, reviewed
78+
by CM, MB)
79+
* Accept degenerate filenames such as ``.nii`` (pr/621) (Dimitri
80+
Papadopoulos-Orfanos, reviewed by Yaroslav Halchenko)
81+
* Take advantage of ``IndexedGzipFile`` ``drop_handles`` flag to release
82+
filehandles by default (pr/614) (Paul McCarthy, reviewed by CM, MB)
3783

3884
Bug fixes
3985
---------
86+
* Preserve first point of `LazyTractogram` (pr/588) (MC, reviewed by Nil
87+
Goyette, CM, MB)
88+
* Stop adding extraneous metadata padding (pr/593) (Jon Stutters, reviewed by
89+
CM, MB)
90+
* Accept lower-case orientation codes in TRK files (pr/600) (Kesshi Jordan,
91+
MB, reviewed by MB, MC, CM)
92+
* Annotation file reading (pr/592) (Paul McCarthy, reviewed by CM, MB)
93+
* Fix buffer size calculation in ArraySequence (pr/597) (Serge Koudoro,
94+
reviewed by MC, MB, Eleftherios Garyfallidis, CM)
95+
* Resolve ``UnboundLocalError`` in Python 3 (pr/607) (Jakub Kaczmarzyk,
96+
reviewed by MB, CM)
97+
* Do not crash on non-``ImportError`` failures in optional imports (pr/618)
98+
(Yaroslav Halchenko, reviewed by CM)
99+
* Return original array from ``get_fdata`` for array image, if no cast
100+
required (pr/638, MB, reviewed by CM)
40101

41102
Maintenance
42103
-----------
104+
* Use SSH address to use key-based auth (pr/587) (CM, reviewed by MB)
105+
* Fix doctests for numpy 1.14 array printing (pr/591) (MB, reviewed by CM)
106+
* Refactor for pydicom 1.0 API changes (pr/599) (MB, reviewed by CM)
107+
* Increase test coverage, remove unreachable code (pr/602) (CM, reviewed by
108+
Yaroslav Halchenko, MB)
109+
* Move ``nib-ls`` and other programs to a new cmdline module (pr/601, pr/615)
110+
(Chris Cheng, reviewed by MB, Yaroslav Halchenko)
111+
* Remove deprecated numpy indexing (EL, reviewed by CM)
112+
* Update documentation to encourage ``get_fdata`` over ``get_data`` (pr/637,
113+
MB, reviewed by CM)
43114

44115
API changes and deprecations
45116
----------------------------
117+
* Support for ``keep_file_open = 'auto'`` as a parameter to ``Opener()`` will
118+
be deprecated in 2.4, for removal in 3.0. Accordingly, support for
119+
``openers.KEEP_FILE_OPEN_DEFAULT = 'auto'`` will be dropped on the same
120+
schedule.
121+
* Drop-in support for ``indexed_gzip < 0.7`` has been removed.
46122

47123

48124
2.2.1 (Wednesday 22 November 2017)

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ environment:
1212
- PYTHON: C:\Python35-x64
1313
- PYTHON: C:\Python36
1414
- PYTHON: C:\Python36-x64
15+
- PYTHON: C:\Python37
16+
- PYTHON: C:\Python37-x64
1517

1618
install:
1719
# Prepend newly installed Python to the PATH of this build (this cannot be
@@ -20,8 +22,7 @@ install:
2022
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
2123

2224
# Install the dependencies of the project.
23-
- pip install numpy scipy matplotlib nose h5py mock
24-
- pip install pydicom
25+
- pip install numpy scipy matplotlib nose h5py mock pydicom
2526
- pip install .
2627
- SET NIBABEL_DATA_DIR=%CD%\nibabel-data
2728

0 commit comments

Comments
 (0)