113 Commits

Author SHA1 Message Date
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
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 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
Pratap Vardhan b72a960670 DOC: Misc spell corrections 2014-12-16 11:41:24 +05:30
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
Johannes Schönberger 3a1079a180 Misc PEP8 fixes 2014-12-14 02:56:14 +01:00
Johannes Schönberger dcc021c903 Use SciPy for second order interpolation, add warnings to buggy functions 2014-12-13 14:45:43 +01:00
Johannes Schönberger 8753979fd2 Fix quadratic interpolation 2014-12-13 13:32:16 +01:00
Johannes Schönberger 84871a6d6f Fix bug in get_pixel3d 2014-12-13 13:32:16 +01:00
Johannes Schönberger fd16d9a3fc Fix reference syntax 2014-12-13 13:31:06 +01:00
Johannes Schönberger 6321b4211c Make code PEP8 compliant 2014-12-13 13:31:06 +01:00
Johannes Schönberger 97fb67314d Add reference to bicubic interpolation 2014-12-13 13:31:06 +01:00
Johannes Schönberger c63c5e3239 Fix bug in bicubic interpolation and extend test cases to higher orders 2014-12-13 13:31:06 +01:00
Steven Silvester a623fd3e44 Rename the convenience methods 2014-10-09 20:18:43 -05:00
Steven Silvester bae672f34b Do not try and save signed integer output, improved signed checks for tif. 2014-10-09 20:18:43 -05:00
Steven Silvester be279de2fa Fix handling of temp file removal 2014-10-09 20:18:43 -05:00
Steven Silvester ee755c6c0b Remove temporary file and clean up imports 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 2a057f7246 Make ndim explicit arg for clarity and update docstring 2014-09-21 05:48:58 -05:00
Steven Silvester d2aaae40c8 Add docstring to assert_nD 2014-09-20 19:58:20 -05:00
Steven Silvester 4a270a74d7 Fix syntax error 2014-09-20 19:34:46 -05:00
Steven Silvester 17ff39ff25 Allow assert_nD to take multiple dimensions 2014-09-20 17:12:35 -05:00
Steven Silvester d6c64997cb Implement new assert_nD utility function 2014-09-20 15:43:00 -05:00
Steven Silvester 72f6a8c056 Make suggested changes to build update and use travis_retry for all installs. 2014-08-11 17:01:53 -05:00
Steven Silvester 382be1a457 Formatting and docstring cleanup. 2014-08-04 07:26:07 -05:00
Steven Silvester f2b7e104f8 Add documentation and rename import variable 2014-08-04 06:37:48 -05:00
Steven Silvester 208afc3837 Move version_requirements to _shared and remove skipif from require. 2014-08-02 11:09:46 -05:00
Stefan van der Walt e9c0cde8d4 Move safe_as_int into utils 2014-05-08 20:11:17 +02:00
Stefan van der Walt a9dcdc3713 Use safe_as_int to check provided output shape 2014-05-08 19:28:29 +02:00
Josh Warner (Mac) 07d3e6ede4 Convert name to _safe_as_int, output np.int64, expand Examples 2014-05-07 19:09:18 -05:00
Josh Warner (Mac) e9c793eb17 FEAT: Shared function for safe int casting 2014-05-06 13:09:03 -05:00
Johannes Schönberger 5c2d8eb0aa Fix custom six issue in scipy 0.14 on python 3.4 2014-05-05 14:37:45 -04:00