ó
ŖxTc           @   s   d  d l  m Z d  d l m Z d  d l m Z m Z m Z m Z d  d l m	 Z	 d  d l
 Z
 d   Z d d  Z e d	 k r e e
 j d
  n  d S(   i’’’’(   t   division(   t   Sorry(   t	   sad_scalet	   sir_scalet	   rip_scalet   siras_scale(   t   twmad_scaleNc         C   sk   d } d } t  |  d t  |   } d | d } | d | d } | GHd | |  | f GH| GH| GHd  S(   Ns)   #########################################s)   ####    Delta F and FA estimation    ####i
   t    i   s   #### %s%s%s ####(   t   len(   t   command_namet   hashest   subtitlet   nt   leftt   right(    (    s@   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/scaling/fest.pyt   print_banner   s    s   phenix.festc         C   s»  t  d |  d d d d d d d d	 d
 d d d d d d d g } t |   d k ro Hd | GHHt d   n  |  d | k r d G|  d GHn, d GHd GHx | D] } | GHq  Wt d   |  d | d k rć t j |  d  nŌ |  d | d k rt j |  d  n¬ |  d | d k r3t j |  d  n |  d | d k r[t j |  d  n\ |  d | d k rt j |  d  n4 |  d | d k r«t j |  d  n Hd GHd GHHd  S(    NR	   t   SADt   SIRt   RIPt   SIRASt   RIPASt   MIRt   MIRASt   2WMADt   3WMADt   4WMADs	   2WMAD+NATs	   3WMAD+NATs	   4WMAD+NATt   2WSADt   3WSADt   4WSADi    s9   usage: %s <EXPERIMENT TYPE> <FLAGS and/or PARAMETER FILE>s   No instructions receiveds   experiment: s   Unknown experiment types     Choose from the following list:s   Unmknown experimenttypei   i   i   i   i   s9   Sorry, no time. This method has not yet been implemented.s4   Currently, only SAD,SIR,RIP and 2WMAD are supported.(	   R   R   R   R   t   runR   R   R   R   (   t   argsR	   t	   scenariost   method(    (    s@   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/scaling/fest.pyR      s\    		t   __main__i   (   t
   __future__R    t   libtbx.utilsR   t   mmtbx.scalingR   R   R   R   R   t   sysR   R   t   __name__t   argv(    (    (    s@   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/scaling/fest.pyt   <module>   s   "	C