63 Commits

Author SHA1 Message Date
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Ömer Özak b455d851b1 Use np.ravel instead of np.copy
This should decrease memory usage and
increase speed without affecting anything else
2015-05-25 18:21:53 -04:00
Johannes Schönberger 8e6542c86c Do not acquire GIL for heap 2015-05-19 23:03:46 -07:00
Juan Nunez-Iglesias 605f05942f Move RAG files to skimage.future 2015-02-03 14:58:57 +11:00
Vighnesh Birodkar 2ffa4847ac Fixed tests 2015-01-29 21:06:10 +05:30
Vighnesh Birodkar d3775f9a3c Improved test case 2015-01-29 20:33:14 +05:30
Vighnesh Birodkar e79bbed001 Improved test case and removed duplicate test 2015-01-28 22:01:30 +05:30
Vighnesh Birodkar 237b11fefd Removed local debug statement. 2015-01-28 11:35:57 +05:30
Vighnesh Birodkar ec17cb29c0 Added tests 2015-01-27 22:31:15 +05:30
Vighnesh Birodkar c5f8f27e44 code cleanup and removed test 2015-01-27 21:33:22 +05:30
Vighnesh Birodkar 4c4d7108e1 handled the function with callbacks 2015-01-27 21:33:22 +05:30
Vighnesh Birodkar fe5761461d added nx check in test 2015-01-27 21:33:21 +05:30
Vighnesh Birodkar 62d50d972e unit tests 2015-01-27 21:33:21 +05:30
Steven Silvester f898bd0209 Style fixes 2014-12-26 11:26:30 -06:00
Steven Silvester c0a0490eed Fix handling of multiple warnings and update tests
Fix handling of multiple warnings

Update all test __init__ files

Update segmentation pkg

Update the color pkg

Update the exposure pkg

Update the filters pkg

Update the io pkg

Update the measure pkg

Update morphology package

Restructure test setup function

Add expected_warnings to __all__

Update restoration pkg.

Remove explicit filter check since it is done elsewhere

Fix the image test helpers

Update the transform pkg

Fix util pkg

Update viewer pkg
2014-12-23 16:51:06 -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 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
Vighnesh Birodkar 3a9df73590 Corrected new id logic 2014-10-04 22:33:10 +05:30
Vighnesh Birodkar febef86bbb added non in-place merge 2014-10-04 20:19:58 +05:30
Vighnesh Birodkar 12b1a91c70 remove self loops in rag 2014-08-18 18:42:23 +05:30
Vighnesh Birodkar ded138cbcb test case for in place 2014-08-09 21:35:07 +05:30
Vighnesh Birodkar 6d0bf723d7 Docstring changes and typos 2014-08-08 23:16:38 +05:30
Vighnesh Birodkar 1fa7bced8d skip error test 2014-08-06 23:45:35 +05:30
Vighnesh Birodkar 3ad2b682d6 test skip 2014-08-06 02:47:24 +05:30
Vighnesh Birodkar d8c0b2e7dd Add unit test 2014-08-05 23:35:32 +05:30
Steven Silvester 208afc3837 Move version_requirements to _shared and remove skipif from require. 2014-08-02 11:09:46 -05:00
blink1073 b6dcf3c336 Update Travis build to use Anaconda.
Update Travis build to use Anaconda

Travis updates and fixes

More travis fixes

Another travis attempt

Revert changes

Use PIL and Pillow

Refactor travis into 4 different builds

Fix activation error

Remove explicit mpl in build_versions.py

Make matplotlib an explicit requirement

Rearrange travis

Make pillow a hard requirement

Try again to make Pillow optional

Fix bash syntax error

Fix bash syntax error

Bump required cython version

More rearrangments

Remove mpl from build_versions, rearrange travis

Fix version check

Make matplotlib explicit again

Conda install into test env

Check for proper install

Allow tests to skip if networkx is not available

Allow tests to skip if networkx is not available

Try swapping pillow for matplotlib

Allow tests to pass when matplotlib is not present

Remove matplotlib from build_versions

Print PIL version

Get pillow from PIP

Allow tests to skip if matplotlib is not present.

Allow tests to skip if networkx is not present.

travis fix

Remove unused mpl import that caused test error

Use nose-cov and do not run doctests without optional libs

Bump required numpy version and fix nose calls

Make overlay test repeatable

bump numpy version again

Move low-end numpy to python 2.7

Play with minimum versions

Add version requirements and use functions

Add version requirements and use functions

Allow require to skip a test

More implementation of require decorator

Update require decorator and clean up tests

Only use requires decorator when needed

Fix python3 error in version_requirements

Fix build errors

Fix handling of require with tests

More fixes for require handler

Use latest miniconda

Fix more build errors

Fix another dict comprehension and travis file.

Fix missing imports

Fix dictionary again

Fix import warning

Fix last failing test on 2.6

Skip doc examples on python2.6

Do not run doctests on python2.6

Fix typo in travis.yml

Make numpy-1.6 compatibility changes

Use numpy-1.6 in travis python2.6

Add tests for version requirements

Fix line noise in PR

Add additional io plugins

Fix simpleitk test.

Fix python 3 error in freeimage_plugin.

Install imread in Travis.

Put matplotlib settings in XDG recommended directory

Fix formatting in travis yml

Fix formatting in travis yml

Make sure to close PIL file atexit

Fix name of apt package xcftools

Fix pil fp closing

Fix matplotlibrc creation

Only download SimpleITK on py2x, run coverage on py27

Fix travis yml syntax error

Run coveralls on py2.7

Install SimpleITK on py3.3 and run coverage on py3.3

Make simpleitk install quiet

Use standard nose and clean up incantation

Fix travis yml syntax error

Put in miniconda workout for libc error.

Fix imread plugin.

Fix travis syntax

Remove unused import

Remove miniconda libpng in favor of system png

Fix imread install and move libm removal to after optional pkg install.

Fix png header copy in travis yml

Another attempt to use png headers

Debug freeimage

Add jpeg library for freeimage and debug imread.

More debug for imread and freeimage

More freeimage and imread debugging

More debugging

Use correct paths for test env

Make sure imread is tied to libpng15

Add a TODO note for simpleitk test causing error.

Fix typo in yml

Cleanup and add more comments to travis yml

Update comment

Try and add 3.2 support.

Docstring formatting

Add more travis comments.

Try numpy 1.6 on python 2.7

Fix travis syntax error

Rename CONDA to ENV for clarity

Alias python on python 3.2

Use python 3.2 as the system python

Clean up libfreeimage install

Fix order on py3.2 pre_install

Move old numpy back to py26

Use the appropriate python calls.

Debug 3.2 build.

Update comment

Fix syntax error

Another fix for syntax error.

Install scipy after downloading import tools

More debugging for py32

Do not install conda on py3.2 (duh)

Fix typo in travis yml

Fix py32 qt install, separate pyfits and imread to find error

Fix syntax error and front-load option lib check for debug

pyfits is not supported in py3.2, try imread now

imread is also not supported on py3.2

install imread before pyfits to show relationship with libs

Make pip builds quiet

Minor formatting to retrigger build

Allow simpleitk to fail to download without breaking the build

Use travis_retry for SimpleITK

See what breaks when we keep libm in

Now remove libm again
2014-08-02 06:47:09 -05:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
Vighnesh Birodkar c1cf8e6347 Got doctest to pass and docstring changes 2014-07-02 23:13:17 +05:30
Vighnesh Birodkar 486f935db8 Rename methods and edit docstrings 2014-07-02 00:19:11 +05:30
Vighnesh Birodkar dd67b3fce7 Changed max_edge in example/plot_rag.py 2014-06-28 11:06:30 +05:30
Vighnesh Birodkar f71ad51f57 Got Py3 test to pass 2014-06-28 10:35:14 +05:30
Vighnesh Birodkar 87465d91d7 test_rag.py formatting 2014-06-28 01:39:28 +05:30
Vighnesh Birodkar c8480d3f6d Change merge_nodes code and test case 2014-06-28 01:17:44 +05:30
Vighnesh Birodkar bb874074c4 None comparison 2014-06-26 00:58:54 +05:30
Vighnesh Birodkar b1284ee180 update test for py3 2014-06-26 00:57:50 +05:30
Vighnesh Birodkar b1f59fceee Changed prototype of weight_func 2014-06-26 00:11:49 +05:30
Vighnesh Birodkar c14021a9cb Formatting and typos 2014-06-23 01:16:57 +05:30
Vighnesh Birodkar a1bc2e95fd Made test Python3 compatible 2014-06-23 01:15:00 +05:30
Vighnesh Birodkar 0efca40747 Added connectivity parameter and a function input to merge_nodes 2014-06-23 00:58:13 +05:30
Vighnesh Birodkar 0e35c422b3 Graph can now merge non adjacent nodes 2014-06-22 13:58:00 +05:30
Vighnesh Birodkar 711de464e5 Formatting changes 2014-06-19 18:03:44 +05:30
Vighnesh Birodkar 76d3dbad57 added merge_nodes test 2014-06-19 17:57:07 +05:30
Vighnesh Birodkar d0e7a26f6f Added RAG merge_nodes test case 2014-06-19 16:36:17 +05:30
Vighnesh Birodkar 18a6535089 Corrected test mistake 2014-06-19 02:50:24 +05:30
Vighnesh Birodkar c08d96d2b5 Minor Foramtting 2014-06-19 02:50:24 +05:30
Vighnesh Birodkar 3ea78096e7 Formatting changes 2014-06-19 02:50:24 +05:30
Vighnesh Birodkar abcb9cf2ef Added testcase 2014-06-19 02:50:24 +05:30
Vighnesh Birodkar a6c9a5a2a7 Renamed graph.py to rag.py 2014-06-19 02:50:24 +05:30