ó
±™xTc           @   st   d  d l  m Z d  d l Z d  d l m Z d  d l Z d Z e j d „ Z	 e
 d k rp e	 d e j d ƒ n  d S(	   iÿÿÿÿ(   t   divisionN(   t   Sorrys¿   phenix.tls_as_xyz:
  Given PDB file with TLS records generate ensemble of models (multi-model PDB
  file) that are consistent with TLS parameters.

How to run:
  phenix.tls_as_xyz model.pdb

c         C   s�   | d d IJ| t  IJ| d d IJt j j d |  ƒ } | j } t | ƒ d k re t d ƒ ‚ n  t j j j	 d | d d d	 d
 | ƒ d  S(   Nt   -iO   t   argsi   s   PDB file must be provided.t   pdb_file_namei    t   n_modelsid   t   log(
   t   legendt   mmtbxt   utilst   process_command_line_argst   pdb_file_namest   lenR   t   tlst
   tls_as_xyzt   run(   R   R   t   inputst
   file_names(    (    sK   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/tls_as_xyz.pyR      s    
	 t   __main__R   i   (   t
   __future__R    t   syst   libtbx.utilsR   t   mmtbx.tls.tls_as_xyzR   R   t   stdoutR   t   __name__t   argv(    (    (    sK   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/command_line/tls_as_xyz.pyt   <module>   s   		