Commit Graph

4044 Commits

Author SHA1 Message Date
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
Steven Silvester f72882fbd2 Import scipy before turning on warnings 2014-12-23 16:49:19 -06:00
Steven Silvester 542cd4fabe Fix some doctest warnings
Fix doctest errors

Suppress warnings when importing scipy.ndimage for the first time
2014-12-23 16:49:01 -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
Steven Silvester 79c648b14c Accommodate upcoming changes to RectangleSelector API 2014-12-23 16:48:37 -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 874d68ba3f # This is a combination of 7 commits.
# The first commit's message is:
Add a known_warning decorator and suppress warnings in color pkg

# This is the 2nd commit message:

Use the existing all_warnings context manager

# This is the 3rd commit message:

Raise warnings in data

# This is the 4th commit message:

Raise warnings in draw

# This is the 5th commit message:

Raise warnings in exposure

# This is the 6th commit message:

Suppress warnings in exposure tests

# This is the 7th commit message:

Add comments about warning suppressions
2014-12-23 16:46:24 -06:00
Johannes Schönberger e38ed91c24 Add missing return value description 2014-12-23 15:22:22 +01:00
Johannes Schönberger e070274355 Add more description to doc string of helper function 2014-12-23 15:20:46 +01:00
Johannes Schönberger 0d2c5def06 Use in-place operation for clipping 2014-12-23 13:51:25 +01:00
Johannes Schönberger 451d8aa697 Fix novice module with new dtype behavior 2014-12-23 12:44:16 +01:00
Johannes Schönberger 20d81529f4 Fix matching test cases 2014-12-23 12:40:15 +01:00
Johannes Schönberger a1a2f9c988 Remove __init__.py from tests folder, remove unnecessary load of test image 2014-12-22 20:39:18 +01:00
Johannes Schönberger 515ec9fe98 Rename keep_range to preserve_range, fix test cases 2014-12-22 20:28:00 +01:00
Johannes Schönberger e35f9c303e Remove test for invalid shape 2014-12-22 20:28:00 +01:00
Johannes Schönberger 313032d487 Make sure 1x1 images are 2-D 2014-12-22 20:28:00 +01:00
Johannes Schönberger 3e881fe35c Create helper function for image conversion 2014-12-22 20:28:00 +01:00
Johannes Schönberger dedcee6543 Fix keep_range and add test cases 2014-12-22 20:28:00 +01:00
Johannes Schönberger 0779167477 Introduce parameter to keep range of values 2014-12-22 20:28:00 +01:00
Johannes Schönberger 0ae8c4a74b Clip to min and max range of input image, add missing clip parameter to other functions 2014-12-22 20:28:00 +01:00
François Boulogne f8fba67dbb DOC remplace iff by if and only if 2014-12-21 08:57:08 -05:00
Johannes Schönberger 03be934e6d Set seed for test cases 2014-12-16 16:38:01 +01:00
Johannes Schönberger 3b0651c202 Expose seed parameter, fix doc string 2014-12-16 16:36:30 +01:00
Johannes Schönberger cd21181b63 Merge pull request #1298 from pratapvardhan/morph-selem
Morph selem ellipse structuring element
2014-12-16 12:21:10 +01:00
Pratap Vardhan b15f55c3b4 DOC: Revert to old 2014-12-16 12:31:28 +05:30
Pratap Vardhan b72a960670 DOC: Misc spell corrections 2014-12-16 11:41:24 +05:30
Pratap Vardhan 2d4a77d94e DOC: Change selem.ellipse params 2014-12-16 10:40:01 +05:30
Johannes Schönberger 1da86def59 Make the initialization deterministic 2014-12-16 00:54:32 +01:00
Johannes Schönberger 8a790bf884 Improve code style 2014-12-16 00:52:42 +01:00
Stefan van der Walt a2a8696ee9 Merge pull request #1051 from ahojnnes/bicubic-interp
Bicubic interpolation fix and reference
2014-12-15 23:15:13 +02:00
Pratap Vardhan db7b43199d BUG: Change dtype 2014-12-15 18:13:39 +05:30
Stefan van der Walt ea95835017 Merge pull request #1299 from ahojnnes/block
Avoid using `block_reduce` for upsampling
2014-12-15 11:48:32 +02:00
Pratap Vardhan 65c6b773ce DOC: Clean up doc strings 2014-12-15 14:49:26 +05:30
Johannes Schönberger 7fe31b280d Merge pull request #1295 from stefanv/doc_build_fixes
Doc build fixes
2014-12-15 10:04:42 +01:00
Johannes Schönberger 125d53ba52 Add test cases for invalid block sizes 2014-12-15 09:50:10 +01:00
Johannes Schönberger 813142baf8 Check for invalid upsampling block sizes 2014-12-15 09:50:07 +01:00
Pratap Vardhan 8d50561d18 TST: Test for ellipse structuring element 2014-12-15 13:21:15 +05:30
Pratap Vardhan 4c68a5ad44 ENH: ellipse structuring element 2014-12-15 13:10:06 +05:30
Juan Nunez-Iglesias b0a822a9ac Use integer bins when histeq'ing int images 2014-12-15 12:54:22 +11:00
Stefan van der Walt 655aca6fed Raise an error that was suppressed to please Travis-CI 2014-12-15 02:22:22 +02:00
Stefan van der Walt 7f8cd65675 Fix docstring markup errors 2014-12-15 02:21:34 +02:00
Stefan van der Walt a38b1c1257 Fix integer division in CLAHE 2014-12-15 02:20:42 +02:00
Juan Nunez-Iglesias 53bb6f9369 Merge pull request #1290 from pratapvardhan/morph-selem
TST: Test for selem.cube
2014-12-14 18:13:04 +11:00
Josh Warner 1213a3ea1a Merge pull request #1289 from ahojnnes/random
STY: Misc PEP8 fixes
2014-12-13 23:25:37 -06:00
Pratap Vardhan 073f28e90e TST: Test for selem.cube 2014-12-14 10:52:53 +05:30
Johannes Schönberger 3a1079a180 Misc PEP8 fixes 2014-12-14 02:56:14 +01:00