ó
,™xTc           @   sl   d  d l  m Z d  d l Z d  d l m Z d  d l m Z d d „ Z e d k rh e e j	 d ƒ n  d S(	   iÿÿÿÿ(   t   divisionN(   t   reticular_twin_laws(   t   option_parsers   phenix.find_reticular_twin_lawsc         C   s&  t  d | d d d | ƒ j ƒ  j ƒ  j d  d d d d d	 d
 d d d d d ƒj d  d d d d
 d d d d d ƒj d |  ƒ } | j } t |  ƒ d k r¯ | j j	 ƒ  d  S| j
 } | j } | j } d GH| j ƒ  Hd GHd G| GHd G| GHHd GHHd GHt j | | | ƒ } d GHH| j ƒ  d  S(   Nt   usages    [options] t   descriptions   Example: %s data1.mtzs   --max_indext   actiont   storet   destt	   max_indext   defaulti   t   typet   intt   metavart   INTs   --max_deltat	   max_deltag      @t   floatt   FLOATt   argsi    s   ----- Input symmetry -----s
    Settings:s      max_delta: s      max_index: s'   ----- Finding reticular twin laws -----s3  



   Reticular twin laws are grouped by their associated sublattice.
   The matrix M acting on the input (base) lattice is listed, as well as the metric R value (\%)
   between the symmetrized sublattice and the unsymmetrized sublattice.
   reticular twin laws of twin index 1, are 'normal' twin laws


  s0   --------------- Twin law listing ---------------(   R   t   enable_show_defaultst   enable_symmetry_comprehensivet   optiont   Nonet   processt   optionst   lent   parsert	   show_helpR   R   t   symmetryt   show_summaryR   t   show(   R   t   command_namet   command_linet   coR   R   t   xst   tl(    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/command_line/find_reticular_twin_laws.pyt   run   s8    
	!'					
		t   __main__i   (
   t
   __future__R    t   syst   cctbx.sgtbxR   t   iotbx.option_parserR   R#   t   __name__t   argv(    (    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/command_line/find_reticular_twin_laws.pyt   <module>   s   1