ó
,™xTc           @   sL   d  d l  m Z d „  Z e d k rH d  d l Z e d e j d ƒ n  d S(   iÿÿÿÿ(   t   divisionc         C   s&  t  |  ƒ d k r d g }  n  d d l m } d d  l } | d d | j j ƒ j d  d d d	 d
 d ƒj d  d d d	 d
 d ƒj d |  ƒ } | j	 } d d l
 m } | j }  |  d g k rë g  t d d( ƒ D] } t | ƒ ^ qÐ }  n  x4|  D],} | j d | ƒ } | j r"| j ƒ  } n  | j ƒ  | j ƒ  }	 d G|	 j ƒ  GHd G|	 j ƒ  GHd G|	 j ƒ  GHd G|	 j ƒ  GHd G|	 j ƒ  GH|	 j ƒ  d k r§d G|	 j ƒ  GHn  |	 j ƒ  rÈ|	 d d d ƒ }
 n d  }
 d G|
 GHd G| j ƒ  GH| j ƒ  j ƒ  } d Gt  | ƒ GHt  | ƒ d k rDx( | D] } d | j Gd | j GHq Wn  d GH| j  ƒ  } d  t  | j! ƒ GHx  | j! D] } d! | j" ƒ  GHqqWd" GH| j ƒ  j# ƒ  j$ ƒ  } d d# l% m& } | j' t( | ƒ | j) ƒ  ƒ j* d$ t+ d% d! ƒ GH| j, rd& GHx& | j ƒ  D] }
 d' t |
 ƒ GHqWn  Hqò Wd  S()   Ni    s   --helpiÿÿÿÿ(   t   libtbx_option_parsert   usages#   %s [options] space_group_symbol ...s   --primitivet   actiont
   store_truet   helps2   Convert centred space groups to primitive setting.s   --symopss!   Show list of symmetry operations.t   args(   t   sgtbxt   alli   iæ   t   symbols     Crystal system:s     Point group type:s     Laue group type:s      Number of symmetry operations:s     Lattice centering operations:s5     Number of symmetry operations in primitive setting:s     Center of inversion:s5     Dimensionality of continuous allowed origin shifts:s,     Structure-seminvariant vectors and moduli:s       (%2d, %2d, %2d)s   %2ds     Direct-space asymmetric unit:s       Number of faces: %ds       s     ADP constraint matrix:(   t   matrixt   one_row_per_linet   prefixs     List of symmetry operations:s       %siç   (-   t   lent   libtbx.option_parserR   t   libtbx.load_envt   envt   dispatcher_namet   optiont   Nonet   processt   optionst   cctbxR   R   t   xranget   strt   space_group_infot	   primitivet   primitive_settingt   show_summaryt   groupt   crystal_systemt   point_group_typet   laue_group_typet   order_zt   n_ltrt   order_pt
   is_centrict*   number_of_continuous_allowed_origin_shiftst   structure_seminvariantst   vectors_and_modulit   vt   mt   direct_space_asut   cutst   as_xyzt   adp_constraintst   gradient_sum_matrixt   scitbxR
   t   rect   tuplet   focust   mathematica_formt   Truet   symops(   R   R   t   libtbxt   command_linet   coR   t   noR	   t   sgit   grt   st   ssi_vmt   vmt   daut   cutt   _R
   (    (    sQ   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/command_line/space_group_info.pyt   run   sx     						+	
 	!	t   __main__NR   i   (   t
   __future__R    RB   t   __name__t   syst   argv(    (    (    sQ   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/command_line/space_group_info.pyt   <module>   s   	<