{"issue":{"state":"closed","pull_request":{"diff_url":"https://github.com/nipy/nibabel/pull/56.diff","html_url":"https://github.com/nipy/nibabel/pull/56","patch_url":"https://github.com/nipy/nibabel/pull/56.patch"},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c834fd0ce71884a24d6de176e9dd4676?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c834fd0ce71884a24d6de176e9dd4676","url":"https://api.github.com/users/ksubramz","login":"ksubramz","id":182550},"updated_at":"2011-10-30T05:04:36Z","labels":[],"assignee":null,"comments":22,"closed_at":"2011-10-29T06:59:44Z","url":"https://api.github.com/repos/nipy/nibabel/issues/56","body":"My pull request consists of a thorough MGH/MGZ volume reader/writer written in the vein of the nibabel nifti1 reader/writer. Comments about individual files:\r\n\r\n* nibabel/freesurfer/mghformat.py : This contains the crux of the code. Since it uses existing helper classes like SpatialImage etc. the standard api for loading and saving MGH images should work ( just like nifti1 images )\r\n\r\nThe standard interface is something like\r\n\r\n    from nibabel.freesurfer import mghformat\r\n    v = mghformat.load('orig.mgz')\r\n\r\n* nibabel/freesurfer/tests/test_mgh_io.py : A rudimentary test program which tests the standard loading and saving of the volumes/ data / affine matrix etc. Of course, this needs to be expanded by quite a bit. \r\n\r\n* nibabel/volumeutils.py : This helper file had to be changed to accommodate '.mgz' extensions which are a compressed (gzip ) format. The existing file wouldn't allow that.\r\n\r\n* nibabel/tests/data/test.mgz: A small 4D mgz image which is used by the test program.\r\n\r\nTODO\r\n---------\r\n* More test cases. \r\n* Documentation showing all of API. ( Though if you have an idea about nibabel it's very easy to get to speed )","html_url":"https://github.com/nipy/nibabel/issues/56","title":"MGH/MGZ volume format support.","number":56,"id":1914958,"created_at":"2011-10-14T23:05:43Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c834fd0ce71884a24d6de176e9dd4676?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c834fd0ce71884a24d6de176e9dd4676","url":"https://api.github.com/users/ksubramz","login":"ksubramz","id":182550},"updated_at":"2011-10-30T05:04:36Z","url":"https://api.github.com/repos/nipy/nibabel/issues/comments/2568339","body":"Should have been clearer. ksubramz/nibabel is a dead fork which I no longer work on.\r\n\r\nIt should be ksubramz/nibabel-1/ \r\nTry:\r\nhttps://github.com/ksubramz/nibabel-1/branches","id":2568339,"created_at":"2011-10-30T05:04:36Z"}}