Skip to content

Commit 5d318bf

Browse files
committed
DOC - whitespace edits and added comment
1 parent bf5d6aa commit 5d318bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nibabel/analyze.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def __init__(self,
261261
Default is True.
262262
263263
Examples
264-
--------
264+
--------
265265
>>> hdr1 = AnalyzeHeader() # an empty header
266266
>>> hdr1.endianness == native_code
267267
True
@@ -366,6 +366,8 @@ def from_header(klass, header=None, check=True):
366366
# the presence of the mapping certifies the fields as
367367
# being of the same meaning as for Analyze types
368368
pass
369+
# set any fields etc that are specific to this format (overriden by
370+
# sub-classes)
369371
obj._set_format_specifics()
370372
if check:
371373
obj.check_fix()
@@ -957,7 +959,7 @@ def _getter(obj, key):
957959
return obj.get_value_label(key)
958960
except ValueError:
959961
return obj[key]
960-
962+
961963
return '\n'.join(
962964
[summary,
963965
pretty_mapping(self, _getter)])

0 commit comments

Comments
 (0)