ó
‚™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Í  d d  l  } | j j d |  d d ƒ } t | j ƒ d k r€ d d l m } d d  l } H| j j	 ƒ  H| d | j
 j ƒ ‚ n  | j d } d d	 l m } d d  l } | j j | ƒ rî d
 G| | ƒ GH| j j d | ƒ } | j ƒ  } nX d G| | ƒ GHd d  l } | j j d t | ƒ j ƒ  j ƒ  ƒ }	 |	 j ƒ  |	 j ƒ  } H| j j	 ƒ  H| j j ƒ  j }
 d G| j ƒ  GHH| j d |
 j  ƒ j! ƒ  j" ƒ  } d d l# m } | j$ d | ƒ } | GHH| j% GHHd  S(   Niÿÿÿÿt   argst   master_stringsC   symmetry_search {
  structure_factor_d_min = 2
    .type = float
}
i   (   t   Usages$   %s pdb_file|poscar_file [parameters]i    (   t   show_strings	   PDB file:t	   file_names   POSCAR file:t   liness
   Unit cell:t   d_min(   t   symmetry_searcht   f_in_p1(&   t
   iotbx.philt   philt   process_command_linet   lent   remaining_argst   libtbx.utilsR   t   libtbx.load_envt   mastert   showt   envt   dispatcher_namet   libtbx.str_utilsR   t	   iotbx.pdbt   pdbt   is_pdb_filet   inputt   xray_structure_simplet   iotbx.poscart   poscart   readert   opent   readt
   splitlinest   make_up_types_if_necessaryt   xray_structuret   workt   extractR   t	   unit_cellt   structure_factorst   structure_factor_d_mint   f_calct   expand_to_p1t   cctbxt   structure_factor_symmetryt   space_group_info(   R   t   iotbxt   pclR   t   libtbxt   inp_fileR   t   pdb_inpt   xsR   t   paramst   fc_p1R   t   sf_symm(    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/command_line/symmetry_search.pyt   run   sJ    	'
	t   __main__NR   i   (   t
   __future__R    R6   t   __name__t   syst   argv(    (    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/command_line/symmetry_search.pyt   <module>   s   	,