ó
¢áSc        	   @` sq  d  Z  d d l m Z m Z m Z d d d g Z d Z d d l Z d d l m	 Z	 d	 d
 l
 m Z d	 d l m Z m Z m Z m Z m Z m Z d	 d l m Z m Z m Z d	 d l m Z e j d d k rê e j Z e j d	 Z n e j Z e j d	 Z d „  Z d a  d a! d a" e# a$ d a% d a& d a' d a) d d d d d d d d d „ Z* d „  Z+ d „  Z, d „  Z- d „  Z. d d d d „ Z/ d „  Z0 d d d d d e1 d d „ Z2 d „  Z3 d  „  Z4 d! e5 f d" „  ƒ  YZ6 d# „  Z7 d$ e5 f d% „  ƒ  YZ8 d& e5 f d' „  ƒ  YZ9 d( e5 f d) „  ƒ  YZ: d* e5 f d+ „  ƒ  YZ; d, e5 f d- „  ƒ  YZ< d. e5 f d/ „  ƒ  YZ= d S(0   sX   Array printing function

$Id: arrayprint.py,v 1.9 2005/09/13 13:58:44 teoliphant Exp $

i    (   t   divisiont   absolute_importt   print_functiont   array2stringt   set_printoptionst   get_printoptionst   restructuredtextN(   t   reducei   (   t   numerictypes(   t   maximumt   minimumt   absolutet	   not_equalt   isnant   isinf(   t   format_longfloatt   datetime_as_stringt   datetime_data(   t   raveli   c         C` s   |  | S(   N(    (   t   xt   y(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyt   product    s    iè  i   iK   t   nant   infc         C` sŸ   | d k	 r | a n  | d k	 r* | a n  | d k	 r? | a n  |  d k	 rT |  a n  | d k	 rk | a n  | d k	 r€ | a n  | d k	 r• | a n  | a d S(   st  
    Set printing options.

    These options determine the way floating point numbers, arrays and
    other NumPy objects are displayed.

    Parameters
    ----------
    precision : int, optional
        Number of digits of precision for floating point output (default 8).
    threshold : int, optional
        Total number of array elements which trigger summarization
        rather than full repr (default 1000).
    edgeitems : int, optional
        Number of array items in summary at beginning and end of
        each dimension (default 3).
    linewidth : int, optional
        The number of characters per line for the purpose of inserting
        line breaks (default 75).
    suppress : bool, optional
        Whether or not suppress printing of small floating point values
        using scientific notation (default False).
    nanstr : str, optional
        String representation of floating point not-a-number (default nan).
    infstr : str, optional
        String representation of floating point infinity (default inf).
    formatter : dict of callables, optional
        If not None, the keys should indicate the type(s) that the respective
        formatting function applies to.  Callables should return a string.
        Types that are not specified (by their corresponding keys) are handled
        by the default formatters.  Individual types for which a formatter
        can be set are::

            - 'bool'
            - 'int'
            - 'timedelta' : a `numpy.timedelta64`
            - 'datetime' : a `numpy.datetime64`
            - 'float'
            - 'longfloat' : 128-bit floats
            - 'complexfloat'
            - 'longcomplexfloat' : composed of two 128-bit floats
            - 'numpy_str' : types `numpy.string_` and `numpy.unicode_`
            - 'str' : all other strings

        Other keys that can be used to set a group of types at once are::

            - 'all' : sets all types
            - 'int_kind' : sets 'int'
            - 'float_kind' : sets 'float' and 'longfloat'
            - 'complex_kind' : sets 'complexfloat' and 'longcomplexfloat'
            - 'str_kind' : sets 'str' and 'numpystr'

    See Also
    --------
    get_printoptions, set_string_function, array2string

    Notes
    -----
    `formatter` is always reset with a call to `set_printoptions`.

    Examples
    --------
    Floating point precision can be set:

    >>> np.set_printoptions(precision=4)
    >>> print np.array([1.123456789])
    [ 1.1235]

    Long arrays can be summarised:

    >>> np.set_printoptions(threshold=5)
    >>> print np.arange(10)
    [0 1 2 ..., 7 8 9]

    Small results can be suppressed:

    >>> eps = np.finfo(float).eps
    >>> x = np.arange(4.)
    >>> x**2 - (x + eps)**2
    array([ -4.9304e-32,  -4.4409e-16,   0.0000e+00,   0.0000e+00])
    >>> np.set_printoptions(suppress=True)
    >>> x**2 - (x + eps)**2
    array([-0., -0.,  0.,  0.])

    A custom formatter can be used to display array elements as desired:

    >>> np.set_printoptions(formatter={'all':lambda x: 'int: '+str(-x)})
    >>> x = np.arange(3)
    >>> x
    array([int: 0, int: -1, int: -2])
    >>> np.set_printoptions()  # formatter gets reset
    >>> x
    array([0, 1, 2])

    To put back the default options, you can use:

    >>> np.set_printoptions(edgeitems=3,infstr='inf',
    ... linewidth=75, nanstr='nan', precision=8,
    ... suppress=False, threshold=1000, formatter=None)
    N(	   t   Nonet   _line_widtht   _summaryThresholdt   _summaryEdgeItemst   _float_output_precisiont   _float_output_suppress_smallt   _nan_strt   _inf_strt
   _formatter(   t	   precisiont	   thresholdt	   edgeitemst	   linewidtht   suppresst   nanstrt   infstrt	   formatter(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR   -   s    l						c          C` s=   t  d t d t d t d t d t d t d t d t ƒ }  |  S(	   s	  
    Return the current print options.

    Returns
    -------
    print_opts : dict
        Dictionary of current print options with keys

          - precision : int
          - threshold : int
          - edgeitems : int
          - linewidth : int
          - suppress : bool
          - nanstr : str
          - infstr : str
          - formatter : dict of callables

        For a full description of these options, see `set_printoptions`.

    See Also
    --------
    set_printoptions, set_string_function

    R!   R"   R#   R$   R%   R&   R'   R(   (	   t   dictR   R   R   R   R   R   R   R    (   t   d(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR   ©   s    	c         C` sA  d d l  m } |  j d k r_ t |  ƒ d t k rV | j |  t  |  t f ƒ } q=|  } nÞ t |  ƒ d t k rö g  t t t |  ƒ t ƒ ƒ D] } t |  | ƒ ^ q‘ } | j	 g  t t t |  ƒ t ƒ d d ƒ D] } t |  | ƒ ^ qÕ ƒ n2 g  t d t |  ƒ ƒ D] } t |  | ƒ ^ q} | j t
 | ƒ ƒ } | S(   Ni   (   t   numerici   i    iÿÿÿÿ(   t    R+   t   ndimt   lenR   t   concatenatet   ranget   mint   _leading_trailingt   extendt   tuple(   t   at   _nct   bt   it   l(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR2   Ì   s    	2=2c         C` s   |  r
 d Sd Sd  S(   Ns    Truet   False(    (   R   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyt   _boolFormatterß   s    c         C` s
   t  |  ƒ S(   N(   t   repr(   R   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyt   repr_formatæ   s    t    R,   c      	   C` sD  | d  k r t } n  | d  k r* t } n  | d  k r? t } n  | d  k rT t } n  |  j t k rx d } t |  ƒ } n d } t |  ƒ } i
 t	 d 6t
 | ƒ d 6t | | | ƒ d 6t | ƒ d 6t | | | ƒ d 6t | ƒ d 6t | ƒ d	 6t | ƒ d
 6t d 6t d 6}	 | d  k	 rg  | j ƒ  D] }
 | |
 d  k	 r%|
 ^ q%} d | k r{x% |	 j ƒ  D] } | d |	 | <q`Wn  d | k r¬x" d g D] } | d |	 | <q‘Wn  d | k ràx% d d g D] } | d |	 | <qÅWn  d | k rx% d d g D] } | d |	 | <qùWn  d | k rHx% d d g D] } | d |	 | <q-Wn  x4 |	 j ƒ  D]# } | | k rU| | |	 | <qUqUWn  y/ |  j } d } d d  l } | j | t ƒ WnGt k
 r÷|  j j } t | t j ƒ ré|	 d } qøt | t j ƒ r't | t j ƒ r|	 d
 } qô|	 d } qøt | t j  ƒ ret | t j! ƒ rX|	 d } qô|	 d } qøt | t j" ƒ r£t | t j# ƒ r–|	 d } qô|	 d } qøt | t j$ t j% f ƒ rË|	 d } qøt | t j& ƒ rê|	 d	 } qø|	 d } n Xd } | d t' | ƒ 7} t( |  | t' |  j) ƒ | | | t* | ƒ d  } | S(   Ns   ..., R,   t   boolt   intt   floatt	   longfloatt   complexfloatt   longcomplexfloatt   datetimet	   timedeltat   numpystrt   strt   allt   int_kindt
   float_kindt   complex_kindt   str_kindsn   The `_format` attribute is deprecated in Numpy 2.0 and will be removed in 2.1. Use the `formatter` kw instead.i    R>   iÿÿÿÿ(+   R   R   R   R   R    t   sizeR   R2   R   R;   t   IntegerFormatt   FloatFormatt   LongFloatFormatt   ComplexFormatt   LongComplexFormatt   DatetimeFormatt   TimedeltaFormatR=   RH   t   keyst   _formatt   warningst   warnt   DeprecationWarningt   AttributeErrort   dtypet   typet
   issubclasst   _ntt   bool_t   integert   timedelta64t   floatingRB   t   complexfloatingt
   clongfloatt   unicode_t   string_t
   datetime64R.   t   _formatArrayt   shapeR   (   R5   t   max_line_widthR!   t   suppress_smallt	   separatort   prefixR(   t   summary_insertt   datat
   formatdictt   kt   fkeyst   keyt   format_functiont   msgRX   t   dtypeobjt   next_line_prefixt   lst(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyt   _array2stringé   s˜    				
	

/	c         C` s}   d d l  m } g  } xZ |  D]R } t | | j ƒ rD | j ƒ  } n t | t ƒ rb t | ƒ } n  | j | ƒ q Wt | ƒ S(   Ni   (   R+   (   R,   R+   t
   isinstancet   ndarrayt   tolistR4   t   _convert_arrayst   append(   t   objR6   t   newtupRr   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR~   K  s    c      	   C` s×   |  j  d k r‘ |  j ƒ  } y5 |  j | ƒ }	 d }
 d d l } | j |
 t ƒ WqÓ t k
 r� t | t ƒ r~ t	 | ƒ } n  | | ƒ }	 qÓ XnB t
 t |  j  ƒ d k r² d }	 n! t |  | | | | | d | ƒ}	 |	 S(   sì  
    Return a string representation of an array.

    Parameters
    ----------
    a : ndarray
        Input array.
    max_line_width : int, optional
        The maximum number of columns the string should span. Newline
        characters splits the string appropriately after array elements.
    precision : int, optional
        Floating point precision. Default is the current printing
        precision (usually 8), which can be altered using `set_printoptions`.
    suppress_small : bool, optional
        Represent very small numbers as zero. A number is "very small" if it
        is smaller than the current printing precision.
    separator : str, optional
        Inserted between elements.
    prefix : str, optional
        An array is typically printed as::

          'prefix(' + array2string(a) + ')'

        The length of the prefix string is used to align the
        output correctly.
    style : function, optional
        A function that accepts an ndarray and returns a string.  Used only
        when the shape of `a` is equal to ``()``, i.e. for 0-D arrays.
    formatter : dict of callables, optional
        If not None, the keys should indicate the type(s) that the respective
        formatting function applies to.  Callables should return a string.
        Types that are not specified (by their corresponding keys) are handled
        by the default formatters.  Individual types for which a formatter
        can be set are::

            - 'bool'
            - 'int'
            - 'timedelta' : a `numpy.timedelta64`
            - 'datetime' : a `numpy.datetime64`
            - 'float'
            - 'longfloat' : 128-bit floats
            - 'complexfloat'
            - 'longcomplexfloat' : composed of two 128-bit floats
            - 'numpy_str' : types `numpy.string_` and `numpy.unicode_`
            - 'str' : all other strings

        Other keys that can be used to set a group of types at once are::

            - 'all' : sets all types
            - 'int_kind' : sets 'int'
            - 'float_kind' : sets 'float' and 'longfloat'
            - 'complex_kind' : sets 'complexfloat' and 'longcomplexfloat'
            - 'str_kind' : sets 'str' and 'numpystr'

    Returns
    -------
    array_str : str
        String representation of the array.

    Raises
    ------
    TypeError
        if a callable in `formatter` does not return a string.

    See Also
    --------
    array_str, array_repr, set_printoptions, get_printoptions

    Notes
    -----
    If a formatter is specified for a certain type, the `precision` keyword is
    ignored for that type.

    Examples
    --------
    >>> x = np.array([1e-16,1,2,3])
    >>> print np.array2string(x, precision=2, separator=',',
    ...                       suppress_small=True)
    [ 0., 1., 2., 3.]

    >>> x  = np.arange(3.)
    >>> np.array2string(x, formatter={'float_kind':lambda x: "%.2f" % x})
    '[0.00 1.00 2.00]'

    >>> x  = np.arange(3)
    >>> np.array2string(x, formatter={'int':lambda x: hex(x)})
    '[0x0L 0x1L 0x2L]'

    sn   The `_format` attribute is deprecated in Numpy 2.0 and will be removed in 2.1. Use the `formatter` kw instead.i    Ns   []R(   (    (   Rj   t   itemRW   RX   RY   RZ   R[   R{   R4   R~   R   R   Rz   (   R5   Rk   R!   Rl   Rm   Rn   t   styleR(   R   Ry   Rv   RX   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR   W  s     ]	c         C` sY   t  | j ƒ  ƒ t  | j ƒ  ƒ | k rE |  | j ƒ  d 7}  | } n  | | 7} |  | f S(   Ns   
(   R.   t   rstrip(   t   st   linet   wordt   max_line_lenRx   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyt   _extendLineÉ  s
    (	
c         C` sh  | d k r@ |  j  ƒ  } t | t ƒ r6 t | ƒ } n  t | ƒ S| rs d | t |  ƒ k  rs | | | }	 }
 } n d t |  ƒ d }	 }
 } | d k r¸d } | } xF t |	 ƒ D]8 } | |  | ƒ | } t | | | | | ƒ \ } } q² W| rt | | | | | ƒ \ } } n  xM t |
 d d ƒ D]9 } | |  | ƒ | } t | | | | | ƒ \ } } q(W| |  d ƒ } t | | | | | ƒ \ } } | | d 7} d | t | ƒ } n¬d } | j ƒ  } x‰ t |	 ƒ D]{ } | d k rö| | 7} n  | t	 |  | | | d | d | | | | ƒ 7} | j ƒ  | j ƒ  d	 t
 | d d ƒ } q×W| rq| | | d	 7} n  x– t |
 d d ƒ D]‚ } |	 sœ| |
 k r©| | 7} n  | t	 |  | | | d | d | | | | ƒ 7} | j ƒ  | j ƒ  d	 t
 | d d ƒ } q„W|	 s|
 d k r)| | 7} n  | t	 |  d | | d | d | | | | ƒ j ƒ  d 7} | S(
   sg   formatArray is designed for two modes of operation:

    1. Full output

    2. Summarized output

    i    i   R,   i   iÿÿÿÿs   ]
t   [R>   s   
(   R‚   R{   R4   R~   RH   R.   R0   R‰   R„   Ri   t   max(   R5   Ru   t   rankRˆ   Rx   Rm   t
   edge_itemsRo   R€   t   leading_itemst   trailing_itemst   summary_insert1R…   R†   R8   R‡   t   sep(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRi   Ñ  s^    	
"!"
/
/RP   c           B` s)   e  Z e d  „ Z d „  Z e d „ Z RS(   c         C` se   | |  _  | |  _ | |  _ t |  _ t |  _ d |  _ y |  j | ƒ Wn t t	 f k
 r` n Xd  S(   Ni    (
   R!   Rl   t   signR:   t
   exp_formatt   large_exponentt   max_str_lent
   fillFormatt	   TypeErrort   NotImplementedError(   t   selfRp   R!   Rl   R’   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyt   __init__  s    						c         C` s–  d d l  m } | j d d ƒ �Í t | ƒ t | ƒ B} t | d ƒ | @} t | j | ƒ ƒ } t | ƒ d k rƒ d } d } nh t	 j
 | ƒ } t j
 | ƒ } | d k r¹ t |  _ n  |  j rë | d k  sß | | d	 k rë t |  _ n  Wd  QX|  j r…d | k  od
 k  n p| d k |  _ d |  j |  _ |  j rP|  j d 7_ n  |  j rbd } n d } | d |  j |  j f } nñ d |  j f } t | ƒ rÒt g  | D] }	 t |	 |  j | ƒ ^ q«ƒ }
 n d }
 t |  j |
 ƒ }
 t t t | ƒ ƒ ƒ |
 d |  _ | j | ƒ rGt |  j t t ƒ t t ƒ d ƒ |  _ n  |  j rYd } n d } | d |  j |
 f } d |  j f |  _ | |  _ d  S(   Ni   (   R+   RI   t   ignorei    g        g    „×—Ag-Cëâ6?g     @�@g>ÃØN}a+g}Ã”%­I²Ti   s   %+t   %s   %d.%des   %%.%dfi   s   %#+s   %#s   %d.%dfs   %%%ds(   R,   R+   t   errstateR   R   R   R   t   compressR.   R	   R   R
   t   TrueR“   Rl   R”   R!   R•   R’   R‹   t   _digitsR1   RH   R@   t   anyR   R   t   special_fmtt   format(   R™   Rp   R6   t   specialt   validt   non_zerot   max_valt   min_valR£   R   R!   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR–   #  sR    		+			+#				c         C` s€  d d l  m } | j d d ƒ �– t | ƒ r[ |  j rJ |  j d t f S|  j t f SnY t | ƒ r´ | d k rŸ |  j rŽ |  j d t f S|  j t f Sq´ |  j d t f Sn  Wd  QX|  j	 | } |  j
 r| d } | d k sò | d k r|| d d	 !d
 | d	 } q|nk |  j rF| d d
 k r|d | d  | d	 } q|n6 | r|| j d
 ƒ } | d t | ƒ t | ƒ } n  | S(   Ni   (   R+   t   invalidR›   t   +i    t   -iýÿÿÿiþÿÿÿt   0R>   (   R,   R+   R�   R   R’   R¢   R   R   R   R£   R”   R“   R„   R.   (   R™   R   t   strip_zerosR6   R…   t   expsignt   z(    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyt   __call__V  s0    			
	!(   t   __name__t
   __module__R:   Rš   R–   RŸ   R°   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRP     s   	3c         C` s1   | |  } | j  d ƒ } | t | ƒ t | ƒ S(   NR¬   (   R„   R.   (   R   R!   R£   R…   R¯   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR    x  s    
RO   c           B` s   e  Z d  „  Z d „  Z RS(   c         C` s‚   yT t  t t t j | ƒ ƒ ƒ t t t j | ƒ ƒ ƒ ƒ } d t | ƒ d |  _ Wn' t t f k
 rm n t	 k
 r} n Xd  S(   NRœ   R*   (
   R‹   R.   RH   R	   R   R
   R£   R—   R˜   t
   ValueError(   R™   Rp   R•   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRš     s    c         C` s3   t  | k  o t k  n r' |  j | Sd | Sd  S(   Ns   %s(   t   _MININTt   _MAXINTR£   (   R™   R   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR°   Œ  s    (   R±   R²   Rš   R°   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRO   ~  s   	RQ   c           B` s   e  Z e d  „ Z d „  Z RS(   c         C` s   | |  _  | |  _ d  S(   N(   R!   R’   (   R™   R!   R’   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRš   •  s    	c         C` s»   t  | ƒ r( |  j r d t Sd t Sn� t | ƒ rg | d k r\ |  j rQ d t Sd t Sq· d t SnP | d k r§ |  j r� d t | |  j ƒ Sd t | |  j ƒ Sn t | |  j ƒ Sd  S(   NRª   R>   i    R«   (   R   R’   R   R   R   R   R!   (   R™   R   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR°   ™  s    			(   R±   R²   R:   Rš   R°   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRQ   ’  s   RS   c           B` s   e  Z d  „  Z d „  Z RS(   c         C` s(   t  | ƒ |  _ t  | d t ƒ|  _ d  S(   NR’   (   RQ   t   real_formatRŸ   t   imag_format(   R™   R!   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRš   ±  s    c         C` s0   |  j  | j ƒ } |  j | j ƒ } | | d S(   Nt   j(   R¶   t   realR·   t   imag(   R™   R   t   rR8   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR°   µ  s    (   R±   R²   Rš   R°   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRS   °  s   	RR   c           B` s   e  Z d  „  Z d „  Z RS(   c         C` s:   t  | j | | ƒ |  _ t  | j | | d t ƒ|  _ d  S(   NR’   (   RP   R¹   R¶   Rº   RŸ   R·   (   R™   R   R!   Rl   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRš   ¼  s    c         C` s‚   |  j  | j d t ƒ} |  j | j d t ƒ} |  j j sp | j d ƒ } | d d t | ƒ t | ƒ } n
 | d } | | S(   NR­   R¬   R¸   R>   (   R¶   R¹   R:   R·   Rº   R“   R„   R.   (   R™   R   R»   R8   R¯   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR°   Á  s    %
(   R±   R²   Rš   R°   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRR   »  s   	RT   c           B` s#   e  Z d d d  d „ Z d „  Z RS(   t	   same_kindc         C` sŒ   | d  k r= | j j d k r4 t | j ƒ d } q= d } n  | d  k rm | d	 k ra d |  _ qv d |  _ n	 | |  _ | |  _ | |  _ d  S(
   Nt   Mi    R…   t   Yt   Wt   Dt   UTCt   local(   R¾   R½   R¿   RÀ   (   R   R\   t   kindR   t   timezonet   unitt   casting(   R™   R   RÅ   RÄ   RÆ   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRš   Ì  s    			c      	   C` s)   d t  | d |  j d |  j d |  j ƒS(   Ns   '%s'RÅ   RÄ   RÆ   (   R   RÅ   RÄ   RÆ   (   R™   R   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR°   á  s    		N(   R±   R²   R   Rš   R°   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRT   Ë  s   RU   c           B` s   e  Z d  „  Z d „  Z RS(   c         C` sx   | j  j d k rt | j d ƒ } t t t t j | ƒ ƒ ƒ t t t j | ƒ ƒ ƒ ƒ } d t | ƒ d |  _	 n  d  S(   Nt   mt   i8Rœ   R*   (
   R\   RÃ   t   viewR‹   R.   RH   R	   R   R
   R£   (   R™   Rp   t   vR•   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRš   è  s
    c         C` s   |  j  | j d ƒ S(   NRÈ   (   R£   t   astype(   R™   R   (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyR°   ï  s    (   R±   R²   Rš   R°   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyRU   ç  s   	(>   t   __doc__t
   __future__R    R   R   t   __all__t   __docformat__t   syst	   functoolsR   R,   R   R_   t   umathR	   R
   R   R   R   R   t
   multiarrayR   R   R   t   fromnumericR   t   version_infot   maxsizeRµ   R´   t   maxintR   R   R   R   R:   R   R   R   R   R   R    R   R   R2   R;   R=   Rz   R~   R<   R   R‰   Ri   t   objectRP   R    RO   RQ   RS   RR   RT   RU   (    (    (    sO   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/core/arrayprint.pyt   <module>   s^   	.				y	#			a		p		Cd	