Commit Graph

6531 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
Juan Nunez-Iglesias 8955bbf807 Merge pull request #1302 from ahojnnes/warp
Clip to min and max range of input image, add missing clip parameter to ...
2014-12-24 09:38:15 +11: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
Johannes Schönberger 6b0c3f7ab5 Merge pull request #1315 from sciunto/ffi
DOC remplace iff by if and only if
2014-12-21 10:40:42 -05:00
François Boulogne f8fba67dbb DOC remplace iff by if and only if 2014-12-21 08:57:08 -05:00
Emmanuelle Gouillart acc06d051b Merge pull request #1306 from stefanv/py3_apigen_fix
apigen: Fix function detection in Python 3
2014-12-16 21:05:58 +01:00
Stefan van der Walt 908cfa4e6e Merge pull request #1307 from ahojnnes/unwrap-rand
Remove random initialization from unwrap
2014-12-16 20:08:48 +02: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
Stefan van der Walt 9bfaaa4280 apigen: Fix function detection in Python 3 2014-12-16 14:41:34 +02: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
Juan Nunez-Iglesias c175fbc504 Merge pull request #1304 from pratapvardhan/misc-doc
DOC: Misc spell corrections
2014-12-16 18:04:52 +11:00
Pratap Vardhan b15f55c3b4 DOC: Revert to old 2014-12-16 12:31:28 +05:30
Pratap Vardhan 6346d54be2 DOC: Example spell corrections 2014-12-16 12:12:27 +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
Stefan van der Walt b890698292 Merge pull request #1303 from ahojnnes/unwrap
Deterministic initialization of unwrap + code cleanup
2014-12-16 02:45:10 +02:00
Stefan van der Walt fec98b44b9 Merge pull request #1259 from emmanuelle/ug_transform
User guide: transforming images
2014-12-16 02:04:28 +02:00
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
Juan Nunez-Iglesias 6b22c33a9b Merge pull request #1301 from stefanv/gitter_badge
Add Gitter badge
2014-12-16 09:36:32 +11:00
Stefan van der Walt 302b373c8e Add Gitter badge 2014-12-16 00:01:21 +02: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
emmanuelle 1a536905f1 Minor corrections 2014-12-15 21:45:02 +01: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