digraph inheritanceb97e366553 { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "Nifti1Extension" [shape=ellipse,URL="#nibabel.nifti1.Nifti1Extension",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; }
Baseclass for NIfTI1 header extensions.
This class is sufficient to handle very simple text-based extensions, such as comment. More sophisticated extensions should/will be supported by dedicated subclasses.
Methods
get_code | |
get_content | |
get_sizeondisk | |
write_to |
Parameters : | code : int|str
content : str
|
---|
Methods
get_code | |
get_content | |
get_sizeondisk | |
write_to |
Return the canonical extension type code.
Return the extension content in its runtime representation.
Return the size of the extension in the NIfTI file.
Write header extensions to fileobj
Write starts at fileobj current file position.
Parameters : | fileobj : file-like object
byteswap : boolean
|
---|---|
Returns : | None : |