Commit Graph

421 Commits

Author SHA1 Message Date
Emmanuelle Gouillart 8f2839e1b3 Merge pull request #1747 from JGoutin/OptimizeLevel2Compilation-patch
Import fail if python is running with -OO
2015-12-30 23:14:03 +01:00
Warren Weckesser 6b908c1bb1 BUG: io: imread in the PIL plugin drops indexed PNG alpha channel.
When using the PIL plugin to read an indexed PNG file that has
an alpha channel, the alpha channel would be lost.
2015-12-15 12:30:43 -05:00
Steven Silvester a6f4419da4 Update failing tests 2015-12-12 14:20:38 -06:00
JGoutin bf9eb6c8de Update __init__.py
A little optimization: Now, don't need to import "sys" and will also work if Skimage imported from a byte-compilled Python distribution.
2015-10-09 13:38:03 +02:00
JGoutin d43351c578 Import fail if python is runned with -OO
Hello,

This fix a crash on skimage import if Python compilation optimization is set to 2 (Remove docstrings / Run python with -OO argument)
2015-10-09 12:21:13 +02:00
Steven Silvester 1dae599eb1 Remove another tiff check in test_pil 2015-10-06 20:19:06 -05:00
Steven Silvester 1547ec39f3 Remove the tifffile save tests from test_pil 2015-10-06 20:18:16 -05:00
Steven Silvester d7a648ad55 Pop the img_num keyword if given 2015-10-06 19:58:50 -05:00
Steven Silvester e7b67618fd Move tiff-file handling to top level 2015-10-06 19:45:28 -05:00
Steven Silvester 40a30e6d1c Remove unnecessary import 2015-09-04 08:03:01 -05:00
Steven Silvester 260e01333d Add a plugin and test for imageio 2015-09-04 08:02:35 -05:00
Connelly Barnes 28a4fcd37e fix permissions issue in test_pil.py function test_png_round_trip() 2015-08-30 21:20:28 -04:00
Connelly Barnes 4ca1f49d20 fix scikit-image bug #1680 (grayscale png round trip fails) and add unit test 2015-08-30 11:51:04 -04:00
Josh Warner cbc851bba6 FIX/STY: Remove magic and enforce PEP8 in plugins. 2015-08-13 19:47:00 -05: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 5632c9c1a9 Only add colorbar if the cmap is not the default 2015-07-16 21:39:05 -05:00
Steven Silvester 9fb7676c92 Fix relative import 2015-07-16 21:28:37 -05:00
Steven Silvester eaaea690f2 Allow viridis to be used by name 2015-07-16 07:58:14 -05:00
Steven Silvester 3d963649fc Use a less-invasive approach 2015-07-16 07:56:14 -05:00
Steven Silvester 3d044af4da Be more explicit about configparser import 2015-07-15 21:22:41 -05:00
Steven Silvester 8122e26731 Add another file guard 2015-07-14 09:28:53 -05:00
Steven Silvester b75ee66a61 Clean up tests by using fresh figures 2015-07-14 07:47:59 -05:00
Steven Silvester a8580f76b3 Always create a colorbar and update tests 2015-07-14 07:47:59 -05:00
Steven Silvester 756b9289c9 Add the viridis colormap and make it the default 2015-07-14 07:47:59 -05:00
Steven Silvester f6653b781f Fix tifffile plugin import 2015-07-14 07:45:41 -05:00
Steven Silvester b67a4e3076 Move the tifffile wrapper to tiff plugin 2015-07-14 07:45:41 -05:00
Steven Silvester 182a6f6904 Fix handling of tiffile handles 2015-07-14 07:45:41 -05:00
Steven Silvester 6d7e0554a4 Use context manager for tif imread as well 2015-07-14 07:45:41 -05:00
Steven Silvester 2fb59b9243 Fix variable name 2015-07-14 07:45:41 -05:00
Steven Silvester 1a27bea7da Allow pil imread to accept file-like objects again 2015-07-14 07:44:34 -05:00
Steven Silvester f1471dfd72 Remove offending line 2015-07-14 07:44:34 -05:00
Steven Silvester 7720527c95 Fix imsave test 2015-07-14 07:44:34 -05:00
Steven Silvester e1596aef1b Remove unclosed file guards 2015-07-14 07:44:34 -05:00
Steven Silvester 3272b85f86 Do not let PIL handle the file handle 2015-07-14 07:44:34 -05:00
Steven Silvester 09c8a84a54 Merge pull request #1518 from stefanv/relative_imports
Consistently use relative imports
2015-07-12 14:41:06 -05:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Jonathan Helmus 80d4e813f9 TST: Use smaller gif file in test_pil tests 2015-07-11 14:48:12 -05:00
Jonathan Helmus a47a700fe7 TST: Faster test_multi_image unit tests.
Unit tests in test_multi_image speed up by using a smaller gif file.

New file no_time_for_that_tiny.gif file created using:
gifsicle --resize 14x25 no_time_for_that.gif > no_time_for_that_tiny.gif
2015-07-11 12:35:03 -05:00
arve0 04cbaa1579 expect PIL open fp 2015-05-28 16:06:32 +02:00
Steven Silvester dfaab1957e Add a multipage tiff test and cleanup test_tifffile 2015-05-12 21:10:23 -05:00
Steven Silvester e240dff395 Reinstate explicit plugin 2015-05-11 20:54:46 -05:00
Steven Silvester 0491326d22 Remove explicit call to use_plugin 2015-05-10 20:49:46 -05:00
Steven Silvester b479eabd7e Fix failing pil test 2015-05-09 16:56:10 -05:00
Steven Silvester 5f067ff43b Move tests to pil plugin and fix file path 2015-05-09 10:22:48 -05:00
Steven Silvester d351c13c2d Add tests for multipage_rgb tif 2015-05-09 09:32:56 -05:00
Steven Silvester ef9c4d8d19 Fix handling of img_num=0 cases 2015-05-09 09:32:33 -05:00
Christoph Gohlke 549def734e Fix failing test 2015-05-07 17:35:48 -07:00
Christoph Gohlke 3d3351b9fa Fix failing test 2015-05-07 17:34:05 -07:00
Christoph Gohlke 47cfcb4b8b TST skimage.io.imread returns incorrect dimensions 2015-05-07 15:07:59 -07:00
Christoph Gohlke 3c8bf02fa5 Fix skimage.io.imread returns incorrect dimensions
Fixes #1496
2015-05-07 15:03:25 -07:00