ksubramz/nibabel-1 — comment on commit fa0db82497e5817294ba0d6e36f4099aa3846eb4
File: nibabel/freesurfer/mghformat.py line 102
By matthew-brett:

You might (or might not) be interesting in inheriting from the WrapStruct class (new as of a few weeks ago). It does some of the stuff you are using here, but includes endian tests and swapping, which you might prefer to disable, given your header is always big-endian.

Or it might be worth having a base-class for WrapStruct that doesn't do endian swapping.... Well - let me know if you are interested, I will refactor WrapStruct accordingly.