Commit Graph

21 Commits

Author SHA1 Message Date
Steven Silvester 1a1d665c0a Use functools.wraps in default_fallback dectorator 2014-09-13 08:10:14 -05:00
blink1073 b6dcf3c336 Update Travis build to use Anaconda.
Update Travis build to use Anaconda

Travis updates and fixes

More travis fixes

Another travis attempt

Revert changes

Use PIL and Pillow

Refactor travis into 4 different builds

Fix activation error

Remove explicit mpl in build_versions.py

Make matplotlib an explicit requirement

Rearrange travis

Make pillow a hard requirement

Try again to make Pillow optional

Fix bash syntax error

Fix bash syntax error

Bump required cython version

More rearrangments

Remove mpl from build_versions, rearrange travis

Fix version check

Make matplotlib explicit again

Conda install into test env

Check for proper install

Allow tests to skip if networkx is not available

Allow tests to skip if networkx is not available

Try swapping pillow for matplotlib

Allow tests to pass when matplotlib is not present

Remove matplotlib from build_versions

Print PIL version

Get pillow from PIP

Allow tests to skip if matplotlib is not present.

Allow tests to skip if networkx is not present.

travis fix

Remove unused mpl import that caused test error

Use nose-cov and do not run doctests without optional libs

Bump required numpy version and fix nose calls

Make overlay test repeatable

bump numpy version again

Move low-end numpy to python 2.7

Play with minimum versions

Add version requirements and use functions

Add version requirements and use functions

Allow require to skip a test

More implementation of require decorator

Update require decorator and clean up tests

Only use requires decorator when needed

Fix python3 error in version_requirements

Fix build errors

Fix handling of require with tests

More fixes for require handler

Use latest miniconda

Fix more build errors

Fix another dict comprehension and travis file.

Fix missing imports

Fix dictionary again

Fix import warning

Fix last failing test on 2.6

Skip doc examples on python2.6

Do not run doctests on python2.6

Fix typo in travis.yml

Make numpy-1.6 compatibility changes

Use numpy-1.6 in travis python2.6

Add tests for version requirements

Fix line noise in PR

Add additional io plugins

Fix simpleitk test.

Fix python 3 error in freeimage_plugin.

Install imread in Travis.

Put matplotlib settings in XDG recommended directory

Fix formatting in travis yml

Fix formatting in travis yml

Make sure to close PIL file atexit

Fix name of apt package xcftools

Fix pil fp closing

Fix matplotlibrc creation

Only download SimpleITK on py2x, run coverage on py27

Fix travis yml syntax error

Run coveralls on py2.7

Install SimpleITK on py3.3 and run coverage on py3.3

Make simpleitk install quiet

Use standard nose and clean up incantation

Fix travis yml syntax error

Put in miniconda workout for libc error.

Fix imread plugin.

Fix travis syntax

Remove unused import

Remove miniconda libpng in favor of system png

Fix imread install and move libm removal to after optional pkg install.

Fix png header copy in travis yml

Another attempt to use png headers

Debug freeimage

Add jpeg library for freeimage and debug imread.

More debug for imread and freeimage

More freeimage and imread debugging

More debugging

Use correct paths for test env

Make sure imread is tied to libpng15

Add a TODO note for simpleitk test causing error.

Fix typo in yml

Cleanup and add more comments to travis yml

Update comment

Try and add 3.2 support.

Docstring formatting

Add more travis comments.

Try numpy 1.6 on python 2.7

Fix travis syntax error

Rename CONDA to ENV for clarity

Alias python on python 3.2

Use python 3.2 as the system python

Clean up libfreeimage install

Fix order on py3.2 pre_install

Move old numpy back to py26

Use the appropriate python calls.

Debug 3.2 build.

Update comment

Fix syntax error

Another fix for syntax error.

Install scipy after downloading import tools

More debugging for py32

Do not install conda on py3.2 (duh)

Fix typo in travis yml

Fix py32 qt install, separate pyfits and imread to find error

Fix syntax error and front-load option lib check for debug

pyfits is not supported in py3.2, try imread now

imread is also not supported on py3.2

install imread before pyfits to show relationship with libs

Make pip builds quiet

Minor formatting to retrigger build

Allow simpleitk to fail to download without breaking the build

Use travis_retry for SimpleITK

See what breaks when we keep libm in

Now remove libm again
2014-08-02 06:47:09 -05:00
Nelson Brown 7976520e7a Add test that the 2D results correspond to scipy's
Remove trailing whitespace
2014-07-15 08:25:17 -07:00
Nelson Brown 8c2b9b1784 Updated docstrings 2014-07-15 08:07:30 -07:00
Nelson Brown b677c400df Add whitespace following comma 2014-07-13 16:55:06 -07:00
Nelson Brown 042d85ad43 Adjust hanging indentation whitespace in dict comprehension 2014-07-13 16:31:58 -07:00
Nelson Brown f1a8132fbf Add doctrings and comments in response to reviewers 2014-07-13 11:28:27 -07:00
Nelson Brown 2b91c259d6 Add fallback decorator for 3D images
We don't support images greater than 2D, so fall back on ndimage
2014-07-12 15:22:48 -07:00
Johannes Schönberger c7fbd3282b Fix doctest of remove_small_objects 2013-11-03 09:28:46 +01:00
Juan Nunez-Iglesias 2af5c41571 Fix type hierarchy check in remove_small_objects 2013-09-09 13:53:33 +10:00
Stefan van der Walt 0286d2d30f Use int32 for labelling. 2013-06-29 10:17:42 -05:00
Stefan van der Walt eb66e34351 Fix label casting for numpy 1.7. 2013-06-29 10:17:41 -05:00
François Boulogne e258e05468 MIN: fix unused import 2013-06-12 21:36:28 +02:00
Juan Nunez-Iglesias b306f9b70f Revert remove_small_objects to raise TypeError 2013-03-10 19:23:04 +11:00
Stefan van der Walt f3924da90b DOC: Fix typo in remove_small_objects docstring. 2013-03-04 18:36:32 +02:00
Stefan van der Walt dae9b7adfd STY: Minor cleanup. 2013-03-04 11:30:19 +02:00
Juan Nunez-Iglesias 3249faf308 Add specific error messages and exceptions 2013-03-04 16:54:29 +11:00
Juan Nunez-Iglesias b07f7fd9bd Rename function to remove_small_objects 2013-03-04 01:32:05 +11:00
Juan Nunez-Iglesias d6c5ba38ef Improve docstring for remove_small_connected_components
- Explain behavior if input is of int type.
- Add `Raises` section for possible errors.
- Remove explicit numpy import from example.
2013-03-04 01:32:05 +11:00
Juan Nunez-Iglesias 24b14508c8 Add examples to docstring 2013-03-04 01:32:05 +11:00
Juan Nunez-Iglesias 5686e11c97 Add funct to remove small connected compononents 2013-03-04 01:32:04 +11:00