ó
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   null_outNc          C   să   d d l  m }  x9 d d d g D]( } t j j |  r  t j |  q  q  Wd } |  j d  |  j d  \ } } | d k s t  |  j	 d d	 t
   } |  j d d	 t
   } | j d
 k rÔ | j d k sÚ t  d GHd  S(   Ni˙˙˙˙(   t   utilss   3qgg.pdbs   3gqq.mtzs   3gqq-sf.cift   3gqqs   3gqq.pdbs   PHENIX.REFINEt   logi   i   t   OK(   t   mmtbx.wwpdbR   t   ost   patht   isfilet   removet   fetch_pdb_datat   get_programt   AssertionErrort   find_data_arraysR   t   filter_pdb_filet   n_semett	   n_unknown(   t   wwpdb_utilst   fnt   pdb_idt   programt   program_fullt   datat   filter(    (    sC   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/wwpdb/tst_utils.pyt   exercise   s     $t   __main__(   t
   __future__R    t   libtbx.utilsR   t   os.pathR   R   t   __name__(    (    (    sC   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/wwpdb/tst_utils.pyt   <module>   s
   	