ó
ö™xTc           @   sr   d  d l  m Z d „  Z e d k rn d  d l Z e e j ƒ d k rZ e e j d ƒ qn e e j d ƒ n  d S(   iÿÿÿÿ(   t   divisionc         C   s.  d d l  m } | j |  ƒ } x| D] } | j ƒ  GH| j ƒ  GH| j ƒ  GH| j ƒ  GHd GHd d l m } | j ƒ  d } | j ƒ  } | j	 | j
 ƒ  ƒ } | j	 | j ƒ  ƒ } | j	 | j ƒ  ƒ } | j	 | j ƒ  ƒ }	 | j | ƒ }
 | | j |	 ƒ |	 } d | j | ƒ | j | ƒ f GHq& Wd  S(   Niÿÿÿÿ(   t   ImageSetFactorys   Derived quantities:(   t   matrixi    s+       beam centre (mm, fast, slow): %.2f %.2f(   t   dxtbx.imagesetR   t   newt   get_detectort   get_beamt   get_goniometert   get_scant   scitbxR   t   colt
   get_origint   get_fast_axist   get_slow_axist   get_directiont   crosst   dot(   t   list_of_imagesR   t   sweepst   sR   t   dt   bt   ot   ft   s0t   nt   beam_offset(    (    sL   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/dxtbx/command_line/print_sweep.pyt   print_sweep   s&    t   __main__Ni   i   (   t
   __future__R    R   t   __name__t   syst   lent   argv(    (    (    sL   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/dxtbx/command_line/print_sweep.pyt   <module>   s   	