ó
ö™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 m } x³ |  j d D]¤ } d | GH| j | ƒ } d | j GH| | ƒ } | j ƒ  d j ƒ  } | j ƒ  } | d k  } | j	 | d ƒ } t
 | ƒ } d | GHd | | d | d GHq* Wd  S(	   Niÿÿÿÿ(   t   Registryi   s
   === %s ===s   Using header reader: %si    s   Total Counts: %ds   Average Counts: %.2f(   t   syst   dxtbx.format.RegistryR   t   argvt   findt   __name__t   get_detectort   get_image_sizet   get_raw_datat   set_selectedt   sum(	   R   R   t   argt   format_classt   it
   image_sizet   datat	   selectiont   total(    (    sL   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/dxtbx/command_line/print_total.pyt   print_total   s    		t   __main__N(   t
   __future__R    R   R   (    (    (    sL   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/dxtbx/command_line/print_total.pyt   <module>   s   	