ó
ĮxTc           @   sO   d  d l  m Z d  d l m Z d  d l Z d   Z e d k rK e   n  d S(   i’’’’(   t   division(   t   StringIONc          C   sę   d d l  m }  d d l m } d d l m } | d d  \ } } | | d d g } t   } |  j d	 | d
 |  d | j   k s t	  t
 j j d  s¦ t	  | j d  } | j j d j   j   d k sŻ t	  d GHd  S(   Ni’’’’(   t   compute_map_coefficients(   t   generate_cd_cl_inputs(   t   file_readert	   file_baset   tst_map_coeffs_simples   map_type=anom_residuals   skip_twin_detection=Truet   argst   outs(   Using wavelength = 1.116 from PDB headers'   tst_map_coeffs_simple_anom_residual.mtzi    s   ANOM_DIFF,PHANOM_DIFFt   OK(   t   mmtbx.command_lineR   t)   mmtbx.regression.make_fake_anomalous_dataR   t   iotbxR   R   t   runt   getvaluet   AssertionErrort   ost   patht   isfilet   any_filet   file_servert   miller_arrayst   infot   label_string(   R   R   R   t   mtz_filet   pdb_fileR   R   t   mtz_in(    (    sT   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/regression/tst_map_coeffs_simple.pyt   exercise   s    			t   __main__(   t
   __future__R    t	   cStringIOR   R   R   t   __name__(    (    (    sT   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/regression/tst_map_coeffs_simple.pyt   <module>   s
   	