ó
†™xTc           @   sT   d  d l  m Z d  d l m Z d  d l Z d „  Z e d k rP e ƒ  d GHn  d S(   iÿÿÿÿ(   t   division(   t	   show_diffNc       
   C   s²  d d l  m }  d d l m } d } d } d } t | d ƒ j | ƒ |  j | ƒ } | j d d	 d
 d ƒ } | j d | d t	 ƒ } | j
 d | d | j d | j ƒ t | ƒ j ƒ  } t | | ƒ sÑ t ‚ | j d | ƒ }	 |	 j ƒ  j | j ƒ  ƒ st ‚ |	 j ƒ  d d k s t ‚ d }
 d } d } t | d ƒ j |
 ƒ |  j | ƒ } t j d t ƒ �C } | j ƒ  } t | ƒ d k s�t ‚ t | ƒ d k s¨t ‚ Wd  QXd  S(   Niÿÿÿÿ(   t   no_merge_original_index(   t   crystals¡      2 P 1 21 1
  1  0  0  0  1  0  0  0  1
  0  0  0
 -1  0  0  0  1  0  0  0 -1
  0  6  0
  44   0 -25 -44   0  25   316 0 0  2    91.7   108.2
 -44   1  11 -44   1  11    35 1 0  1   110.2   112.9
 -44  -1  11 -44   1  11    34 2 0  2    28.7   115.0
 -44   1  12 -44   1  12    34 1 0  1   129.1   116.3
 -44  -1  12 -44   1  12    33 2 0  2   133.1   118.2
 -44   1  14 -44   1  14    31 1 0  1   159.7   116.1
 -44  -1  14 -44   1  14    30 2 0  2   136.8    90.9
 -44   1  15 -44   1  15    30 1 0  1   106.4    85.8
 -44  -1  15 -44   1  15    29 2 0  2    39.1    87.4
 -44   1  17 -44   1  17    27 1 0  1   115.9    87.0
 -44  -1  17 -44   1  17    26 2 0  2   138.1    89.8
 -44  -1  18 -44   1  18    25 2 0  2    10.3    84.4
 -38   2  53 -38   2  53   212 1 0  1   246.7   141.4
  38  -2 -53 -38   2  53   272 2 0  1     6.1   157.7
  38   2 -53 -38   2  53   272 1 0  2   322.5   159.5
  38  -2 -54 -38   2  54   271 2 0  1   -68.4   152.1
  38   2 -54 -38   2  54   271 1 0  2   211.0   153.3
  38  -2 -55 -38   2  55   270 2 0  1    78.6   153.6
  38   2 -55 -38   2  55   270 1 0  2   220.4   157.0
  38  -2 -56 -38   2  56   269 2 0  1   -25.5   148.6
  38   2 -56 -38   2  56   269 1 0  2   -55.1   143.6
  38   2 -57 -38   2  57   268 1 0  2   -32.3    89.2
  38  -2 -57 -38   2  57   268 2 0  1  -265.7   138.8
  38   2 -58 -38   2  58   267 1 0  2    69.6    92.7
  38  -2 -58 -38   2  58   267 2 0  1  -153.1   132.2
s!   tst_scalepack_unmerged_writer.scas%   tst_scalepack_unmerged_writer_out.scat   wt   space_group_symbolt   P21t	   unit_cellgœÄ °r8T@gÅ °rhÁI@gZd;ß«a@g     €V@gƒÀÊ¡¥Z@t   crystal_symmetryt   merge_equivalentst	   file_namet   batch_numberst   spindle_flagsi    i<  s     24 f4132
  1  0  0  0  1  0  0  0  1
  0  0  0
  0  0  1  1  0  0  0  1  0
  0  0  0
  0  1  0  0  0  1  1  0  0
  0  0  0
 -1  0  0  0  0 -1  0 -1  0
  9  9  9
  0 -1  0 -1  0  0  0  0 -1
  9  9  9
  0  0 -1  0 -1  0 -1  0  0
  9  9  9
  1  0  0  0 -1  0  0  0 -1
  6  6  0
  0  0  1 -1  0  0  0 -1  0
  6  6  0
  0  1  0  0  0 -1 -1  0  0
  6  6  0
 -1  0  0  0  0  1  0  1  0
  3  9  3
  0 -1  0  1  0  0  0  0  1
  3  9  3
  0  0 -1  0  1  0  1  0  0
  3  9  3
 -1  0  0  0  1  0  0  0 -1
  0  6  6
  0  0 -1  1  0  0  0 -1  0
  0  6  6
  0 -1  0  0  0  1 -1  0  0
  0  6  6
  1  0  0  0  0 -1  0  1  0
  3  3  9
  0  1  0 -1  0  0  0  0  1
  3  3  9
  0  0  1  0 -1  0  1  0  0
  3  3  9
 -1  0  0  0 -1  0  0  0  1
  6  0  6
  0  0 -1 -1  0  0  0  1  0
  6  0  6
  0 -1  0  0  0 -1  1  0  0
  6  0  6
  1  0  0  0  0  1  0 -1  0
  9  3  3
  0  1  0  1  0  0  0  0 -1
  9  3  3
  0  0  1  0  1  0 -1  0  0
  9  3  3
  -2  -2  -2   2   2   2   658 0 0  4  3624.3   344.2
  -2  -2   2   2   2   2   582 0 0  8  3220.1   344.8
   2   2  -2   2   2   2   579 0 1 12  3376.5   344.3
   1   3   1   3   1   1   320 0 0  3   544.3    55.1
   1   3   1   3   1   1   677 0 1  3   476.8    53.8
  -3  -1  -1   3   1   1   217 0 1  4   588.2    53.9
  -3  -1  -1   3   1   1   579 0 0  4   552.4    53.9
s"   tst_scalepack_unmerged_writer2.scas&   tst_scalepack_unmerged_writer2_out.scat   recordi   s   F 41 3 2(   gœÄ °r8T@gÅ °rhÁI@gZd;ß«a@g     €V@gƒÀÊ¡¥Z@g     €V@(   t   iotbx.scalepackR   t   cctbxR   t   opent   writet   readert   symmetryt   as_miller_arrayt   Falset   export_as_scalepack_unmergedR   R   t   readR   t   AssertionErrort   batch_as_miller_arrayt   indicest   all_eqt   datat   warningst   catch_warningst   Truet   space_group_infot   lent   str(   R   R   t   sca_rawt   hkl_int   hkl_outR   t   symmt   i_obst   sca_recycledt   batchest   sca_badR   R    (    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/scalepack/tst_no_merge_original_index.pyt   exercise   s>    #						
!;t   __main__t   OK(   t
   __future__R    t   libtbx.test_utilsR   R   R+   t   __name__(    (    (    sY   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/iotbx/scalepack/tst_no_merge_original_index.pyt   <module>   s   	}