ó
�™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 Z d „  Z e d k r} e ƒ  n  d S(   iÿÿÿÿ(   t   divisionN(   t	   show_difft   Exception_expected(   t   Sorry(   t   Autoc          C   sÏ  t  j j d d ƒ }  t |  j |  j ƒ  ƒ j ƒ  d ƒ s@ t ‚ t  j j d d ƒ } t |  j d | ƒ j	 ƒ  j ƒ  d ƒ sƒ t ‚ t  j j d d ƒ } t |  j d | ƒ j	 ƒ  j ƒ  d ƒ sÆ t ‚ t  j j d d	 ƒ }  t  j j d d
 ƒ } t |  j d | ƒ j ƒ  d ƒ st ‚ t  j j d d ƒ } t |  j d | ƒ j ƒ  d ƒ sUt ‚ t  j j d d ƒ } t |  j d | ƒ j ƒ  d ƒ s’t ‚ t  j j d d ƒ }  |  j
 ƒ  } t | j d ƒ j ƒ  d ƒ sØt ‚ t  j j d d ƒ } |  j | ƒ } t | j ƒ  d ƒ st ‚ | j ƒ  } t | j ƒ d k s?t ‚ | j d d k sXt ‚ | j d d k sqt ‚ t  j j d d g d d ƒ } t t | j j ƒ  j ƒ d ƒ s·t ‚ d } t d  d! ƒ j d" ƒ t  j j d d  d# g d$ | d% d& ƒ } | j d' ƒ d k st ‚ | j d( ƒ d k s0t ‚ | j j ƒ  } | j | j ƒ }	 |	 d  k	 sct ‚ | j t j j t j ƒ  d  ƒ k s�t ‚ | j sœt ‚ | j | j d) d' ƒ}
 d* } t  j j d d+ d, d- g d$ | d. d/ d0 d1 d2 d3 ƒ } | j j ƒ  } | j d+ k st ‚ | j  d4 k s)t ‚ | j! d5 k s>t ‚ t d6 d! ƒ j d7 ƒ d8 } t  j j d d6 d9 d: g d$ | d; d< d= d> d? d@ ƒ } | j j ƒ  } t | j" ƒ dA k sºt ‚ t | j# ƒ dB k sÕt ‚ dC dD l$ m% } y. | | j& d) d( ƒ} | j' j( d j) ƒ  GHWn+ t* k
 r@} dE t | ƒ k sGt ‚ n Xt+ ‚ t  j j d dF g d$ | d; d< ƒ } | j j ƒ  } | j& dF k s�t ‚ | | j& d) d( ƒ} | j' j( d } | j, ƒ  sÆt ‚ dG GHd  S(H   Nt   input_stringsª   u=10,12 13 80,90 100
  .type=unit_cell
s=19
  .type=space_group
U=None
  .type=unit_cell
S=None
  .type=space_group
ua=Auto
  .type=unit_cell
sa=Auto
  .type=space_group
sN   u = 10 12 13 80 90 100
s = "P 21 21 21"
U = None
S = None
ua = Auto
sa = Auto
s7   ua = None
s = Auto
U = 1,2,3
u = Auto
S = 33
sa = None
t   sourcesH   u = Auto
s = Auto
U = 1 2 3 90 90 90
S = "P n a 21"
ua = None
sa = None
u   U = 1 2 3 90 105 90
S = P21
s_   u = 10 12 13 80 90 100
s = "P 21 21 21"
U = 1 2 3 90 105 90
S = "P 1 21 1"
ua = Auto
sa = Auto
s,   s=None
  .type=space_group
  .multiple=True
s   s=p212121
s=19
s   s = 19
s   s=19
s=p212121
s   s = p212121
s   s=18
s=p212121
s   s = 18
s = p212121
s7   sel = None
  .type = atom_selection
  .multiple = True
s   sel=altloc  ' ' or  name C\* s   sel = altloc ' ' or name C\*
s<   sel = "altloc ' ' or name C\*"
sel = altloc ' ' or name D\*
s=   sel = "altloc ' ' or name C\\*"
sel = altloc ' ' or name D\*
i   i    s   altloc ' ' or name C\*i   s   altloc ' ' or name D\*t   argss   s = 230t   master_strings   s=None
  .type=space_group
s   I a -3 dsL   
model = None
  .type = path
use_geometry_restraints = False
  .type = bool
s	   model.pdbt   wsC   ATOM      1  O   HOH     1      53.448  18.599 -10.134  1.00 20.00
s   --use_geometry_restraintst   master_phil_stringt   pdb_file_deft   modelt   pdbt   hklt
   force_typesX   
data_dir = None
  .type = path
d_min = None
  .type = float
nproc = None
  .type = int
t   /s   3.0t   5t   directory_deft   data_dirt   integer_deft   nproct	   float_deft   d_ming      @i   s   tst_iotbx_phil.hkls¤      1   2  -1  -23.34    4.56   1
   2  -3   9   12.45    6.12   2
99999999999999999.9999999.999999
-999-999-999-9999.99-9999.99-999
   0   0   0    0.00    0.00   0sj   
data = None
  .type = path
space_group = None
  .type = space_group
unit_cell = None
  .type = unit_cell
t   P6122s   50,50,40,90,90,120t   reflection_file_deft   datat   space_group_deft   space_groupt   unit_cell_deft	   unit_cells   P 61 2 2s   (50, 50, 40, 90, 90, 120)iÿÿÿÿ(   t   any_files(   Unresolved amplitude/intensity ambiguitys   tst_iotbx_phil.hkl=hklf3t   OK(-   t   iotbxt   philt   parseR   t   formatt   extractt   as_strt   AssertionErrort   fetcht   extract_formatt!   command_line_argument_interpretert   processt   lent   selt   process_command_linet   strt   workt   st   opent   writet   process_command_line_with_filest   get_file_type_countt   get_cached_fileR   t   Nonet   ost   patht   joint   getcwdt   use_geometry_restraintst   get_fileR   R   R   R   R   t   iotbx.file_readerR   R   t   file_servert   miller_arrayst   is_xray_intensity_arrayR   R   t   is_xray_amplitude_array(   t   mastert   customt   clait   userR0   t   ext   pclt   master_phil_strt   paramst   pdb_int   model_inR   t   hkl_inR1   t   ma(    (    sG   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/regression/tst_phil.pyt   exercise   sÎ    											(	*					t   __main__(   t
   __future__R    t
   iotbx.philR!   t   libtbx.test_utilsR   R   t   libtbx.utilsR   t   libtbxR   R8   RO   t   __name__(    (    (    sG   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/regression/tst_phil.pyt   <module>   s   	Ç