Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2c1d332

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents920cf49 +6104bd1 commit2c1d332

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

‎nibabel/benchmarks/bench_streamlines.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,6 @@ def bench_load_trk():
9191
fors1,s2inzip(scalars_new,scalars_old):
9292
assert_array_equal(s1,s2)
9393

94+
9495
if__name__=='__main__':
9596
bench_load_trk()

‎nibabel/casting.py‎

Lines changed: 1 addition & 0 deletions
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
returnmn,mx
167167

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

‎nibabel/imageclasses.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ClassMapDict(dict):
4040
def__getitem__(self,*args,**kwargs):
4141
returnsuper(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
returnsuper(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‎

Lines changed: 1 addition & 1 deletion
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
iftolisNone:
6969
tol=S.max()*max(RS.shape)*np.finfo(S.dtype).eps

‎nibabel/spm2analyze.py‎

Lines changed: 1 addition & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp