ó
:™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 Z d d d d	 „ Z d
 „  Z	 d „  Z
 e d k r† e
 ƒ  n  d S(   iÿÿÿÿ(   t   division(   t   phase_o_phrenia(   t   random_structure(   t   debug_utilsNi   i   i    c      
   C   s—   t  j |  d d g | d d d d d t ƒ} d s: | rM | j ƒ  j ƒ  n  t j | | d	 d
 d d ƒ} x% | D] } d | j Gd | j GHqr Wd  S(   Nt   elementst   Hgt   volume_per_atomiô  t   min_distanceg       @t   general_positions_onlyi   t   min_peak_distancei   t   max_reduced_peaksi   s   %.6gs   %8.5f %8.5f %8.5f(	   R   t   xray_structuret   Truet   show_summaryt   show_scatterersR   t   calculate_exp_i_two_phi_peakst   heightt   site(   t   space_group_infot   n_scattererst   d_mint   verboset	   structuret   reduced_peakst   peak(    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/examples/tst_phase_o_phrenia.pyt   exercise   s    	c         C   s   t  | d |  j ƒd  S(   NR   (   R   t   Verbose(   t   flagsR   (    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/examples/tst_phase_o_phrenia.pyt   run_call_back   s    c           C   s   t  j t j d t ƒ d  S(   Ni   (   R   t   parse_options_loop_space_groupst   syst   argvR   (    (    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/examples/tst_phase_o_phrenia.pyt   run   s    t   __main__(   t
   __future__R    t   cctbx.examplesR   t   cctbx.developmentR   R   R   R   R   R    t   __name__(    (    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/examples/tst_phase_o_phrenia.pyt   <module>   s   		