ó
ª™xTc           @   st   d  d l  m Z d  d l m Z d  d l m Z m Z d  d l m Z m	 Z	 d „  Z
 e d k rp e
 ƒ  d GHn  d S(	   iÿÿÿÿ(   t   division(   t   plan_sad_experiment(   t   approx_equalt   Exception_expected(   t   null_outt   Sorryc          C   s�  d d d d d d g }  t  j d |  d t ƒ  ƒ j t ƒ  ƒ } t | j d	 d
 d d d d d d d d d g ƒ sx t ‚ t d d ƒ j d ƒ d d d d g }  t  j d |  d t ƒ  ƒ } | j	 sË t ‚ t | j d d
 d d d d d  d! d" d# d$ g ƒ st ‚ d d d% d g }  t  j d |  d t ƒ  ƒ } | j	 s@t ‚ d d d d g }  y t  j d |  d t ƒ  ƒ } Wn t
 k
 r„n Xt ‚ d  S(&   Ns   resolution=2.2s   atom_type=Ses   residues=300s   wavelength=0.9794s'   include_weak_anomalous_scattering=Falses   sites=12t   argst   outgš™™™™™@i   gaL�þ.Ï@g   @À@gÇqÇqH@g;ßO�—n’?gQñþÃm±Á?g:‹,ÿê?gdi¸™å§×?g�·É�üÀæ?g˜ôÖ§Ç27@s   tst_plan_sad_experiment.fat   wsß   
>1ZNI:A|PDBID|CHAIN|SEQUENCE
GIVEQCCTSICSLYQLENYCN
>1ZNI:B|PDBID|CHAIN|SEQUENCE
FVNQHLCGSHLVEALYLVCGERGFFYTPKA
>1ZNI:C|PDBID|CHAIN|SEQUENCE
GIVEQCCTSICSLYQLENYCN
>1ZNI:D|PDBID|CHAIN|SEQUENCE
FVNQHLCGSHLVEALYLVCGERGFFYTPKA
s#   seq_file=tst_plan_sad_experiment.fas   atom_type=Ss   resolution=1.2s   wavelength=1.54g333333ó?gŸ!Á1GUà@g    5Íá?g     €[@gü©ñÒMb€?glÖÃl8–º?g�"Öâ?gêÔýïQÒÔ?gHè{xw^ä?gÎH…>@s   resolution=3.0(   R   t   runR   t   showR   t   representative_valuest   AssertionErrort   opent   writet   missed_target_resolutionsR   R   (   R   t   result(    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/scaling/tst_plan_sad_experiment.pyt   exercise   sD    	'	0			0		t   __main__t   OKN(   t
   __future__R    t   mmtbx.command_lineR   t   libtbx.test_utilsR   R   t   libtbx.utilsR   R   R   t   __name__(    (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/mmtbx/scaling/tst_plan_sad_experiment.pyt   <module>   s   	: