Make it work

bug fixes to make it install
This commit is contained in:
Zach Pincus
2011-11-26 00:36:36 -05:00
parent 51d643c527
commit 3e9945cf93
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -75,8 +75,8 @@ def find_contours(array, level, fully_connected='low', positive_orientation='low
if array.ndim != 2:
raise RuntimeError('Only 2D arrays are supported.')
level = float(level)
if fully_connected not in _param_options or
positive_orientation not in _param_options:
if (fully_connected not in _param_options or
positive_orientation not in _param_options):
raise ValueError('Parameters "fully_connected" and'
' "positive_orientation" must be either "high" or "low".')
point_list = _find_contours.iterate_and_store(array, level,
+1
View File
@@ -15,6 +15,7 @@ def configuration(parent_package='', top_path=None):
config.add_subpackage('color')
config.add_subpackage('draw')
config.add_subpackage('feature')
config.add_subpackage('find_contours')
def add_test_directories(arg, dirname, fnames):
if dirname.split(os.path.sep)[-1] == 'tests':