Skip to content

Commit fdfe1cd

Browse files
committed
Limit lines to 100 columns
Excluding URLs which cannot be split and test code
1 parent 6b15a97 commit fdfe1cd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

doc/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@
206206
#html_use_smartypants = True
207207

208208
# Custom sidebar templates, maps document names to template names.
209-
html_sidebars = {'index': ['localtoc.html', 'relations.html', 'sourcelink.html', 'indexsidebar.html', 'searchbox.html', 'reggie.html']}
209+
html_sidebars = {'index': ['localtoc.html', 'relations.html', 'sourcelink.html',
210+
'indexsidebar.html', 'searchbox.html', 'reggie.html']}
210211

211212
# Additional templates that should be rendered to pages, maps page names to
212213
# template names.

nibabel/externals/netcdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ def createVariable(self, name, type, dimensions):
398398
typecode, size = type.char, type.itemsize
399399
if (typecode, size) not in REVERSE:
400400
raise ValueError(f"NetCDF 3 does not support type {type}")
401-
402-
data = empty(shape_, dtype=type.newbyteorder("B")) # convert to big endian always for NetCDF 3
401+
# convert to big endian always for NetCDF 3
402+
data = empty(shape_, dtype=type.newbyteorder("B"))
403403
self.variables[name] = netcdf_variable(
404404
data, typecode, size, shape, dimensions,
405405
maskandscale=self.maskandscale)

nibabel/volumeutils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ def array_to_file(data, fileobj, out_dtype=None, offset=0,
745745
nan_fill = np.clip(nan_fill, both_mn, both_mx)
746746
else:
747747
raise ValueError(f"nan_fill == {nan_fill}, outside safe int range "
748-
f"({int(both_mn)}-{int(both_mx)}); change scaling or set nan2zero=False?")
748+
f"({int(both_mn)}-{int(both_mx)}); "
749+
f"change scaling or set nan2zero=False?")
749750
# Make sure non-nan output clipped to shared range
750751
post_mn = np.max([post_mn, both_mn])
751752
post_mx = np.min([post_mx, both_mx])

0 commit comments

Comments
 (0)