ó
é™xTc           @   sT   d  d l  m Z d  d l Z d  d l m Z d „  Z e d k rP e ƒ  d GHn  d S(   iÿÿÿÿ(   t   divisionN(   t   experimentalc    	      C   sÖ  t  j j d ƒ }  d } d } |  j d t  j j | ƒ g ƒ } | j ƒ  } |  j d t  j j | ƒ g ƒ } | j ƒ  } t j | | d ƒ | j d k s  t ‚ | j	 d k sµ t ‚ t
 | j ƒ d k sÐ t ‚ xÿ| j D]ô} | j d k r/| j d k r| j d	 k st ‚ t
 | j ƒ d
 k s.t ‚ x�| j D]ð } | j d k rz| j t k rq| j d d g k s(t ‚ q8| j d k r¶| j t k r­| j d d g k s(t ‚ q8| j d k rì| j d  k rã| j d  k s(t ‚ q8| j d
 k r8| j d  k r| j d d g k s(t ‚ q8q8WqÚ | j d k rÚ | j d  k r\| j d k sbt ‚ t
 | j ƒ d k s}t ‚ | j d j d k rÅ| j d j t k rÅ| j d j d d g k sÎt ‚ qÚ qÚ Wd  S(   Nsü  
first_prop = 0
  .type = int
second_prop = "default text"
  .type = str
first_scope
  .multiple = True
  .optional = True
{
  key = None
    .type = int
    .optional = False
  number = None
    .type = int
    .optional = False
  text = "Default first scope text"
    .type = str
    .optional = False
  second_scope
    .multiple = True
    .optional = True
  {
    key = None
      .type = int
      .optional = False
    flag = None
      .type = bool
    list = None
      .type = floats(size=2)
  }
}
sE  
first_scope {
  key = 1
  number = 1.0
  text = "First key 1 text"
  second_scope {
    key = 0
    flag = False
  }
  second_scope {
    key = 1
    list = [0, 0]
  }
  second_scope {
    key = 2
  }
}
first_scope {
  key = 2
  text = "First key 2 text"
  second_scope {
    key = 0
    flag = True
    list = [0, 1]
  }
}
sá   
first_prop = 1
first_scope {
  key = 1
  number = 2
  second_scope {
    key = 0
    list = [1, 0]
  }
  second_scope {
    key = 1
    flag = False
    list = [1, 1]
  }
  second_scope {
    key = 4
    list = [0, 2]
  }
}
t   sourcest   keyi   s   default texti   s   Default first scope texti   i    s   First key 2 text(   t   libtbxt   philt   parset   fetcht   extractR   t   merge_params_by_keyt
   first_propt   AssertionErrort   second_propt   lent   first_scopeR   t   numbert   textt   second_scopet   flagt   Falset   listt   Nonet   True(	   t   master_philt   default_strt   overlay_strt   default_philt   default_paramst   overlay_philt   overlay_paramst   fst   ss(    (    sJ   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/libtbx/phil/tst_experimental.pyt   exercise   s>    		!!$--'4$t   __main__t   OK(   t
   __future__R    t   libtbx.philR   R   R    t   __name__(    (    (    sJ   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/libtbx/phil/tst_experimental.pyt   <module>   s   	v