BF - fix endian test fail on BE machines
ENH : removing freesurfer.io.read_scalar_data now that MGH format is properly handled
Merge pull request #67 from agramfort/fs_refactor_load_scalar

Removing freesurfer.io.read_scalar_data now that we support MGH format
Merge remote-tracking branch 'cindeem/ecat_endian' into main-master

* cindeem/ecat_endian:
  BF - fix endian test fail on BE machines
TST+RF - add another endian swap test

Added test that asking for a byte-swapped header does result in a header
that looks byte-swapped (with guess_endian).

Some refactoring of code imports.
NF - add image load save benchmarks

Benchmarks to test speed of load / save cycle
NF+BRK - code for robust conversion from float to int
BF+TEST - test mx/mn threshold for cast integers

I was previously testing the values before casting, but we're really
interested in the results after casting.  longdouble test now also works
at least on this Intel system.
NF - cache clipping values

Trying to avoid import-time use of np.finfo because of warnings in the
code that this will increase import time.
NF - allow forcing inf values to integer max/min

Flag to force integer values to maximum and minimum of the integer
dtype.
NF+BF - fix nans as scalar, test nan2zero error

Scalar nan gave an error for fancy indexing.
RF - merge floating, casting, refine clip tests

floating, casting into one file.
When testing for int_clippers and casting, allow for possibility that
the overflow generates the integer maximum / minimum rather than a very
negative value (in the max overflow case)
NF - tool for bisecting nose tests failures

Can also look for specific output in the error log, such as segmentation
faults.
BF - set explicit dtype when creating test images

In commit 6501b44e0 I was creating images by passing in arrays of the
default platform integer type.  This is int64 for 64 bit platforms, and
analyze images don't support int64.  I set the dtype specifically to
int16 which (currently) all images can support.
Merge pull request #68 from matthew-brett/ecat-endian-fixes

TST+RF - add another endian swap test
Merge pull request #70 from matthew-brett/floating-stash

Floating point casting machinery

Routines for robust casting of floating point to integer, checking for overflow.
Merge pull request #71 from matthew-brett/bisect-nose

NF - tool for bisecting nose tests failures
Merge pull request #69 from matthew-brett/load-save-benchmarks

NF - add image load save benchmarks
BF - bench test resulted in unwanted doctest

There was doctest markup in the file causing a failing doctest.
BF - add extra nmant check, simplify tests

Add fallback nmant test when the nmant is stated but we don't know the type.
Simplify tests to use ints instead of numpys default casting to store the
values.  Allow for windows 32 bit case where longdouble is something similar in
precision to float64