ó
±™xTc           @   sœ   d  d l  m Z d  d l m Z d  d l m Z m Z d  d l Z d  d l	 Z	 e j
 j d ƒ Z e	 j d „ Z d „  Z e d k r˜ e e	 j d	 ƒ n  d S(
   iÿÿÿÿ(   t   division(   t   make_header(   t   Usaget   SorryNsQ   
model = None
  .type = path
restraints = None
  .type = path
  .multiple = True
c      	   C   sP  t  |  ƒ d k s d |  k r- t d ƒ ‚ n  d d l m } d d  l } d d  l } d d  l } | j j d |  d t	 d d	 d
 d ƒ } | j
 j ƒ  } t | ƒ | j d | j g | j ƒ } | j d t ƒ } | j j d | d t ƒ }	 | j j d | j ƒ  d | j j d |	 d | ƒ }
 t d d | ƒ|
 j d | d t d d ƒ d  S(   Ni    s   --helps   mmtbx.rigid_bond_test model.pdbiÿÿÿÿ(   t   pdb_interpretationt   argst   master_philt   pdb_file_deft   modelt   cif_file_deft
   restraintst   show_energiest   geometryt   normalizationt   xray_structuret   pdb_hierarchyt   restraints_managert   logs   Rigid-bond testt   outt
   use_id_strt   prefixs     (   t   lenR   t   mmtbx.monomer_libraryR   t   mmtbx.restraintst   mmtbx.modelt
   iotbx.philt   philt   process_command_line_with_filesR   t   workt   extractt   validate_paramst   runR   R
   t   geometry_restraints_managert   Truet   managerR   t   all_chain_proxiesR   R   t   show_rigid_bond_test(   R   R   R   t   mmtbxt   iotbxt   cmdlinet   paramst   processed_pdb_fileR   R   R   (    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/rigid_bond_test.pyR      s:    	
					c         C   s"   |  j  d  k r t d ƒ ‚ n  t S(   Ns   Please specify a PDB file.(   R   t   NoneR   R!   (   R(   (    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/rigid_bond_test.pyR   /   s    t   __main__i   (   t
   __future__R    t   libtbx.str_utilsR   t   libtbx.utilsR   R   t   libtbx.philt   libtbxt   sysR   t   parseR   t   stdoutR   R   t   __name__t   argv(    (    (    sP   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/rigid_bond_test.pyt   <module>   s   			