mhe/pynrrd — pull request #4 by hmeine (2013-06-11 13:14:45+00:00)
Title: Make reading of non-detached .nrrd work

I could not read .nrrd files saved with ITKImageFileWriter. The problem was the read_header uses file object iteration, which reads the file in a buffered manner, so filehandle.tell() would always be 8192 on my machine, and the gzip stream would not find a valid GZip header, because it was looking at the wrong place.