ó
R™xTc           @   s»   d  d l  m Z d  d l m Z d  d l m Z d  d l m Z d  d l m Z d  d l	 Z	 d  d l
 Z
 e	 j d ƒ e j d ƒ d „  Z d	 „  Z e d
 k r· e d e
 j d ƒ n  d S(   iÿÿÿÿ(   t   division(   t   dev(   t   random_structure(   t   debug_utils(   t   flexNi    c         C   s”   t  j | d d d d d d d	 | j d
 t ƒ} | j ƒ  } | j d | j ƒ | j d | j ƒ t	 j
 d | d | d | ƒ j ƒ  } d | GHHd  S(   Nt   elementst   Nt   Ct   Ot   volume_per_atomiÈ   t   min_distanceg       @t   general_positions_onlyt   random_u_isot   rms_differencet   spreadt   structure_idealt   structure_shaket   paramss   R1: %.4f(   R   R   R   (   R   t   xray_structureR   t   Truet   deep_copy_scattererst   shake_sites_in_placet   shake_sites_rmsdt	   shake_adpt   shake_adp_spreadR   t   run_refinementt	   r1_factor(   t   flagst   space_group_infoR   R   R   t   r1(    (    s?   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/omz/tst_dev.pyt   run_call_back   s     				c         C   s¼   t  j ƒ  } | j ƒ  } g  } g  } xL |  D]D } | j d ƒ d k rb | j | j d | ƒ ƒ q+ | j | ƒ q+ W| j d | ƒ } | j ƒ  H| j ƒ  } t	 j
 d | d t d | ƒ d  S(   Nt   =i    t   argt   sourcest   argvt	   call_backR   (   R   t   get_master_philt!   command_line_argument_interpretert   findt   appendt   processt   fetcht   showt   extractR   t   parse_options_loop_space_groupsR   (   t   argst   master_philt   argument_interpretert   phil_objectst   remaining_argsR    t	   work_philR   (    (    s?   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/omz/tst_dev.pyt   run    s    
	t   __main__R-   i   (   t
   __future__R    t	   cctbx.omzR   t   cctbx.developmentR   R   t   cctbx.array_familyR   t   randomt   syst   seedt   set_random_seedR   R3   t   __name__R"   (    (    (    s?   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/omz/tst_dev.pyt   <module>   s   		