BF: Fixed a randomly failing test by seeding the random generator
Renaming + use of inTemporaryDirectory
use a random generator for the only function that needs it
RF+BRK - enable output dtype in saving images

Fix the output dtype specification.  It was broken before.  Test reading
and writing images with different input and output types. Use nibabel
error estimates.
BF: work round range bug in randint

numpy.random.randint until v1.6.0 overflowed when the range (max - min)
was larger than a signed C long value. This was fixed with numpy commit
b7fbd32. Numpy 1.6.0 includes this commit (``git describe --contains
b7fbd32``).  Use Python randint to work around this if necessary.
RF: trying to use  output_dtype
BF: adapt saving test to new image reshaping

The test previously assumed the image would not be reshaped to match xyz
order, but a recent merge to trunk changed this behavior.  As this is
tested elsewhere, use an order that is not changed by save.
RF: increase tolerance threshold for matrix_rank

Some buildbot failures showed that we often hit the tolerance thresholds
for matrix rank deficiency. Looking a bit further suggested we got the
tolerance calculation wrong. This switches the tolerance calculation to
the MATLAB default.  Discussion at:

http://www.mail-archive.com/numpy-discussion@scipy.org/msg37819.html
NF: specify output dtype to nipy2nifti conversion

Allow user to specify output data dtype to nipy2nifti conversion
routine, preparing for use in ``save`` routine.
RF+TEST: fix / test saving with output dtype

Test output dtype can come from data, header, or specified dtype.
BF+TEST: float affine truncation in make_xyz_image

Satra noticed via Alexis' realign4d that image voxel sizes were being
truncated to integers during make_xyz_image.  Fix and test.
Merge pull request #171 from matthew-brett/allow-output-dtype

ENH+RF: output dtype defaults to data dtype

Change default output data type to come from data type of contained array rather than the header. This is to prevent data precision loss from e.g. headers specifying np.int8 output.

Also allow the user to change the output datatype when saving images. The previous signature of save implied this was possible but the keyword was ignored. Added some tests that the load save cycle is adequately accurate.
variable renaming
ENH: improved use of InTemporaryDirectory
Merge pull request #181 from bthirion/fix-test-parcel-io

BF: Fixed a randomly failing test by seeding the random generator

Also; make temporary directories more likely to get deleted.
Merge pull request #183 from matthew-brett/matrix-rank-tol

RF: increase tolerance threshold for matrix_rank

Some buildbot failures showed that we often hit the tolerance thresholds
for matrix rank deficiency. Looking a bit further suggested we got the
tolerance calculation wrong. This switches the tolerance calculation to
the MATLAB default. Discussion at:

http://www.mail-archive.com/numpy-discussion@scipy.org/msg37819.html
RF: making code compatible with python 2.5

Adding __future__ import for with_statement
Making relative imports specific (avoiding from .something import *)
Some general cleanup of nipy/labs/bindings/tests/test_numpy.py
Two instances of kwargs after *args changed to use **kwargs.
BF: fixes for file deletion errors on windows

Windows complains about re-use or deletion of files still attached to objects.
Merge pull request #187 from matthew-brett/py25-compat

RF: making code compatible with python 2.5

Adding ``__future__`` import for with_statement.
Making relative imports specific (avoiding from .something import *)
Some general cleanup of nipy/labs/bindings/tests/test_numpy.py
Two instances of kwargs after *args changed to use **kwargs.
DOC: add release instructions from nibabel

They need to be tailored to nipy