Steven Silvester
09c8a84a54
Merge pull request #1518 from stefanv/relative_imports
...
Consistently use relative imports
2015-07-12 14:41:06 -05:00
David Koeller
d4d3eaa1f1
Remove Picture.scale and Picture._rescale from novice module
...
The scale and rescale function was never used in the novice module.
These functions are extraneous in a novice code, and have no purpose there.
Also updated tests.
2015-07-12 11:47:07 -05:00
Stefan van der Walt
83d5ff9001
Consistently use relative imports
2015-07-11 15:41:37 -05:00
Steven Silvester
2c635989d2
Force novice.Picture.from_size to return a uint8 image
...
Force Picure.from_size to return a uint8 image
Remove img_as_ubyte
2015-01-30 19:42:55 -06:00
Steven Silvester
f898bd0209
Style fixes
2014-12-26 11:26:30 -06:00
Steven Silvester
1b905d4cef
More cleanup and updating of tests
...
Clean up setup_test and add a teardown_test method
Implement new setup/teardown in novice tests
Fix warning handling in pil_plugin
Update rank tests
2014-12-23 16:50:50 -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
Michael Hansen
aa8cc0af40
Merged with ahojnnes novice
2014-03-19 20:58:44 -04:00
Johannes Schönberger
f871c4024f
Extract changes by @synesthesiam in PR #797
2014-03-19 17:47:49 -04:00
Michael Hansen
8321c84e63
Merged with master
2014-03-17 08:40:58 -04:00
cgohlke
534721126b
Fix test_novice.test_update_on_save failure on Windows
...
On Windows, tempfile.NamedTemporaryFile() can not be opened a second time. See <http://docs.python.org/2/library/tempfile.html#tempfile.NamedTemporaryFile >
2014-03-10 22:22:02 -07:00
JDWarner
98ff6e5f20
FIX: Specify field index for Python 2.6 compatible use of str.format()
2013-11-20 15:45:54 -06:00
Michael Hansen
1d6531aa04
Fixed Python 3 import errors, added alpha and rgba properties
2013-10-23 16:28:41 -04:00
Tony S Yu
e794aed012
Add support for non-unit step
2013-10-21 23:02:51 -05:00
Tony S Yu
6ce788a5d3
Add support for negative indexes/slices.
2013-10-21 23:02:51 -05:00
Tony S Yu
8f506be2ea
Fix Py3 range incompatibilities
2013-10-21 23:02:51 -05:00
Tony S Yu
be1d81f3fc
Simplify interface
2013-10-21 23:02:49 -05:00
Tony S Yu
d177aa6c16
Replace use of elephant pic with Chelsea the cat
2013-10-21 23:02:49 -05:00
Tony S Yu
f1e0197753
Remove PixelGroup and just return a Picture
2013-10-21 23:02:49 -05:00
Tony S Yu
35a9cd4067
Fix setter for xy_array and reuse.
2013-10-21 23:02:49 -05:00
Tony S Yu
19a9e72ec7
Remove PixelGroup dependence on pic and key attrs
2013-10-21 23:02:49 -05:00
Tony S Yu
7999e3f95e
Refactor and add error tests
2013-10-21 23:02:48 -05:00
Tony S Yu
7c1de57928
Simplify data access and add tests
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
896e471a12
Fix modified flag behavior
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
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
Michael Hansen
2e98d8c21c
Added novice submodule after rebase
2013-10-21 23:02:45 -05:00