Skip to content

Commit 2c1d332

Browse files
Raniga, Parnesh (H&B, Herston - RBWH)Raniga, Parnesh (H&B, Herston - RBWH)
Raniga, Parnesh (H&B, Herston - RBWH)
authored and
Raniga, Parnesh (H&B, Herston - RBWH)
committed
Merge remote-tracking branch 'upstream/master'
2 parents 920cf49 + 6104bd1 commit 2c1d332

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

nibabel/benchmarks/bench_streamlines.py

+1
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,6 @@ def bench_load_trk():
9191
for s1, s2 in zip(scalars_new, scalars_old):
9292
assert_array_equal(s1, s2)
9393

94+
9495
if __name__ == '__main__':
9596
bench_load_trk()

nibabel/casting.py

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def shared_range(flt_type, int_type):
165165
_SHARED_RANGES[key] = (mn, mx)
166166
return mn, mx
167167

168+
168169
# ----------------------------------------------------------------------------
169170
# Routines to work out the next lowest representable integer in floating point
170171
# types.

nibabel/imageclasses.py

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ClassMapDict(dict):
4040
def __getitem__(self, *args, **kwargs):
4141
return super(ClassMapDict, self).__getitem__(*args, **kwargs)
4242

43+
4344
class_map = ClassMapDict(
4445
analyze={'class': AnalyzeImage, # Image class
4546
'ext': '.img', # characteristic image extension
@@ -95,6 +96,7 @@ class ExtMapRecoder(Recoder):
9596
def __getitem__(self, *args, **kwargs):
9697
return super(ExtMapRecoder, self).__getitem__(*args, **kwargs)
9798

99+
98100
# mapping of extensions to default image class names
99101
ext_map = ExtMapRecoder((
100102
('nifti_single', '.nii'),

nibabel/orientations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def io_orientation(affine, tol=None):
6363
RS = RZS / zooms
6464
# Transform below is polar decomposition, returning the closest
6565
# shearless matrix R to RS
66-
P, S, Qs = npl.svd(RS)
66+
P, S, Qs = npl.svd(RS, full_matrices=False)
6767
# Threshold the singular values to determine the rank.
6868
if tol is None:
6969
tol = S.max() * max(RS.shape) * np.finfo(S.dtype).eps

nibabel/spm2analyze.py

+1
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,6 @@ class Spm2AnalyzeImage(spm99.Spm99AnalyzeImage):
130130
"""
131131
header_class = Spm2AnalyzeHeader
132132

133+
133134
load = Spm2AnalyzeImage.load
134135
save = Spm2AnalyzeImage.instance_to_filename

0 commit comments

Comments
 (0)