Commit Graph

112 Commits

Author SHA1 Message Date
Steven Silvester 782ba46a4c Handle more warnings
Punt on the issue of warnings with the minimum build

Handle warnings in measure pkg

Fix the rank filter test by forcing a random seed in the function

Compare as boolean in imread test

Import loadmat in test_setup to avoid warning

Use a setup method for imread plugin test

Revoke unintended changes

Fix indentation to appease jni

More indentation fixes

Fix unintentional comment out
2014-12-23 16:49:59 -06:00
Steven Silvester 4680f30466 Add a test setup helper function
Add a function to set up a skimage test

Switch to new test helper function

Import local packages that raise warnings in test setup function

More fixes to doctests

Fix regionprops doc test

Try and fix the test_rank failure.

Remove no longer needed RectangleSelector shim

Skip more doctests in _regionprops

Try importing another scipy subpackage
2014-12-23 16:49:20 -06:00
Steven Silvester f72882fbd2 Import scipy before turning on warnings 2014-12-23 16:49:19 -06:00
Steven Silvester 0debedd82c Handle more warnings and reset io plugins as needed
Reset plugins prior to running collections test

Handle warnings in morphology pkg

Add __init__ for morpohology tests

Handle warnings for novice pkg

Handle warnings for restoration pkg

Handle warnings for segmentation pkg

Handle warnings for _shared pkg

Handle warnings for transform pkg

Handle warnings for util pkg

Handle warnings in viewer module
2014-12-23 16:48:16 -06:00
Steven Silvester 9e8f91930e Handle warnings in several packages
Start handling warnings in data, exposure, and draw

Add a known_warning decorator and suppress warnings in color pkg

Use the existing all_warnings context manager

Raise warnings in data

Raise warnings in draw

Raise warnings in exposure

Suppress warnings in exposure tests

Add comments about warning suppressions

Raise warnings in feature

Fix warnings in filter package

Add warning handling to graph

Handle warnings in io package
2014-12-23 16:47:41 -06:00
Steven Silvester ed8524961c Reinstate run_module_suite in test_pil 2014-12-12 08:53:27 -06:00
Steven Silvester 296e492658 Fix handling of multi-image gifs and add test 2014-12-12 07:46:16 -06:00
Steven Silvester 59842b34d8 Test collection slicing with multi-images. 2014-11-07 15:22:20 +02:00
Steven Silvester 4485f6d6c1 Add tests for ImageCollection with multi_images 2014-11-07 15:22:20 +02:00
Steven Silvester d853b68f96 Fix problems from rebase. 2014-11-07 15:22:19 +02:00
Steven Silvester 945e163867 Add animated gif, a test for it, and tests without conserve_memory.
Add animated gif, and a test for it, plus tests without conserve_memory

Add the gif file
2014-11-07 15:22:18 +02:00
Steven Silvester 0134946fc7 Update multi_image test and install tifffile for travis. 2014-11-07 15:22:18 +02:00
Steven Silvester 6906dbc957 Use matplotlib as the default imshow 2014-11-02 07:08:43 -06:00
Steven Silvester 91266c5702 Update tests to use default plugins. 2014-11-02 07:03:01 -06:00
Steven Silvester 21d6ef15ec Remove null plugin since we have the pil plugin as a requirement 2014-11-02 06:28:17 -06:00
Steven Silvester ba730091a0 Fix relative import and test import convention 2014-10-09 20:18:44 -05:00
Steven Silvester 3b3b44b127 Clean up pil and tif tests 2014-10-09 20:18:43 -05:00
Steven Silvester a623fd3e44 Rename the convenience methods 2014-10-09 20:18:43 -05:00
Steven Silvester 8396d59268 Reinstate tifffile test 2014-10-09 20:18:43 -05:00
Steven Silvester d9e169c518 Fix PIL tests, move helpers to _shared, fix widgets test 2014-10-09 20:18:21 -05:00
Steven Silvester 199c3da307 Clean up tests and add to bento.info.
Remove "no plugin" test because we will always have a plugin.

Fix handling of bools in ubyte check

Fix integration of tifffile.c

Clean up new tests.

Fix _tifffile import and add to bento.info

Add tifffile.py and fix pil_plugin import

Add tifffile tests to test_pil and remove PIL import checks
2014-10-09 20:18:20 -05:00
Steven Silvester c5b2834084 Remove old tifffile plugin in favor of using it in PIL plugin. 2014-10-09 20:18:20 -05:00
Steven Silvester 8049c642af Add tests for new behavior.
Add tests for new behavior

Fix utils import and make io.tests a package
2014-10-09 20:18:20 -05:00
Stefan van der Walt 2b1dde202f freeimage: Correctly handle saving uint16 images (closes gh-1101) 2014-08-15 15:22:51 +02:00
Adam Feuer 1cb73c79d6 improved name of pil import/export functions
- to make it clear what the functions actually do:
  ndarray_to_pil() and pil_to_ndarray()
- as per code review feedback
- updated tests to use the new function names

- incoming change to pil_plugin assumed PIL Image
  objects will always be from files; this is
  not always true anymore. Now pil_plugin
  checks to see if the Image came from a file
  before trying to close its associated file.
2014-08-05 08:03:40 -07:00
Adam Feuer 4a0b99ad6f fixed bad indent 2014-08-05 07:52:45 -07:00
Adam Feuer 32061fb66d added a space character to trigger travis build 2014-08-05 07:52:45 -07:00
Adam Feuer 1dcb60fd68 added tests for roundtrip export and import
- and corrected error in imexport - wasn't using imsave code
  correctly
- split imsave into imsave and imexport functions to reuse
  imsave code
2014-08-05 07:52:45 -07: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
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
blink1073 5ef3f95d71 Add random seeds to tests per #1044 2014-07-05 12:49:42 -05:00
Kevin Murray 4160a67a42 [skimage.io.tests] add truncated jpg imread tests 2014-06-30 19:35:35 +10:00
Kevin Murray 83d0717986 [test_freeimage] Allow ValueError to be raised
With the truncated image, sometimes ValueError is raised. This allows
either RuntimeError (i.e. libfreeimage error) or ValueError to be
raised.
2014-06-30 18:47:31 +10:00
Kevin Murray 7d9f9c46d9 [test_freeimage.py] remove extraneous statements 2014-06-30 14:45:51 +10:00
Kevin Murray d69cdb951b [freeimage tests] Add a test w/ truncated image
This tests tests the fix in the previous commit b9a7445, covering the
issue noted in issue #1037.
2014-06-30 14:45:51 +10:00
Thomas Robitaille 9ecbc6ef58 Use Astropy by default if possible 2014-04-22 16:39:07 +02:00
Tony S Yu e0dafcf004 Clean up test 2014-01-14 23:27:23 -06:00
Tony S Yu 0f78de46e5 Add dynamic creation of imread_collection function 2014-01-14 23:09:26 -06:00
Tony S Yu d7cf60ef0b Attempt to fix failing test on Python 3 buildbot 2013-12-07 11:45:37 -06:00
Tony S Yu f7fa4049f5 Test null plugin 2013-12-07 10:41:03 -06:00
Tony S Yu b715b79c31 Test Image._repr_png_ 2013-12-07 10:26:56 -06:00
Tony S Yu 6a751045f1 Un-revert commits added to test Travis CI failures 2013-12-07 01:04:40 -06:00
Tony S Yu c09f1bfd32 Revert previous 3 commits to test Travis CI failures. 2013-12-07 00:01:32 -06:00
Tony S Yu 99c5ba409a Slight clean up of tests 2013-12-06 23:43:56 -06:00
Tony S Yu 0f88bed41d Remove inherited config and file-type-specific code.
This functionality needs to fleshed out a bit more. This commit can be
reverted after the initial refactor PR.
2013-12-06 22:40:25 -06:00
Tony S Yu 99aa5a8238 Move io._plugins.plugin to io.manage_plugins 2013-12-05 23:19:47 -06:00
Tony S Yu 0922ccf923 Refactor load_preferred_plugins 2013-12-05 23:19:47 -06:00
Tony S Yu ac4eb5ae7b Make preferred_plugins a dict 2013-12-05 23:19:47 -06:00
Tony S Yu 6994bc53b9 Add test for loading preferred plugins. 2013-12-05 23:19:47 -06:00
Tony S Yu 860c6b5cb5 Use InheritedConfig for plugin_store 2013-12-05 23:19:46 -06:00