Commit Graph

98 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 2756358f3c Clean up PIL plugin and handle more warnings
Use the pil plugin to load data files

Fix install_requires string formatting

Dead end commit

Make all tools executable

Remove debug print

Suppress PIL resourcewarnings

Handle a few more warnings
2014-12-23 16:48:38 -06:00
Johannes Schönberger 125d53ba52 Add test cases for invalid block sizes 2014-12-15 09:50:10 +01:00
Johannes Schönberger eba3d75fa9 Add sanity checks for input parameters 2014-09-28 18:43:32 -04:00
Johannes Schönberger be5d4b19ec Add stop_probability to RANSAC 2014-09-28 18:38:35 -04:00
Stefan van der Walt 5ba4b7ccd3 Expose point_in_poly and move to measure module 2014-09-22 17:56:18 +02:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
Johannes Schönberger 6a0d81a047 Remove backwards-compatability of skimage.measure.regionprops 2014-04-11 10:06:59 -04:00
Vighnesh Birodkar e6ea9efa1c formatting, used assert_equals in test 2014-03-30 17:46:45 +05:30
Vighnesh Birodkar 764c59693c removed array cast, added not equals test 2014-03-28 00:12:18 +05:30
Vighnesh Birodkar 77b91e633b added tests, accounted for nan case 2014-03-26 03:50:04 +05:30
Josh Warner (Mac) e9ac84b77c TST: Add unit test for mesh orientation correction. 2014-03-13 23:34:46 -05:00
Juan Nunez-Iglesias 4bc5d66060 Add numerous (14) tests for profile_line() 2014-01-29 22:50:19 +11:00
Johannes Schönberger 9905ff218f Get rid of trailing underscore for params attribute 2014-01-22 18:39:35 -05:00
Johannes Schönberger c262ad2d44 Use public attribute for parameter values 2014-01-19 09:40:42 -05:00
Johannes Schönberger 4d6308c810 Fix error in line model test 2013-11-22 13:28:53 +01:00
Johannes Schönberger 6e6505ecb6 Increase test coverage of regionprops 2013-11-22 12:16:44 +01:00
Johannes Schönberger 2e8a36a283 Rename test to enable hidden line model test 2013-11-22 12:11:47 +01:00
Jostein Bø Fløystad eff276c99b Bug: Fix label sequence in regionprops.
Closes gh-806.
2013-10-29 11:58:59 +01:00
Stefan van der Walt 94cad284ce Fix Python 3 list handling. 2013-10-17 13:43:18 +02:00
Stefan van der Walt 14687d0510 Dictionary interface to preserve backward compatibility for RegionProps. 2013-10-17 13:07:41 +02:00
Josh Warner 783e120e75 Merge pull request #788 from ahojnnes/patch-1
Weighted central moments
2013-10-15 10:45:50 -07:00
Johannes Schönberger 6711bfb3c8 Rename weighted central moments property 2013-10-15 15:12:00 +02:00
cgohlke e75126a4d8 TST: Fix RuntimeError: data type not supported on Python 2.6
On Python >=2.7, C extensions that use integer format codes with the PyArg_Parse* family of functions will raise a TypeError exception instead of triggering a DeprecationWarning (Python 2.6). The RuntimeError is raised by ndimage for unsupported array data types.
2013-10-15 00:42:40 -07:00
cgohlke f5337e3616 TST: Fix AttributeError: '_RegionProperties' object has no attribute 'weighted_moments_central' 2013-10-14 23:49:53 -07:00
cgohlke 4b02e31dfb TST: Fix test_weighted_moments is defined twice 2013-10-14 23:36:16 -07:00
Josh Warner (Mac) a229d19eb0 DOC: Change sampling to spacing in skimage.draw.ellipsoid and tests 2013-10-13 13:11:11 -05:00
Josh Warner (Mac) 1de6d93850 DOC: Change sampling kwarg name to spacing in marching_cubes
The preference is to follow VTK's convention for anisotropic
rectangularly sampled data, using the keyword `spacing` rather
than `sampling`. This change converts the last remaining use of
`sampling` in scikit-image to `spacing`.
2013-10-13 13:00:40 -05:00
Johannes Schönberger d7824000fe Raise error for non 2-D images 2013-10-02 14:14:29 +02:00
Johannes Schönberger c1ea012c9b Add support for unsigned integer label images 2013-10-02 14:05:30 +02:00
Josh Warner (Mac) 1174d6fbc5 FIX: Errors in unit tests 2013-09-01 22:05:39 -05:00
Josh Warner (Mac) 14a0685838 MAINT: Refactor ellipsoid generator into skimage.draw 2013-09-01 20:51:20 -05:00
Josh Warner (Mac) 997339beae FEAT: add tests for marching cubes and mesh surface area 2013-08-30 12:36:32 -05:00
Johannes Schönberger ce924c7279 Add test cases for moments functions 2013-08-17 18:04:35 +02:00
Johannes Schönberger 13957123b7 Make moments functions public, rename, add tests 2013-08-17 18:00:53 +02:00
Johannes Schönberger f019ed1fed Fix missing label property description and backwards compatibility 2013-08-13 15:08:50 +02:00
Johannes Schönberger 918332c4c6 Refactor regionprops 2013-08-06 14:27:37 +02:00
Johannes Schönberger 486909c5f5 Rename and combine local_* functions to block_reduce 2013-07-15 21:52:25 +02:00
Johannes Schönberger 4f6b39dcd3 Rename block_* functions to local_* 2013-07-05 17:34:38 +02:00
Johannes Schönberger c0a019eb12 Update test cases for block functions 2013-07-05 17:34:38 +02:00
Johannes Schönberger 04b14b42c9 Refactor local block functions and add additional functionality. 2013-07-05 17:34:38 +02:00
Johannes Schönberger 24c0c40977 Merge pull request #511 from ankit-maverick/resample
Resampling of nD arrays
2013-07-04 22:47:09 -07:00
Ankit Agrawal 6f9d7c5d1a Cleaning up downsampling for integer factors 2013-07-04 17:34:55 +08:00
François Boulogne 5c3eef0d86 delete comment 2013-06-20 22:53:32 +02:00
François Boulogne 6f6d207eb2 fix import 2013-06-20 22:53:13 +02:00
Johannes Schönberger 219d621725 Set random seed to avoid random test failures 2013-05-06 18:34:34 +02:00
Johannes Schönberger 01124f5bcc Use boolean mask for inlier return value of RANSAC 2013-05-06 18:08:21 +02:00
Johannes Schönberger 785e602aba Fix last remaining PEP8 errors 2013-05-06 15:32:33 +02:00
Johannes Schönberger 231596b351 Add test cases for residuals 2013-05-06 12:08:12 +02:00