API Reference for Enthought Tool Suite 3.0.1
Defines cell-related classes and functions.
This function is like find_runs(), but it returns a list of tuples indicating the start and end indices of runs in the input int_array.
find_runs(int_array, order=<'ascending'|'flat'|'descending'>) -> list_of_int_arrays
Given an integer array sorted in ascending, descending, or flat order, this function returns a list of continuous runs of integers inside the list. For example:
find_runs([1,2,3,6,7,8,9,10,11,15])
returns [ [1,2,3], [6,7,8,9,10,11], [15] ] and:
find_runs([0,0,0,1,1,1,1,0,0,0,0])
returns [ [0,0,0], [1,1,1,1], [0,0,0,0] ]
| Local name | Refers to |
|---|---|
| AbstractDataMapper | enthought.chaco.datamapper.AbstractDataMapper |
| Any | enthought.traits.trait_types.Any |
| Array | enthought.traits.trait_numeric.Array |
| array | numpy.array |
| concatenate | numpy.concatenate |
| Delegate | enthought.traits.trait_types.Delegate |
| Disallow | enthought.traits.trait_types.Disallow |
| HasStrictTraits | enthought.traits.has_traits.HasStrictTraits |
| Instance | enthought.traits.trait_types.Instance |
| left_shift | enthought.chaco.datamapper.left_shift |
| List | enthought.traits.trait_types.List |
| nonzero | numpy.nonzero |
| Property | enthought.traits.traits.Property |
| right_shift | enthought.chaco.datamapper.right_shift |
| sort_points | enthought.chaco.datamapper.sort_points |
| take | numpy.take |
| Trait | enthought.traits.traits.Trait |
| Tuple | enthought.traits.trait_types.Tuple |
© Copyright 2002-2008 Enthought, Inc.