iofunc/iofiles.py
def save_from_existed_header(self, header, data, map_name=None):
        """
        Save scalar data using a existed header
        Information of brain_model in existed header will be used.


        Parameters:
        ------------
        header: existed header
        data: scalar data
        map_name: map name
        """
        if map_name is None:
            map_name = ['']*data.shape[0]
        assert data.shape[0] == len(map_name), "Map_name and data mismatched."

        bm_full = header[1]
        self.cifti.write(self._comp_file, data, (self.cifti.Scalar.from_names(map_name),bm_full))

        Save scalar data using a existed header
        Information of brain_model in existed header will be used.


        Parameters:
        ------------
        header: existed header
        data: scalar data
        map_name: map name
        
Save scalar data using a existed header
Information of brain_model in existed header will be used.



existed header
data: scalar data
map_name: map name
Save scalar data using a existed header Information of brain_model in existed header will be used . existed header data : scalar data map_name : map name
def save_from_existed_header(self, header, data, map_name=None):
        if map_name is None:
            map_name = ['']*data.shape[0]
        assert data.shape[0] == len(map_name), "Map_name and data mismatched."
        bm_full = header[1]
        self.cifti.write(self._comp_file, data, (self.cifti.Scalar.from_names(map_name),bm_full))
def save_from_existed_header ( self , header , data , map_name = None ) : if map_name is None : map_name = [ '' ] * data . shape [ 0 ] assert data . shape [ 0 ] == len ( map_name ) , "Map_name and data mismatched." bm_full = header [ 1 ] self . cifti . write ( self . _comp_file , data , ( self . cifti . Scalar . from_names ( map_name ) , bm_full ) )
Save scalar data using a existed header
Information of brain_model in existed header will be used.
Save scalar data using a existed header Information of brain_model in existed header will be used .
"""
        Save scalar data using a existed header
        Information of brain_model in existed header will be used.


        Parameters:
        ------------
        header: existed header
        data: scalar data
        map_name: map name
        """
self
header
data
map_name