Commit Graph

75 Commits

Author SHA1 Message Date
Tony S Yu 72c1f6855a Rename for clarity 2013-10-21 23:02:48 -05:00
Tony S Yu 7999e3f95e Refactor and add error tests 2013-10-21 23:02:48 -05:00
Tony S Yu 450d04d2b3 Simplify private docstrings 2013-10-21 23:02:48 -05:00
Tony S Yu b8443bd1e2 Remove unnecessary try-except. 2013-10-21 23:02:47 -05:00
Tony S Yu 7c1de57928 Simplify data access and add tests 2013-10-21 23:02:47 -05:00
Tony S Yu a951232702 Remove from_path and from_array methods
Having these methods and the constructor arguments is a bit redundant.
2013-10-21 23:02:47 -05:00
Tony S Yu 8869724b51 Remove color and size from Picture.__init__
Also rename `from_color` to `from_size`.
2013-10-21 23:02:47 -05:00
Tony S Yu 3619e6f2f2 Rename image to array 2013-10-21 23:02:47 -05:00
Tony S Yu c5bfed26cd Fix validation bug and add test 2013-10-21 23:02:47 -05:00
Tony S Yu 9385e73586 Clean up testing 2013-10-21 23:02:47 -05:00
Tony S Yu f47c5a7be7 Switch argument order for clarity 2013-10-21 23:02:47 -05:00
Tony S Yu 087d422ebc Rename novice package as per convention 2013-10-21 23:02:46 -05:00
Tony S Yu 266c28ba6b Reuse colors from skimage.color.
This change greatly reduces the number of available colors, which is probably
a good thing.
2013-10-21 23:02:46 -05:00
Tony S Yu 896e471a12 Fix modified flag behavior 2013-10-21 23:02:46 -05:00
Tony S Yu c881cf32e6 Remove unnecessary functions. 2013-10-21 23:02:46 -05:00
Tony S Yu 2cf9466e9e Clean up docstrings.
__getitem__/__setitem__ docstrings aren't typically displayed so they're
unnecessary. Move and fix doctests as well.
2013-10-21 23:02:46 -05:00
Tony S Yu e86b0a161c Change inflate/inflation to rescale/scale. 2013-10-21 23:02:46 -05:00
Tony S Yu 62c16bde51 Remove color scraping script and intermediate data file 2013-10-21 23:02:45 -05:00
Tony S Yu 9503c41f26 Cleanup docstrings.
Note that the getter (not setter) docstring gets printed at the interactive prompt
2013-10-21 23:02:45 -05:00
Tony S Yu a2f03d3075 Speed up test 2013-10-21 23:02:45 -05:00
Tony S Yu 22a7558673 Change test class to test functions 2013-10-21 23:02:45 -05:00
Tony S Yu 1a418f8820 Clean up novice __init__
Move functions from __init__ to novice module and clean up package docstring.
Doctest now passes.
2013-10-21 23:02:45 -05:00
Tony S Yu 34a844dd3b Cleanups to imports and line wrapping 2013-10-21 23:02:45 -05:00
Tony S Yu bd51d9cbef Fix whitespace 2013-10-21 23:02:45 -05:00
Michael Hansen 2e98d8c21c Added novice submodule after rebase 2013-10-21 23:02:45 -05:00