mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-11 11:25:30 +08:00
Make it work
bug fixes to make it install
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user