ó
öxTc           @   sI   d  d l  m Z d   Z e d k rE d  d l Z e e j d  n  d S(   i˙˙˙˙(   t   divisionc         C   s  d d l  m } d d l m } | j |   } | j   } | j   } | j   } | j   } | j	   \ } }	 | | | | |  }
 x t
 | |	  D]n } | | } |
 |  } xO t
 t |   D]; } | | } | | } d | d | d | d | f GHqĹ Wq Wd  S(   Ni˙˙˙˙(   t   SweepFactory(   t   ImageToEwaldSpheres   %f %f %f %di    i   i   (   t   dxtbx.sweepR   t   dxtbxR   t   sweept   get_beamt   get_detectort   get_goniometert   get_scant   get_array_ranget   ranget   len(   t   list_of_imagesR   R   R   t   beamt   detectort   goniot   scant   startt   endt   image_to_ewald_spheret   framet	   intensityt   x_listt   kt   xt   i(    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/dxtbx/command_line/to_ewald_sphere.pyt   to_ewald_sphere   s     


t   __main__Ni   (   t
   __future__R    R   t   __name__t   syst   argv(    (    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/dxtbx/command_line/to_ewald_sphere.pyt   <module>   s   	