Commit Graph

5743 Commits

Author SHA1 Message Date
Johannes Schönberger f9fd683fcb Test missed line for coverage 2014-08-08 19:51:10 -04:00
Johannes Schönberger 83a6b64844 Fix return value description 2014-08-08 17:01:52 -04:00
Johannes Schönberger 23fd7b89af Improve test coverage 2014-08-08 17:01:52 -04:00
Johannes Schönberger ce0e9174c9 Fix test cases which are now wrong due to previous binning error 2014-08-08 17:01:52 -04:00
Johannes Schönberger fc085ec779 Account for case when image only contains one unique value 2014-08-08 17:01:52 -04:00
Johannes Schönberger 8aa5ef8697 Return to old function name threshold_isodata 2014-08-08 17:01:52 -04:00
Johannes Schönberger 31cf1acf24 Fix isodata-thresholding according to Zachary Pincus 2014-08-08 17:01:52 -04:00
Stefan van der Walt 33a0e91120 Merge pull request #1095 from ahojnnes/denoise-tests
Fix denoise tests
2014-08-08 22:59:13 +02:00
Johannes Schönberger 3b3bb01270 Fix denoise tests 2014-08-08 08:27:57 -04:00
Juan Nunez-Iglesias 00456f9448 Merge pull request #1093 from tonysyu/clarify-release-procedure
Clarify release procedure doc
2014-08-05 01:05:13 -05:00
Tony S Yu 017d051f94 Clarify release procedure doc 2014-08-05 01:02:07 -05:00
Tony S Yu ee3797f2ec Merge pull request #1023 from ahojnnes/release
New release note process
2014-08-05 00:56:22 -05:00
Johannes Schönberger c3b79ca678 Add release notes template 2014-08-04 22:01:40 -04:00
Johannes Schönberger 8ef53d04f0 Add intro to release notes 2014-08-04 22:01:10 -04:00
Johannes Schönberger be3ac9a141 Rename Changes section to API changes 2014-08-04 21:15:47 -04:00
Johannes Schönberger 5d4ec15fd5 Remove contributors for current release notes 2014-08-04 21:14:57 -04:00
Johannes Schönberger 4235e8a448 Add release notes for upcoming versions 2014-08-04 21:14:57 -04:00
Johannes Schönberger c3b4e58978 Describe new release note dev process
For upcoming contributions, every contributor should document the contributed
changes, before merging the PR.
2014-08-04 21:14:57 -04:00
Johannes Schönberger e74ba1b4f0 Add release note instructions 2014-08-04 21:14:57 -04:00
Juan Nunez-Iglesias c0f3697271 Merge pull request #1084 from blink1073/miniconda-travis
Major Overhaul of Travis Build
2014-08-04 19:50:28 -05:00
Steven Silvester 5996cf8aba Add travis_retry around the conda installs 2014-08-04 10:48:15 -05:00
Steven Silvester 480a9f72fc Add note in travis 2014-08-04 10:44:23 -05:00
Steven Silvester 2a339fe69c Improve import behavior for rag fallback 2014-08-04 07:40:37 -05:00
Steven Silvester 56152fe6a7 Update comment 2014-08-04 07:32:11 -05:00
Steven Silvester 04e53f124f Remove confusing dummy variable 2014-08-04 07:30:13 -05:00
Steven Silvester 382be1a457 Formatting and docstring cleanup. 2014-08-04 07:26:07 -05:00
Steven Silvester 26a550a93b Formatting fix. 2014-08-04 07:13:42 -05:00
Steven Silvester f2b7e104f8 Add documentation and rename import variable 2014-08-04 06:37:48 -05:00
Steven Silvester 208afc3837 Move version_requirements to _shared and remove skipif from require. 2014-08-02 11:09:46 -05:00
Steven Silvester e3b84edf1b Fix python 2.6 restoration/unwrap error 2014-08-02 10:30:32 -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
Johannes Schönberger 0801f92dbf Merge pull request #1086 from jni/thresh-iso
Bug fix: nbins can be >256 in threshold_isodata
2014-08-02 01:23:28 -04:00
Juan Nunez-Iglesias 838617cb39 Fix incorrect test function signature 2014-07-28 13:01:41 +10:00
Juan Nunez-Iglesias 278a0d6862 Bug fix: nbins can be >256 in threshold_isodata
The threshold_isodata function created an arange of values up to the
number of bins, but gave it type np.uint8, limiting the number of bins
to 256.

Fixes #1085.
2014-07-28 12:38:34 +10:00
Juan Nunez-Iglesias 85a5cea533 Merge pull request #1054 from blink1073/add_test_seeds
Add random seeds to tests per #1044

Additionally, change all `np.random.random` to `np.random.rand` calls, as the former are not affected by `np.random.seed`.
2014-07-20 07:48:49 -05:00
blink1073 caaf75ebd1 Fix failing doctests 2014-07-19 19:16:46 -05:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
Juan Nunez-Iglesias 6aa0b9e0b9 Merge pull request #1073 from tonysyu/feature/adapt_rgb
Add `adapt_rgb` decorator and helpers
2014-07-18 08:27:57 -05:00
Juan Nunez-Iglesias 0c31487fd9 Merge pull request #1072 from blink1073/add-viewer-tests
Add Viewer Tests
2014-07-18 06:05:08 -05:00
Tony S Yu ee3b9f2d66 Remove orphaned import 2014-07-17 20:50:39 -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
Juan Nunez-Iglesias a2e28955b4 Merge pull request #1063 from nlsn/3d-fallback
Add fallback decorator for 3D images

When an image is 3D or higher, our morphology functions will now call out to scipy.
2014-07-17 00:55:29 -05:00
Tony S Yu 34d7fdb138 Fix docstring for wrapped functions 2014-07-16 23:45:55 -05:00
Tony S Yu d9a39d44eb Remove cast and rescale and adjust test values to match 2014-07-16 23:24:03 -05:00
Tony S Yu c24adec714 Add adapt_rgb decorator and helpers.
This applies `adapt_rgb` to `equalize_adapthist` and removes the
special-casing of RGB images in that function. Note that tests of
`adapt_rgb` fail because some type conversion and intensity scaling
were added to pass tests for `equalize_adapthist`.
2014-07-16 23:13:04 -05:00
Nelson Brown 6e8ae37f07 Change ndimage test image to fit uint8 range 2014-07-16 20:03:37 -07:00
Nelson Brown eb4725826d Change test of ndimage equivalence to use uint8 test image 2014-07-16 19:57:25 -07:00
Tony S Yu 938955c971 Merge pull request #1071 from blink1073/cleanup-adapthist
Minor cleanup of adapthist module
2014-07-16 21:37:28 -05:00
blink1073 97d920cc6b Another travis fix 2014-07-16 21:04:13 -05:00