ó
xxTc           @   s3   d  d l  m Z d   Z e d k r/ e   n  d S(   i˙˙˙˙(   t   divisionc          C   sĵ   d d  l  }  d d  l } |  j j d d  } | s< d GHd  Sd d  l } | j j | j j | d   } | j	   t
 | j    } | j   } | | j   | j   k s³ t  d GHd  S(   Ni˙˙˙˙t   relative_paths#   bpcx_regression/use_case_xds_methods-   bpcx_regression not configured, skipping tests   thau2_O0_K0_P0_1_0001.cbft   OK(   t   libtbx.load_envt   ost   envt   find_in_repositoriest   iotbx.detectorst	   detectorst   ImageFactoryt   patht   joint   readt   lent   get_raw_datat   get_flex_imaget   size1t   size2t   AssertionError(   t   libtbxR   t   image_directoryt   iotbxt   ft   lengtht   fi(    (    sK   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/detectors/tst_detectors.pyt   tst_detectors   s    		
"t   __main__N(   t
   __future__R    R   t   __name__(    (    (    sK   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/detectors/tst_detectors.pyt   <module>   s   	