ó
ĽxTc           @   so   d  d l  m Z d  d l m Z d  d l m Z d  d l Z e j d  Z e	 d k rk e e j
 d  n  d S(   i˙˙˙˙(   t   division(   t   pdb_interpretation(   t
   restraintsNc      	   C   sŽ   t  j d |  d t d |  } | j   } | d  k rI t d d   n  | j d t  } | j } | j	 } t
 j d | j	 d | d	 | d
 t  } | j d | d d  d  S(   Nt   argst6   substitute_non_crystallographic_unit_cell_if_necessaryt   logs8   Could not calculate X-ray structure from this PDB file. sD   This is probably due to missing symmetry information (CRYST1 record.t   show_energiest   pdb_hierarchyt   xray_structuret   geometry_restraints_managert	   ignore_hdt   outt   prefixs     (   R   t   runt   TrueR   t   Nonet   SorryR	   t   Falset   all_chain_proxiesR   R   t   combinedt   show(   R   R   t   processed_pdb_fileR   t   geometryt   chain_proxiesR   t   result(    (    sX   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/validation/regression/run_restraints.pyR      s$    									t   __main__i   (   t
   __future__R    t   mmtbx.monomer_libraryR   t   mmtbx.validationR   t   syst   stdoutR   t   __name__t   argv(    (    (    sX   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/validation/regression/run_restraints.pyt   <module>   s   