ó
.xTc           @   sw   d  d l  m Z d  d l m Z d  d l Z d  d l Z d e j f d     YZ d e j j	 e j f d     YZ
 d S(   i’’’’(   t   division(   t   extNt   gradient_flagsc           B   s/   e  Z d d d d d d d e e e d  
 Z RS(   c      
   C   sģ   | d  k	 r- | d  k r$ | d  k s- t  n  | d  k rB |
 } n  | d  k rW |
 } n  | d  k rl | } n  | d  k r | } n  | d  k r |
 } n  | d  k r« |
 } n  | d  k rĄ |
 } n  t j j |  | | | | | | | |	 	 d  S(   N(   t   Nonet   AssertionErrorR   R   t   __init__(   t   selft   sitet   u_isot   u_anisot	   occupancyt   fpt   fdpt   ut
   sqrt_u_isot   tan_b_iso_maxt   default(    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/gradient_flags.pyR      s$    
 ! 	 	 	 	 	 	 	N(   t   __name__t
   __module__R   t   FalseR   (    (    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/gradient_flags.pyR      s   t   _c           B   s&   e  Z d    Z d d  Z d   Z RS(   c         C   s   t  j |   S(   N(   R   R   (   R   (    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/gradient_flags.pyt   copy   s    c         C   s¾   | d  k r t j } n  | d IJ| d I|  j IJ| d I|  j IJ| d I|  j IJ| d I|  j IJ| d I|  j IJ| d I|  j IJ| d I|  j	 IJ| d	 I|  j
 IJd  S(
   Ns   gradient_flags:s     site:s     u_iso:s
     u_aniso:s     occupancy:s     fp:s     fdp:s     sqrt_u_iso:s     tan_b_iso_max:(   R   t   syst   stdoutR   R   R	   R
   R   R   R   R   (   R   t   f(    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/gradient_flags.pyt   show_summary"   s     
c         C   sŪ   g  } |  j  r | j d  n  |  j r8 | j d  n  |  j rQ | j d  n  |  j rj | j d  n  |  j r | j d  n  |  j r | j d  n  |  j rµ | j d  n  |  j rĪ | j d  n  d	 j	 |  S(
   NR   R   R	   R
   R   R   R   R   t   ,(
   R   t   appendR   R	   R
   R   R   R   R   t   join(   R   t   result(    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/gradient_flags.pyt   string_of_true.   s$    	 	 	 	 	 	 	 	 N(   R   R   R   R   R   R   (    (    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/gradient_flags.pyR      s   	(   t
   __future__R    t
   cctbx.xrayR   t   boost.pythont   boostR   R   t   pythont   injectorR   (    (    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/gradient_flags.pyt   <module>   s
   