ó
‚™xTc           @   sI   d  d l  m Z d „  Z e d k rE d  d l Z e 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 d d ƒj d |  d d ƒ } d d  l	 } | j
 j d | j d ƒ } | j ƒ  } d d l m } | j d | j ƒ  d | j j ƒ } | j d | j ƒ d d l m }	 d | j j | j j |	 | j d ƒ f GHd d l m }
 d |
 ƒ  GH| j
 j d | j ƒ  ƒ GH| j ƒ  j d t ƒ Gd  S(   Ni    s   --helpiÿÿÿÿ(   t   option_parsert   usages   %s [options] pdb_files   --buffer_layert   actiont   storet   typet   floatt   defaulti   t   argst   nargsi   t	   file_name(   t   uctbxt
   sites_cartt   buffer_layert   new_xyz(   t   show_strings    REMARK %s --buffer-layer=%.6g %s(   t   date_and_times	   REMARK %st   crystal_symmetryt
   append_end(   t   lent   libtbx.option_parserR   t   libtbx.load_envt   envt   dispatcher_namet   optiont   Nonet   processt	   iotbx.pdbt   pdbt   inputR   t   atomst   cctbxR   t;   non_crystallographic_unit_cell_with_the_sites_in_its_centert   extract_xyzt   optionsR   t   set_xyzR   t   libtbx.str_utilsR   t   libtbx.utilsR   t   format_cryst1_recordR   t   construct_hierarchyt   as_pdb_stringt   True(   R   R   t   libtbxt   command_linet   iotbxt   pdb_inpR   R   t   boxR   R   (    (    sX   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/command_line/pdb.box_around_molecule.pyt   run   s8     				t   __main__Ni   (   t
   __future__R    R/   t   __name__t   syst   argv(    (    (    sX   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/command_line/pdb.box_around_molecule.pyt   <module>   s   	