ó
a#nSc           @   s   d  Z  d „  Z d S(   s'    tools for working with python slices

c         C   sÃ   |  j  |  j |  j g } | d d k r5 d | d <n% | d d k  rZ | d | | d <n  | d d k rw | | d <n% | d d k  rœ | d | | d <n  | d d k r¹ d | d <n  t | ƒ S(   s:   makes the bounds of a slice explicit

      **Arguments**

       - slice: a Slice object

       - dim: the dimensions of the thing being sliced

      **Returns**

        a 3-tuple:

          1) the explicit beginning of the slice

          2) the explicit end of the slice

          3) the slice step

    i    i   i   N(   t   startt   stopt   stept   Nonet   tuple(   t   slicet   dimt   res(    (    sX   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/rdkit/utils/SliceTools.pyt   FindSliceBounds   s    N(   t   __doc__R   (    (    (    sX   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/rdkit/utils/SliceTools.pyt   <module>   s   