ó
O™xTc           @   sn   d  d l  m Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d	 „  Z	 d
 „  Z
 d „  Z d S(   iÿÿÿÿ(   t   divisionc         C   s0   d } x |  D] } | d | f 7} q W| d S(   Nt    s    %.6gi   (    (   t   lt   st   x(    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt
   dot6g_list   s     c         C   sB   d |  f j  ƒ  } d | k r* d |  f Sd | k r: | S| d S(   Ns   %.6gt   Es   %.10ft   .(   t   upper(   R   R   (    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   dot6gdot   s      c         C   s3   d } x" |  D] } | d t  | ƒ 7} q W| d S(   NR   t    i   (   R	   (   R   R   R   (    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   dot6gdot_list   s     c         C   s%   d |  f } d | k r | Sd | S(   Ns   %.6fR   (    (   R   R   (    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   dot6fdot   s     c         C   s3   d } x" |  D] } | d t  | ƒ 7} q W| d S(   NR   R
   i   (   R   (   R   R   R   (    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   dot6fdot_list   s     c         C   sO   d d  l  } d |  f } | j | d ƒ } | d k  r; | S| |  | | d S(   Niÿÿÿÿs   %.6gt   ei    i   (   t   stringt   find(   R   R   R   t   i(    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   xtal6g   s     c         C   s3   d } x" |  D] } | d t  | ƒ 7} q W| d S(   NR   R
   i   (   R   (   R   R   R   (    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   xtal6g_list#   s     c         C   s   d t  |  ƒ j d d ƒ S(   Ns   {%.6g,%.6g,%.6g}R   s   *^(   t   tuplet   replace(   t   V(    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   MathFormVec3(   s    c         C   s   d t  |  ƒ j d d ƒ S(   Ns4   {{%.6g,%.6g,%.6g},{%.6g,%.6g,%.6g},{%.6g,%.6g,%.6g}}R   s   *^(   R   R   (   t   M(    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   MathFormMx33+   s    c         C   sI   t  |  d |  d |  d |  d |  d |  d |  d |  d |  d f	 ƒ S(   Ni    i   i   i   i   i   (   R   (   t   adp(    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   MathForm_adp/   s    N(   t
   __future__R    R   R	   R   R   R   R   R   R   R   R   (    (    (    sI   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/development/fmt_utils.pyt   <module>   s   									