ó
€™xTc           @   s}   d  d l  m Z d  d l Z d e j f d „  ƒ  YZ e d k ry d  d l Z e ƒ  Z e j e j d ƒ e j	 ƒ  Z
 n  d S(   iÿÿÿÿ(   t   divisionNt   readerc           B   s    e  Z d  Z d „  Z d „  Z RS(   s/   A class to read the BLANK.CBF files used in XDSc         C   s   t  j j |  ƒ d  S(   N(   t   xds_cbfR   t   __init__(   t   self(    (    sA   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/xds/blank_cbf.pyR      s    c         C   s   d d l  } t j j |  ƒ S(   s(   Get the dark current array from the fileiÿÿÿÿN(   t   numpyR   R   t   get_data(   R   R   (    (    sA   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/xds/blank_cbf.pyR      s    (   t   __name__t
   __module__t   __doc__R   R   (    (    (    sA   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/xds/blank_cbf.pyR      s   	t   __main__i   (   t
   __future__R    R   R   R   t   syst   handlet	   read_filet   argvR   t   image(    (    (    sA   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/xds/blank_cbf.pyt   <module>	   s   	