Commit Graph

37 Commits

Author SHA1 Message Date
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
Tony S Yu 6a751045f1 Un-revert commits added to test Travis CI failures 2013-12-07 01:04:40 -06:00
Tony S Yu c09f1bfd32 Revert previous 3 commits to test Travis CI failures. 2013-12-07 00:01:32 -06:00
Tony S Yu 0f88bed41d Remove inherited config and file-type-specific code.
This functionality needs to fleshed out a bit more. This commit can be
reverted after the initial refactor PR.
2013-12-06 22:40:25 -06:00
Tony S Yu e59daf474c Modest attempt at normalizing file extensions 2013-12-05 23:38:13 -06:00
Tony S Yu 99aa5a8238 Move io._plugins.plugin to io.manage_plugins 2013-12-05 23:19:47 -06:00
Tony S Yu 860c6b5cb5 Use InheritedConfig for plugin_store 2013-12-05 23:19:46 -06:00
Tony S Yu 86abc7c970 Factor out url handling for unified file/url behavior 2013-12-05 23:19:45 -06:00
Tony S Yu 312151b481 Move __init__ functions to submodules.
And rename functions so we don't have to alias imports.
2013-12-05 23:19:44 -06:00
Tony S Yu b8c30bad46 Move image stack to its own module 2013-12-05 23:19:43 -06:00
Johannes Schönberger 3b1182cc2f Skip show commands for doc tests 2013-11-12 08:30:12 +01:00
Stefan van der Walt eb6867cfe2 Make six an external dependency. 2013-10-27 14:06:26 +02:00
Stefan van der Walt 2b0f037422 Remove Image wrapper from io. Improve tags handling. 2013-08-21 17:46:38 +02:00
Stefan van der Walt a1adfa8d54 Correctly check for string type. 2013-06-29 10:17:41 -05:00
François Boulogne 5908542421 fix import urllib2 for python3 2013-06-13 13:26:33 +02:00
Tony S Yu 8e0bf8ab8f Fix imread from urls on some backends.
Some backends infer the image type from the extension. This fix just adds the extension to the temp filename.
2013-04-20 14:57:58 -05:00
Tony S Yu a6d4b6e7fa BUG: Fix file separators for windows 2012-12-12 11:06:15 -05:00
Tony S Yu c451aa0d4b STY: Fix confusing use of context-manager. 2012-10-19 17:52:10 -04:00
Tony S Yu 9f7a376e4d ENH: Add test and support for reading file URLs 2012-10-19 15:21:31 -04:00
Tony S Yu e513018052 Fix handling of temporary file.
Opening an already-opened file was unsafe. Close the file, then manually delete it.
2012-10-18 22:07:18 -04:00
Tony S Yu cd8c3da8ec ENH: Allow imread to read URLs 2012-10-18 21:51:21 -04:00
cgohlke cba654cbda Use io.BytesIO instead of StringIO
Fixes NameError: global name 'io' is not defined on Python 3
2012-09-29 17:00:59 -07:00
Tony S Yu bfa6f05e1f DOC: Change title to match numpy docstring standard 2012-09-02 17:53:22 -04:00
Stefan van der Walt 8cdd0e909a Merge pull request #258 from tonysyu/imshow-filename
ENH: Allow imshow to show images when given file name.
2012-08-24 02:56:45 -07:00
Tony S Yu de20e482ad ENH: Allow imshow to show images when given file name. 2012-08-22 22:10:32 -04:00
wilsaj 38a96b9ac9 Remove tag metadata-related fucntions from Image class 2012-08-21 20:51:23 -05:00
wilsaj 9bd445700a add note about to display protocol to Image docstring 2012-08-12 18:20:58 -05:00
wilsaj 2b66f0c303 role duplicate logic for Image._repr_png_() and Image._repr_jpeg_() into a common method 2012-07-24 23:21:42 -05:00
wilsaj b9d468b668 use standard conventions for Image.__new__() cls attribute and docstring 2012-07-24 23:20:22 -05:00
wilsaj 7368332df9 remove unused import 2012-07-24 23:07:44 -05:00
wilsaj fbb2ec3afa close temp StringIO buffers when we're done with them 2012-07-20 20:34:12 -05:00
wilsaj 32d3e1b161 use repr_png and repr_jpeg hooks rather than repr_html
these will work in the ipython qtconsole as well!
2012-07-20 16:44:05 -05:00
wilsaj 70cf6cfba0 fix test so it looks for new Image class 2012-07-20 15:39:50 -05:00
wilsaj d2e0484845 add html repr method for Image class 2012-07-20 15:19:22 -05:00
wilsaj f676152448 add stefan's image class 2012-07-20 15:18:09 -05:00
Andreas Mueller f7b3d8062c COSMIT pep8 2012-06-29 11:27:23 +02:00
Stefan van der Walt 09021dbd83 PKG: Move io to _io (closes #39). 2011-10-27 16:08:21 -07:00