Commit Graph

193 Commits

Author SHA1 Message Date
Johannes Schönberger ec64872fd5 Some doc string fixes for recently merged code 2015-08-20 19:08:54 -04:00
Johannes Schönberger 236aa208fe Merge pull request #1583 from grlee77/fix_interp_modes
FIX:  bug in 'reflect' and 'wrap' coordinate mapping
2015-08-20 18:53:11 -04:00
Gregory R. Lee 8e3b6bc9da MAINT: convert additional numpy.pad mode names to their dask.array equivalents 2015-08-13 23:39:55 -04:00
Juan Nunez-Iglesias c2f8c4ab12 Merge pull request #1599 from blink1073/viridis
Add the viridis colormap and use it for non-standard images
2015-07-22 12:54:07 +10:00
Steven Silvester 756b9289c9 Add the viridis colormap and make it the default 2015-07-14 07:47:59 -05:00
Steven Silvester 1f56de9595 Remove min_overlap kwarg 2015-07-14 07:47:22 -05:00
Steven Silvester c948f9fe97 Fix view as windows test 2015-07-14 07:47:22 -05:00
Steven Silvester 3aafbb78dd Rename optimal_step and add comments 2015-07-14 07:47:22 -05:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Steven Silvester 0ffe44a4f0 Ensure consistent handling of division 2015-06-14 20:19:13 -05:00
Steven Silvester 49967b412b Create an optimal step parameter for view_as_windows 2015-06-14 17:39:25 -05:00
Steven Silvester 38c7c26460 Style and doc updates 2015-06-07 06:30:12 -05:00
Steven Silvester eb8c2d2853 Fix typo 2015-06-07 06:15:24 -05:00
Steven Silvester 3f8e94ff0c Allow view_as_window to take a tuple step, and update tests 2015-06-07 06:13:36 -05:00
Blake Griffith a8d49950aa Defer import errors of dask array until runtime. 2015-05-19 17:14:28 -05:00
Blake Griffith 0e573f71af Use absolute import 2015-05-19 17:14:27 -05:00
Blake Griffith a258fc7b3b Rename apply and apply_chunks to apply_parallel 2015-05-19 17:05:49 -05:00
arve0 7ac7e1078b cpu_count may raise NotImplementedError 2015-05-19 17:05:49 -05:00
Blake Griffith ae73d03f5f process -> apply, more docs 2015-05-19 17:05:49 -05:00
Blake Griffith 08dcf4a4e6 Move the function's args and kws to the end of the signature
renamed them to extra_arguments and extra_keywords

suggested by @jni
2015-05-19 17:05:49 -05:00
Blake Griffith 6be2b1bfa2 Smarter chunk selection. 2015-05-19 17:05:49 -05:00
Blake Griffith 4a47127871 pep8 2015-05-19 17:05:48 -05:00
Blake Griffith 72091a8818 Tests for process chunks function. 2015-05-19 17:05:48 -05:00
Blake Griffith 43bd8242ff load process chunks into namespace 2015-05-19 17:05:48 -05:00
Blake Griffith 42e62e7a0b Add process_chunks function 2015-05-19 17:05:48 -05:00
Steven Silvester 0e61374a89 Add a helper function to check for low contrast
Add a helper function to check for low contrast

Add a check for low contrast when using imsave

Use the low contrast helper in imshow and make sure warnings are always shown

Clean up parameter names and add doctests

Remove unnecessary warning context

Remove unnecessary warning context

Add dtype ranges for 64bit types

Update tests with new warnings

Fix doctest logic

Fix doctest logic

Add a low contrast test with multiple dtypes

Fix check for color images

Fix color check again

Add support for int32 types

Relax assertion for 32bit builds

Add a low contrast test with multiple dtypes

Add a low contrast test with multiple dtypes

Fix check for color images

Fix color check again

Add support for int32 types
2015-03-09 21:34:58 -05:00
Steven Silvester 09876408fc Fix some sphinx warnings and add to build
Fix some sphinx warnings

Add documentation build to test

Add documentation build to test

Remove change in numpydoc

Remove change in apigen

Add makefile target for html and add to travis script

Add a makefile target for html and add to travis script

Fix more sphinx warnings
2015-02-07 16:40:26 -06:00
Juan Nunez-Iglesias 7935e51596 Clarify and fix docstrings 2015-01-22 11:38:37 +11:00
Juan Nunez-Iglesias d538abdb97 Fix order kwarg for some versions of numpy.copy
It seems it isn't always a valid kwarg. This bypasses that problem
by calling `np.array` directly (which is just what `np.copy` does
under the hood anyway).
2015-01-22 11:38:36 +11:00
Juan Nunez-Iglesias 92433b2961 Fix and test 0-end bug in crop 2015-01-22 11:38:35 +11:00
Juan Nunez-Iglesias 893c3be289 Import crop into util package namespace 2015-01-22 11:38:35 +11:00
Juan Nunez-Iglesias c96fdb9338 Fix automatic copy even when copy=False in crop 2015-01-22 11:38:35 +11:00
Juan Nunez-Iglesias d7138f1a51 Fix incorrect crop tests 2015-01-22 11:38:35 +11:00
Juan Nunez-Iglesias eaa2aec3cc Add test functions for crop 2015-01-22 11:38:35 +11:00
Juan Nunez-Iglesias fb7ed1d253 Add crop function, inverse to pad 2015-01-22 11:29:09 +11:00
Josh Warner (Mac) aa2215ccfc ENH: Fully cover pad and backports from NumPy 0.10dev 2015-01-16 21:54:02 -07:00
Steven Silvester f898bd0209 Style fixes 2014-12-26 11:26:30 -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 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
Johannes Schönberger 3a1079a180 Misc PEP8 fixes 2014-12-14 02:56:14 +01:00
Almar Klein 0e7daf41dc Update docs in dtype.py: mention scaling of values 2014-11-25 08:43:58 +01:00
Almar Klein 9bccefbc5e Update docs for img_as_ubyte
The line in `img_as_ubyte` needs correction; ubyte cannot hold negative data. From a quick experiment it seems like both `img_as_uint` and `img_as_ubyte` clip negative values (and not shift them to the positive domain).
2014-11-21 22:36:04 +01:00
Josh Warner (Mac) 1ca0eef825 FIX: Non-integer indexing deprecation warnings 2014-05-08 00:39:54 -05:00
Stefan van der Walt 86beb21e5a Move all_warnings to skimage._shared.utils 2014-04-27 03:23:22 +02:00
Stefan van der Walt 8fdd5a270d In all_warnings context manager, return warnings for examination 2014-04-27 02:16:41 +02:00
Stefan van der Walt 337f3d175f Update shape tests to use all_warnings 2014-04-27 02:10:29 +02:00
Stefan van der Walt 132aa8bbd3 Add all_warnings context manager
The context manager searches for __warningregistry__ entries that
Python leaves all over the place, clearing them, thereby ensuring
that warnings will always be raised.  This is necessary for the test
suite to detect warnings even if they were raised before under
the "once" filter.
2014-04-27 02:08:33 +02:00