nipy/nibabel — pull request #102 by matthew-brett (2012-04-15 01:31:40+00:00)
Title: Sform qform getset

Refactored the header level get/set qform / sform to add keyword arguments.

This makes it more natural to get the codes as well as the affines.

Put both of these up to the image level (e.g. img.get_qform())

Add in Bago's tests, and refactor to the new interface.

@MrBago - after thinking about it, I thought we should add the 'strip_shears' keyword argument. After writing the header level methods I thought we should not reset the zooms with an sform set when qform is code 0, because this doesn't make sense for the header-level methods, I think.