digraph inheritance041f4b45b8 { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "ArrayProxy" [shape=ellipse,URL="#nibabel.arrayproxy.ArrayProxy",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=14,color=dodgerblue1,style=filled,tooltip="The array proxy allows us to freeze the passed fileobj and header such that",height=0.75]; }
The array proxy allows us to freeze the passed fileobj and header such that it returns the expected data array.
This fairly generic implementation allows us to deal with Analyze and its variants, including Nifti1, and with the MGH format, apparently.
It requires a header object with methods: * copy * get_data_shape * data_from_fileobj
Other image types might need to implement their own implementation of this API. See minc for an example.