@@ -191,6 +191,7 @@ def data_tag(dataarray, encoding, datatype, ordering):
191
191
class DataTag (xml .XmlSerializable ):
192
192
def __init__ (self , * args ):
193
193
self .args = args
194
+
194
195
def _to_xml_element (self ):
195
196
return _data_tag_element (* self .args )
196
197
@@ -518,7 +519,6 @@ def print_summary(self):
518
519
print (da .print_summary ())
519
520
print ('----end----' )
520
521
521
-
522
522
def _to_xml_element (self ):
523
523
GIFTI = xml .Element ('GIFTI' , attrib = {
524
524
'Version' : self .version ,
@@ -550,7 +550,8 @@ def from_file_map(klass, file_map):
550
550
Returns a GiftiImage
551
551
"""
552
552
from .parse_gifti_fast import parse_gifti_file
553
- return parse_gifti_file (fptr = file_map ['image' ].get_prepare_fileobj ('rb' ))
553
+ return parse_gifti_file (
554
+ fptr = file_map ['image' ].get_prepare_fileobj ('rb' ))
554
555
555
556
def to_file_map (self , file_map = None ):
556
557
""" Save the current image to the specified file_map
@@ -565,8 +566,8 @@ def to_file_map(self, file_map=None):
565
566
566
567
Notes
567
568
-----
568
- We write all files with utf-8 encoding, and specify this at the top of the
569
- XML file with the ``encoding`` attribute.
569
+ We write all files with utf-8 encoding, and specify this at the top of
570
+ the XML file with the ``encoding`` attribute.
570
571
571
572
The Gifti spec suggests using the following suffixes to your
572
573
filename when saving each specific type of data:
0 commit comments