sidpy/hdf/reg_ref.py
def __corners_to_slices(start, stop):
            """
            Convert a pair of tuples representing two opposite corners of an
            HDF5 region reference
            into a pair of slices.

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

            Returns
            -------
            slices : list
                pair of slices representing the region

            """
            slices = []
            for idim in range(len(start)):
                slices.append(slice(start[idim], stop[idim]))

            return slices

            Convert a pair of tuples representing two opposite corners of an
            HDF5 region reference
            into a pair of slices.

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

            Returns
            -------
            slices : list
                pair of slices representing the region

            
Convert a pair of tuples representing two opposite corners of an
HDF5 region reference
into a pair of slices.

Parameters

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

Returns

slices : list
pair of slices representing the region
Convert a pair of tuples representing two opposite corners of an HDF5 region reference into a pair of slices . Parameters start : Tuple the starting indices of the region stop : Tuple the final indices of the region Returns slices : list pair of slices representing the region
def __corners_to_slices(start, stop):
            slices = []
            for idim in range(len(start)):
                slices.append(slice(start[idim], stop[idim]))
            return slices
def __corners_to_slices ( start , stop ) : slices = [ ] for idim in range ( len ( start ) ) : slices . append ( slice ( start [ idim ] , stop [ idim ] ) ) return slices
Convert a pair of tuples representing two opposite corners of an
HDF5 region reference
into a pair of slices.
Convert a pair of tuples representing two opposite corners of an HDF5 region reference into a pair of slices .
"""
            Convert a pair of tuples representing two opposite corners of an
            HDF5 region reference
            into a pair of slices.

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

            Returns
            -------
            slices : list
                pair of slices representing the region

            """
start
stop