Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/n/i/nibabel-HEAD/nibabel/freesurfer/mghformat.py   nibabel(Download)
        data = self.get_data()
        self.update_header()
        hdr = self.get_header()
        with file_map['image'].get_prepare_fileobj('wb') as mghf:
            hdr.writehdr_to(mghf)