ó
�™xTc           @   sŠ   d  d l  m Z d  d l Z d  d l m Z m Z d  d l m Z d  d l	 m
 Z
 d  d l m Z d „  Z e d k r† e ƒ  d	 GHn  d S(
   iÿÿÿÿ(   t   divisionN(   t   sgtbxt   uctbx(   t   Exception_expected(   t   Sorry(   t   StringIOc          C   sŒ  t  j j d t ƒ }  |  j d d d t j d ƒ d t j d ƒ ƒ \ } } |  j	 ƒ  d k sc t
 ‚ |  j d d	 d t j d
 ƒ d t j d ƒ ƒ \ } } | p¢ | s¬ t
 ‚ |  j d d d t j d ƒ d t j d ƒ ƒ \ } } | | f t t f k s t
 ‚ |  j	 ƒ  d k st
 ‚ |  j d d d t j d ƒ d t j d ƒ ƒ \ } } | pW| sat
 ‚ |  j d d d d  d d  ƒ \ } } | pŽ| s˜t
 ‚ |  j	 ƒ  d k s°t
 ‚ |  j d ƒ sÅt
 ‚ |  j ƒ  } | j d d d  d! g k sòt
 ‚ | j d" d# d$ d% g k st
 ‚ |  j d d ƒ y |  j d d d t ƒ Wn t k
 rPn Xt ‚ t ƒ  } |  j d | ƒ | j ƒ  d k sˆt
 ‚ d  S(&   Nt   prefer_pdb_space_groupt	   file_names   data.mtzt   space_groupt   P222t	   unit_cells   50 60 70 90 90 90s   P 2 2 2s	   model.pdbt   P212121s   reference_model.pdbt   P63s   40 40 75 90 90 120s
   P 21 21 21s   data_neutron.mtzs   50.1 60 70.1 90 90 90s   data_rfree.hkls   phenix.refines   P 63s   (50, 60, 70, 90, 90, 90)s   (40, 40, 75, 90, 90, 120)s   (50.1, 60, 70.1, 90, 90, 90)t   program_namet   raise_error_if_incompletet   outsß   model.pdb: (50, 60, 70, 90, 90, 90) P 21 21 21
reference_model.pdb: (40, 40, 75, 90, 90, 120) P 63
data.mtz: (50, 60, 70, 90, 90, 90) P 2 2 2
data_neutron.mtz: (50.1, 60, 70.1, 90, 90, 90) P 2 2 2
data_rfree.hkl: None None
(   s   P 2 2 2s   50 60 70 90 90 90(   s
   P 21 21 21s   50 60 70 90 90 90(   s
   P 21 21 21s   50 60 70 90 90 90(   s	   model.pdbs
   P 21 21 21(   s   reference_model.pdbs   P 63(   s   data.mtzs   P 2 2 2(   s   data_neutron.mtzs   P 2 2 2(   s	   model.pdbs   (50, 60, 70, 90, 90, 90)(   s   reference_model.pdbs   (40, 40, 75, 90, 90, 120)(   s   data.mtzs   (50, 60, 70, 90, 90, 90)(   s   data_neutron.mtzs   (50.1, 60, 70.1, 90, 90, 90)(   t   iotbxt   symmetryt   managert   Truet   add_reflections_fileR   t   space_group_infoR   R
   t   get_current_as_stringst   AssertionErrort   add_pdb_filet   Nonet   check_cell_compatibilityt   get_symmetry_choicest   space_group_filest   unit_cell_filest   set_current_as_stringsR   R   R   t   showt   getvalue(   t   mt   uc_mismatcht   sg_mismatcht   symm_choicesR   (    (    sK   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/regression/tst_symmetry.pyt   exercise	   sd    									t   __main__t   OK(   t
   __future__R    t   iotbx.symmetryR   t   cctbxR   R   t   libtbx.test_utilsR   t   libtbx.utilsR   t	   cStringIOR   R%   t   __name__(    (    (    sK   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/regression/tst_symmetry.pyt   <module>   s   	: