Commit Graph

150 Commits

Author SHA1 Message Date
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 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 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
Steven Silvester bc78bf8544 Create a new figure for imshow if there is already data 2014-12-13 08:57:14 -06:00
Steven Silvester 2966e262a3 Fix handling of singleton frames in pil_to_ndarray 2014-12-12 09:39:08 -06:00
Steven Silvester 296e492658 Fix handling of multi-image gifs and add test 2014-12-12 07:46:16 -06:00
Steven Silvester f7e984662a Fix handling of imgnum 2014-12-12 07:46:15 -06:00
Steven Silvester b7da8009d2 Clean up docstring 2014-11-07 15:22:20 +02:00
Steven Silvester 0d76827734 Allow keyword arguments to imread 2014-11-07 15:22:20 +02:00
Steven Silvester b4838c3bd9 Fix failing tests 2014-11-07 15:22:19 +02:00
Steven Silvester bf9bcaaf0d Add a note about sequential access. 2014-11-07 15:22:19 +02:00
Steven Silvester 1c0d86a48d Allow PIL imread to read multiple images 2014-11-07 15:22:19 +02:00
Steven Silvester 4298b8babc Allow multiple frames in PIL data in imread 2014-11-07 15:22:19 +02:00
Steven Silvester 39d9dcf20e Fix implementation of pil_to_ndarray in MultiImage 2014-11-07 15:22:19 +02:00
Steven Silvester dfffd07e4a Clean up the imports in the pil_plugin 2014-11-02 07:03:15 -06:00
Steven Silvester 21d6ef15ec Remove null plugin since we have the pil plugin as a requirement 2014-11-02 06:28:17 -06:00
Stefan van der Walt 99818f02eb Update error message for no plugins 2014-10-29 13:38:40 +02:00
Steven Silvester 268eb5f2b5 Add tifffile to a new external package. 2014-10-15 05:57:05 -05:00
Steven Silvester 56915d29c3 Fix tifffile imports 2014-10-12 15:10:40 -05:00
Steven Silvester 36ab379e0c Use the PyPI tifffile instead of bundling 2014-10-12 15:10:14 -05:00
Steven Silvester 84a56fa4a0 Fix docstring links 2014-10-11 04:48:18 -05:00
Steven Silvester fe6912b591 Add 'imsave' to the '*' output of pil_plugin 2014-10-10 05:43:46 -05:00
Steven Silvester ba730091a0 Fix relative import and test import convention 2014-10-09 20:18:44 -05:00
Steven Silvester ae19578192 Remove unused import 2014-10-09 20:18:44 -05:00
Steven Silvester 708ab0593b Fix docstring typo 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 047650ce38 Fix reference citation 2014-10-09 20:18:43 -05:00
Steven Silvester fb9f7e7346 Properly handle all image types for PNG, beef up docs 2014-10-09 20:18:43 -05:00
Steven Silvester 9b768dc681 Add references in docstrings 2014-10-09 20:18:43 -05:00
Steven Silvester 74c87b583d Clean up imsave behavior and beef up docstring 2014-10-09 20:18:43 -05:00
Steven Silvester fa5a575743 Reinstate tifffile_plugin for backwards compatibility 2014-10-09 20:18:43 -05:00
Steven Silvester 199c3da307 Clean up tests and add to bento.info.
Remove "no plugin" test because we will always have a plugin.

Fix handling of bools in ubyte check

Fix integration of tifffile.c

Clean up new tests.

Fix _tifffile import and add to bento.info

Add tifffile.py and fix pil_plugin import

Add tifffile tests to test_pil and remove PIL import checks
2014-10-09 20:18:20 -05:00
Steven Silvester 2e47ca2d67 Add tifffile.c and associated build target. 2014-10-09 20:18:20 -05:00
Steven Silvester c5b2834084 Remove old tifffile plugin in favor of using it in PIL plugin. 2014-10-09 20:18:20 -05:00
Steven Silvester 8049c642af Add tests for new behavior.
Add tests for new behavior

Fix utils import and make io.tests a package
2014-10-09 20:18:20 -05:00
Steven Silvester 7374f4ac53 Add tifffile.py and its license.
Add use of tifffile and its license

Actually add the tifffile file and LICENSE
2014-10-09 20:18:20 -05:00
Steven Silvester 5f769cb4bf Fix handling of non-uint8 images for PIL imsave.
Fix handling of non-uint8 imags for PIL imsave.

Update build requirements and documentation

Reorganized dependencies in DEPENDS.txt.

Fix install_requires string formatting

Use img_as_ubyte instead of the previous hack

Add to the docstring notes.

Add to docstring notes

Fix errant changes

Add support for tif floating point and 16bit files

Handle case where format_str is None

Add note about 2D TIFF file support

Add handling for uint16 and integer types.
2014-10-09 20:18:20 -05:00
Steven Silvester 8758ce9f93 Minor formatting of error message 2014-09-19 19:40:41 -05:00
Steven Silvester 53760e3d87 Point user to Pillow docs for external libraries 2014-09-19 19:39:50 -05:00
Steven Silvester 7e33ee75e8 Clean up error message. 2014-09-19 19:33:22 -05:00
Steven Silvester 688f669181 Perform im.getdata check up front 2014-09-19 19:25:42 -05:00
Steven Silvester adae753c42 Fix indent 2014-09-19 18:52:23 -05:00
Steven Silvester c59cd1c496 Catch PIL imread problems early and generate error message 2014-09-19 18:50:42 -05:00
Stefan van der Walt 84f3835106 Fix Big Endian check 2014-09-04 22:32:02 +01:00
Stefan van der Walt 051c54c577 Fix indexing bug in freeimage plugin 2014-09-04 21:29:02 +01:00
Stefan van der Walt 2b1dde202f freeimage: Correctly handle saving uint16 images (closes gh-1101) 2014-08-15 15:22:51 +02:00
Adam Feuer 8494b8081a removed trailing blank line in comment 2014-08-09 10:37:11 -07:00
Adam Feuer ef7da3be4a explicitly checking for None as per code review feedback
- instead of implicit (non-truthy) test
2014-08-09 09:04:05 -07:00