Commit Graph

232 Commits

Author SHA1 Message Date
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 243d550537 Make skip condition cleaner 2014-07-17 19:52:45 -05:00
blink1073 acbac35616 Skip tests if matplotlib is not present 2014-07-17 12:33:59 -05:00
blink1073 97d920cc6b Another travis fix 2014-07-16 21:04:13 -05:00
blink1073 0b73d69144 Address travis failures 2014-07-16 20:39:37 -05:00
blink1073 1a01f1a83b Fix failing tests 2014-07-16 19:58:13 -05:00
blink1073 9576df45f8 Add tests for all of viewer subpackage, with necessary file mods 2014-07-16 19:38:23 -05:00
blink1073 736de2c403 Rename module to be more explicit 2014-07-16 14:10:10 -05:00
Johannes Schönberger df7a7eeb6b Merge pull request #1024 from stefanv/bugs/qt_pyside_matplotlib_compat
Use same import order as matplotlib for PySide/PyQT
2014-06-15 22:20:56 -04:00
Stefan van der Walt 00009fe962 Use same order as matplotlib for PySize/PyQT 2014-06-15 23:47:16 +02:00
Stefan van der Walt 9446f6b71a Use more recent NoNorm API 2014-06-15 15:03:46 +02:00
Johannes L. Schönberger 82b404a672 Merge pull request #1004 from jni/viewer-examples
Viewer examples
2014-05-08 08:40:26 -04:00
Juan Nunez-Iglesias 17541e2cdc Update plugin class doc example to use output 2014-04-10 12:19:23 +10:00
Juan Nunez-Iglesias 2091dbfe13 Remove deprecated parameter in LineProfile 2014-04-09 23:30:16 +10:00
Johannes Schönberger 06498c3c59 Warn about matplotlib backend in skimage.viewer 2014-03-26 19:06:06 -04:00
Johannes Schönberger ece0f30af3 Always Skip doctests which depend on Qt and are in the class doc string
The doc test skip directive modifies the __doc__ attribute, which is not
possible for new-stlye classes.
2014-03-13 18:29:54 -04:00
cgohlke 81805a530b Skip viewer tests if no Qt API is available 2014-03-10 23:10:13 -07:00
Tony S Yu 572720df05 Merge pull request #895 from blink1073/fix-canny-py3k
Improve py3k compatibility for Viewer core widget and OverlayPlugin.
2014-02-17 23:58:46 -06:00
blink1073 44dc93d373 Use the more idiomatic list(). 2014-02-17 05:39:33 -06:00
blink1073 3931f18169 Add py3k compatibility for core widget and overlayplugin.
Dictionary keys are treated differently in py3k, causing the Canny
plugin to not work on py3k.
2014-02-16 21:22:44 -06:00
François Boulogne 4f5105983c MAINT: populate __init__.py 2014-02-16 13:15:54 -05:00
Tony S Yu 750911fc98 Merge pull request #881 from blink1073/fix-labelpainter-609
Fix: Viewer: LabelPainter overlay does not update with new loaded image #609
2014-02-12 08:35:28 -06:00
blink1073 c70040c236 Add a shape property that gracefully accomodates a new image size 2014-02-08 22:12:38 -06:00
blink1073 85537e3f85 Update the paint tool shape with the viewer image changes 2014-02-08 22:12:01 -06:00
blink1073 df4746d4f9 Update test to use floating point images and with updated values 2014-02-08 12:24:32 -06:00
blink1073 864a189721 Use division consistently between PY2 and PY3 2014-02-08 12:24:06 -06:00
blink1073 8a261242c1 Update test now that aliasing has been removed 2014-02-04 22:04:37 -06:00
blink1073 c2fd471c55 Fix aliasing and update docstring 2014-02-04 21:59:39 -06:00
blink1073 07f64b443a Add test for LineProfiler tool 2014-02-02 22:22:04 -06:00
blink1073 2893fbae0e Refactor perp_lines behavior 2014-02-02 21:52:50 -06:00
blink1073 a1127d4601 Add shaded polygon to lineprofile output 2014-02-02 17:40:52 -06:00
Juan Nunez-Iglesias ec0079dcba Output line drawing and scan data from plugin 2014-01-29 23:27:34 +11:00
Juan Nunez-Iglesias 47f6ddbce0 Update interactive lineprofile tool to new API 2014-01-29 15:06:00 +11:00
Juan Nunez-Iglesias 0fd19e5708 Update lineprofile plugin to use new API 2014-01-26 15:08:51 +11:00
Juan Nunez-Iglesias e24ae38814 Use the new profile_line function from measure
Note that the indices were inverted relative to previous use, which I
believe was incorrect. (See example in docstring, which works, where
it used to be inverted.)
2014-01-26 00:55:52 +11:00
Johannes Schönberger 86c90a336f Merge pull request #821 from JDWarner/add_conditional_doctest_decorator
ENH: Add `doctest_skip_parser` allowing conditional skipping of doctests
2013-11-25 13:54:29 -08:00
JDWarner beb395abbb FIX: Skip viewer.show() commands which hang Travis 2013-11-20 12:29:45 -06:00
Johannes Schönberger f8b5550751 Merge pull request #804 from tonysyu/viewer-color-hist-fix
Fix ColorHistogram to work with Open File
2013-11-20 09:32:00 -08:00
JDWarner d398b43051 ENH: Add doctest_skip_parser allowing conditional skipping of doctests 2013-11-20 11:20:42 -06:00
Tony S Yu 6239ab23b1 Merge pull request #810 from jni/viewer-returns-overlays
WIP: Viewer returns overlays
2013-11-18 18:31:03 -08:00
Juan Nunez-Iglesias 6ff1068baf Add output for color histogram plugin 2013-11-16 16:53:30 +11:00
Johannes Schönberger 3b1182cc2f Skip show commands for doc tests 2013-11-12 08:30:12 +01:00
Johannes Schönberger fb1c1d39f0 Fix misspelled sections 2013-11-09 23:01:58 +01:00
Johannes Schönberger 8b74ab496b Fix python 3 syntax error 2013-11-03 20:03:18 +01:00
Johannes Schönberger a4720212bb Merge pull request #801 from stefanv/six_external
Make six an external dependency.
2013-11-01 00:00:30 -07:00
Juan Nunez-Iglesias 4e05ebf711 Incorporate @tonysyu's suggestions re:docstrings 2013-11-01 15:10:30 +11:00
Juan Nunez-Iglesias fae2456b49 Allow OverlayPlugin to return the current overlay 2013-10-31 14:52:01 +11:00
Juan Nunez-Iglesias 7774a76eea Add plugin return values for ImageViewer
The model supported is that plugins can return an overlay, some data,
or both. Each plugin therefore returns an `(overlay, data)` tuple in
which each element can be `None`.

To allow return values, the plugin need only override the `output`
method defined in the base Plugin class.

See discussions here:
https://groups.google.com/d/msg/scikit-image/0nkJM-WguXA/iqogBABa748J
and here:
https://github.com/scikit-image/scikit-image/pull/805
2013-10-31 14:51:06 +11:00
Tony S Yu 5aec00731a Fix ColorHistogram to work with Open File 2013-10-28 22:55:07 -05:00