sidpy/hdf/reg_ref.py
def __corners_to_point_array(start, stop):
            """
            Convert a pair of tuples representing two opposite corners of an
            HDF5 region reference
            into a list of arrays for each dimension.

            Parameters
            ----------
            start : Tuple
                the starting indices of the region
            stop : Tuple
                the final indices of the region

            Returns
            -------
            inds : Tuple of arrays
                the list of points in each dimension

            """
            ranges = []
            for i in range(len(start)):
                if start[i] == stop[i]:
                    ranges.append([stop[i]])
                else:
                    ranges.append(np.arange(start[i], stop[i] + 1,
                                            dtype=np.uint))
            grid = np.meshgrid(*ranges, indexing='ij')

            ref_inds = np.asarray(zip(*(x.flat for x in grid)))

            return ref_inds

            Convert a pair of tuples representing two opposite corners of an
            HDF5 region reference
            into a list of arrays for each dimension.

            Parameters
            ----------
            start : Tuple
                the starting indices of the region
            stop : Tuple
                the final indices of the region

            Returns
            -------
            inds : Tuple of arrays
                the list of points in each dimension

            
Convert a pair of tuples representing two opposite corners of an
HDF5 region reference
into a list of arrays for each dimension.

Parameters

start : Tuple
the starting indices of the region
stop : Tuple
the final indices of the region

Returns

inds : Tuple of arrays
the list of points in each dimension
Convert a pair of tuples representing two opposite corners of an HDF5 region reference into a list of arrays for each dimension . Parameters start : Tuple the starting indices of the region stop : Tuple the final indices of the region Returns inds : Tuple of arrays the list of points in each dimension
def __corners_to_point_array(start, stop):
            ranges = []
            for i in range(len(start)):
                if start[i] == stop[i]:
                    ranges.append([stop[i]])
                else:
                    ranges.append(np.arange(start[i], stop[i] + 1,
                                            dtype=np.uint))
            grid = np.meshgrid(*ranges, indexing='ij')
            ref_inds = np.asarray(zip(*(x.flat for x in grid)))
            return ref_inds
def __corners_to_point_array ( start , stop ) : ranges = [ ] for i in range ( len ( start ) ) : if start [ i ] == stop [ i ] : ranges . append ( [ stop [ i ] ] ) else : ranges . append ( np . arange ( start [ i ] , stop [ i ] + 1 , dtype = np . uint ) ) grid = np . meshgrid ( * ranges , indexing = 'ij' ) ref_inds = np . asarray ( zip ( * ( x . flat for x in grid ) ) ) return ref_inds
Convert a pair of tuples representing two opposite corners of an
HDF5 region reference
into a list of arrays for each dimension.
Convert a pair of tuples representing two opposite corners of an HDF5 region reference into a list of arrays for each dimension .
"""
            Convert a pair of tuples representing two opposite corners of an
            HDF5 region reference
            into a list of arrays for each dimension.

            Parameters
            ----------
            start : Tuple
                the starting indices of the region
            stop : Tuple
                the final indices of the region

            Returns
            -------
            inds : Tuple of arrays
                the list of points in each dimension

            """
start
stop