Commit Graph

100 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 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
Johannes Schönberger f4f509fa8d Fix cython compilation warnings 2014-05-05 14:37:15 -04:00
Stefan van der Walt 321d9f372c Add some PEP8 2014-04-28 01:10:15 +02:00
Stefan van der Walt 58ef146834 Copy list of modules since it may change during iteration 2014-04-27 04:05:52 +02:00
Stefan van der Walt 86beb21e5a Move all_warnings to skimage._shared.utils 2014-04-27 03:23:22 +02:00
Johannes Schönberger 181d030952 Remove six copy in _shared as it is a required dependency 2014-02-23 20:42:40 -05:00
Josh Warner faa4f571d4 Merge pull request #847 from ahojnnes/template
Fix bugs in array padding and template matching
2014-01-13 19:13:55 -08:00
Johannes Schönberger 688778b572 Move inlined function definitions to header for actual inlining 2013-12-09 00:57:07 +01:00
Johannes Schönberger 783c04baec Fix bug in array padding, template matching 2013-12-08 18:54:02 +01:00
JDWarner d398b43051 ENH: Add doctest_skip_parser allowing conditional skipping of doctests 2013-11-20 11:20:42 -06:00
Stefan van der Walt eb6867cfe2 Make six an external dependency. 2013-10-27 14:06:26 +02:00
Stefan van der Walt 4215ad11a1 Remove leftover debug statement. 2013-08-21 11:09:02 +02:00
Stefan van der Walt ca768b0b95 Remove unnecessary import of Warning. 2013-08-21 00:59:37 +02:00
Stefan van der Walt d9836a6add Remove logger in favor of warnings. 2013-08-21 00:10:33 +02:00