Commit Graph

146 Commits

Author SHA1 Message Date
Stefan van der Walt dc9c887319 Raise at least one error for parallel tests.
Ideally, we should grab all exceptions raised and let the user see them.  For
now, at least make sure that the primary test passes.
2016-02-23 10:59:14 -08:00
Stefan van der Walt 41569beacb With matplotlib dependency raised to 1.3, remove inlined clipping code 2016-02-02 08:28:19 -08:00
Stefan van der Walt be667e0947 Work around end-point duplication bug in Matplotlib 2016-02-02 08:25:41 -08:00
Stefan van der Walt 32182574ec Update coordinate convention, inline matplotlib clip_to_bbox
The `clip_to_bbox` function is only available in later versions of Matplotlib,
so for now inline it so that we remain compatible with v1.1.
2016-02-02 08:25:41 -08:00
Stefan van der Walt 45f8bd2e72 Fix typos from PR feedback 2016-02-02 08:25:41 -08:00
Stefan van der Walt ad70668bc6 Document output of polygon_area 2016-02-02 08:25:41 -08:00
Stefan van der Walt 4907da0409 Update notes on algorithm. Switched from Liang-Barsky to Sutherland-Hodgman. 2016-02-02 08:25:41 -08:00
Stefan van der Walt 88a269c282 Add polygon perimiter drawing 2016-02-02 08:25:41 -08:00
Johannes Schönberger 3bf2250b64 Fix unknown Note section warning 2016-02-01 08:47:36 +01:00
Steven Silvester 4b2692b7c0 Cleanup 2016-01-30 15:56:19 -06:00
Steven Silvester 4f54b9ed5a Work around limitation in warnings.warn 2016-01-30 10:37:30 -06:00
Steven Silvester e24953cf74 Cleanup the _warnings module 2016-01-30 09:17:47 -06:00
Steven Silvester f4483b775e Make warn() more explicit 2016-01-30 09:14:55 -06:00
Steven Silvester b710bd21d2 Use a stacklevel of 2 by default for all warnings 2016-01-30 08:57:46 -06:00
Stefan van der Walt 9fa408a0f6 Add utility to rename functions 2015-08-27 13:19:01 -07:00
Johannes Schönberger ec64872fd5 Some doc string fixes for recently merged code 2015-08-20 19:08:54 -04:00
Johannes Schönberger 236aa208fe Merge pull request #1583 from grlee77/fix_interp_modes
FIX:  bug in 'reflect' and 'wrap' coordinate mapping
2015-08-20 18:53:11 -04:00
Gregory R. Lee c7a82f8ceb MAINT: minor spacing issues and typos fixed 2015-08-13 23:39:56 -04:00
Gregory R. Lee 81ea7a6e34 MAINT: All modes in _shared.interpolation.pxd were changed to be consistent with numpy.pad naming conventions. Specifically 'nearest' was changed to 'edge' and 'mirror' was changed to 'reflect'. All functions with a mode argument that rely on these functions had their inputs changed accordingly. For now there is a deprecation warning if the user supplies mode 'nearest'. Mode 'mirror' never appeared in an official release of skimage and so has no corresponding deprecation warning. 2015-08-13 23:39:55 -04:00
Gregory R. Lee cef22e4234 MAINT: PEP8 fixes and _interpolation_test.pyx -> interpolation.pyx rename 2015-08-13 23:39:55 -04:00
Gregory R. Lee 9e9c65b97c ENH: add mode 'mirror' to interpolation.pxd and dependent functions 2015-08-13 23:39:54 -04:00
Gregory R. Lee c5a735420f DOC: add visual example of edge modes 2015-08-13 23:39:53 -04:00
Gregory R. Lee a36ab880fc TST: add tests for coord_map function 2015-08-13 23:39:53 -04:00
Gregory R. Lee 7cfbd70204 BUG: fix bugs in coord_map for modes wrap and reflect 2015-08-13 23:39:53 -04:00
Steven Silvester 66805cabdf Try fixing the remaining unclosed error 2015-07-14 07:45:41 -05:00
Steven Silvester e1596aef1b Remove unclosed file guards 2015-07-14 07:44:34 -05:00
Stefan van der Walt 467253409f Subtle wording improvement to test setup docstring 2015-07-11 15:43:15 -05:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Johannes Schönberger 6e500b1733 Do not acquire GIL for shared functions 2015-05-20 20:29:19 -07:00
Johannes Schönberger 0d4c76948b Do not acquire GIL for warp_fast 2015-05-19 18:22:32 -07:00
Johannes Schönberger 0fad295d47 Add unit test for test_parallel decorator 2015-05-19 18:15:17 -07:00
Johannes Schönberger 574159f724 Add decorator to test parallel execution of unit test 2015-05-19 17:57:47 -07:00
Juan Nunez-Iglesias af1f567108 Add temporary_file context manager
This provides writeable filenames that are cleaned up when the context
is exited.
2015-03-31 19:31:45 +11:00
Steven Silvester eed18b803f Another random warning guard 2015-03-29 15:36:25 -05:00
Johannes Schönberger ee5c6fbeb2 Use relative imports in skimage files 2015-01-22 07:36:48 -05:00
Steven Silvester f898bd0209 Style fixes 2014-12-26 11:26:30 -06:00
Steven Silvester 736f5658bc Fix indent in docstring example 2014-12-25 17:08:36 -06:00
Steven Silvester bea57315fb Update docstring and fix pyamg warning check 2014-12-24 09:10:11 -06:00
Steven Silvester 23ae571689 Fix final failing test on Py2.6 build 2014-12-24 08:49:51 -06:00
Steven Silvester d37ccca598 Fix Py2.7 build errors 2014-12-24 06:54:56 -06:00
Steven Silvester 4453120d96 Allow warnings in the minimum build 2014-12-24 06:36:04 -06:00
Steven Silvester 2a6b4ccaea Import scipy.sparse in setup_test 2014-12-24 06:34:13 -06:00
Steven Silvester 2d3ada19e5 Allow for no exceptions to be raised and cleanup
Allow for no exceptions to be raised

Add some helpful comments

Remove doctest skips

Remove TODO note

Cleanup and skip failing doctest
2014-12-23 16:51:18 -06:00
Steven Silvester c0a0490eed Fix handling of multiple warnings and update tests
Fix handling of multiple warnings

Update all test __init__ files

Update segmentation pkg

Update the color pkg

Update the exposure pkg

Update the filters pkg

Update the io pkg

Update the measure pkg

Update morphology package

Restructure test setup function

Add expected_warnings to __all__

Update restoration pkg.

Remove explicit filter check since it is done elsewhere

Fix the image test helpers

Update the transform pkg

Fix util pkg

Update viewer pkg
2014-12-23 16:51:06 -06:00
Steven Silvester 01ca1d17c8 Add a random seed to the setup 2014-12-23 16:51:04 -06:00
Steven Silvester 1b905d4cef More cleanup and updating of tests
Clean up setup_test and add a teardown_test method

Implement new setup/teardown in novice tests

Fix warning handling in pil_plugin

Update rank tests
2014-12-23 16:50:50 -06:00
Steven Silvester a4e4e57ba5 Create new expected_warnings helper and some cleanup
Add new helper function for expected warnings during test

Indentation cleanups and avoid skipping doctests if possible.
2014-12-23 16:50:18 -06:00
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 6db92d387b More doctest and pil_plugin fixes
Fix Python2 imread in pil_plugin.

Load from data

Use all_warnings when importing the other packages

More fixes for regionprops doctest
2014-12-23 16:49:38 -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