ó
jˆú\c           @@ s¨  d  d l  m Z d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m Z m Z m	 Z	 m
 Z
 d  d l m Z d  d l m Z d  d l m Z d  d l m Z d  d	 l m Z d  d
 l m Z d e j e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ  d e f d  „  ƒ  YZ! d! e f d" „  ƒ  YZ" e j# e j$ d# ƒ d$ e f d% „  ƒ  Yƒ Z% e j# e j& d& ƒ d' e f d( „  ƒ  Yƒ Z' d) e f d* „  ƒ  YZ( d+ e f d, „  ƒ  YZ) e j# e j& d& ƒ d- e f d. „  ƒ  Yƒ Z* d/ e f d0 „  ƒ  YZ+ d1 e f d2 „  ƒ  YZ, d3 e f d4 „  ƒ  YZ- d5 e f d6 „  ƒ  YZ. d7 e f d8 „  ƒ  YZ/ d9 e f d: „  ƒ  YZ0 d; e f d< „  ƒ  YZ1 d= e f d> „  ƒ  YZ2 d? e f d@ „  ƒ  YZ3 dA e f dB „  ƒ  YZ4 dC e f dD „  ƒ  YZ5 dE e f dF „  ƒ  YZ6 dG e f dH „  ƒ  YZ7 dI e f dJ „  ƒ  YZ8 dK e f dL „  ƒ  YZ9 dM e f dN „  ƒ  YZ: e j# e j& d& ƒ dO e f dP „  ƒ  Yƒ Z; e j# e j& d& ƒ dQ e f dR „  ƒ  Yƒ Z< e j# e j$ d# ƒ dS e f dT „  ƒ  Yƒ Z= e j# e j$ d# ƒ dU e f dV „  ƒ  Yƒ Z> e j# e j? dW ƒ dX e f dY „  ƒ  Yƒ Z@ e j# e j? dW ƒ dZ e f d[ „  ƒ  Yƒ ZA d\ e f d] „  ƒ  YZB d^ e f d_ „  ƒ  YZC d` e f da „  ƒ  YZD db e f dc „  ƒ  YZE dd e f de „  ƒ  YZF df e f dg „  ƒ  YZG dh e f di „  ƒ  YZH dj e j e f dk „  ƒ  YZI dl e j e f dm „  ƒ  YZJ dn e j e f do „  ƒ  YZK dp eK f dq „  ƒ  YZL dr eK f ds „  ƒ  YZM dt e j e f du „  ƒ  YZN dv eN f dw „  ƒ  YZO dx eN f dy „  ƒ  YZP dz eN f d{ „  ƒ  YZQ d| eN f d} „  ƒ  YZR d~ eN f d „  ƒ  YZS d€ eN f d „  ƒ  YZT d‚ eN f dƒ „  ƒ  YZU d„ eN f d… „  ƒ  YZV d† eN f d‡ „  ƒ  YZW dˆ eN f d‰ „  ƒ  YZX dŠ eN f d‹ „  ƒ  YZY dŒ eN f d „  ƒ  YZZ dŽ e j e f d „  ƒ  YZ[ d e[ f d‘ „  ƒ  YZ\ d’ e[ f d“ „  ƒ  YZ] d” e j e f d• „  ƒ  YZ^ d– e^ f d— „  ƒ  YZ_ d˜ e^ f d™ „  ƒ  YZ` dš e j e f d› „  ƒ  YZa dœ e j e f d „  ƒ  YZb dž eb f dŸ „  ƒ  YZc d  eb f d¡ „  ƒ  YZd d¢ e j e f d£ „  ƒ  YZe d¤ e j e f d¥ „  ƒ  YZf d¦ „  Zg eh d§ k r¤e ji e jj ƒ e jk ƒ  e jl d¨ d© ƒ n  d S(ª   i    (   t   print_function(   t   absolute_importN(   t	   Int16Atomt	   Int32Atomt   Float64Atomt
   StringAtom(   t
   byteorders(   t   common(   t   allequal(   t   unittest(   t   PyTablesTestCase(   t   ranget   BasicTestCasec           B@ sÂ   e  Z d Z d  Z d Z d Z d Z d Z d Z	 d Z
 d Z d Z d Z d Z d Z d Z d Z d Z d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   t   numpyt   int32i   i    i
   i   i   t   zlibc         C@ sI   t  t |  ƒ j ƒ  |  j j |  _ |  j ƒ  |  j rE |  j j ƒ  n  d  S(   N(	   t   superR   t   setUpt   h5filet   roott	   rootgroupt   populateFilet   reopent   close(   t   self(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   '   s
    
	c   	      C@ s~  |  j  } |  j } | d  k rZ |  j d k rB t d |  j ƒ } q` t j j |  j ƒ } n d  } |  j	 j
 } t j d |  j d |  j d |  j d |  j ƒ } |  j j | d d | d	 |  j d
 | d | d d d | ƒ} |  j | _ t | j ƒ |  _ | d  k	 rd |  j d <n  |  j |  _ x/ |  j D]$ } | d k r(|  j | 9_ q(q(W| j |  _ |  j |  j 9_ |  j |  j | j <|  j d k rÅt j d d |  j d	 |  j d d | j j ƒ } n- t j |  j d | j j j ƒ} |  j | _ t  j! r0|  j d k rt" d | ƒ q0t" d t# | ƒ ƒ n  xG t$ |  j% ƒ D]6 } |  j d k re| j& | ƒ q@| j& | | ƒ q@Wd  S(   Nt   stringt   itemsizet	   complevelt   complibt   shufflet
   fletcher32t   earray1t   atomt   shapet   titlet   filterst   expectedrowsi   t   obji    t   buffert   at   dtypes   S%sR   s   Object to append -->('   R   R%   t   Nonet   typeR   t   lengtht   tablest   Atomt	   from_typet	   __class__t   __name__t   Filterst   compressR   R   R   R   t   create_earrayR!   t   flavort   listt   rowshapet   objsizet   extdimt	   chunksizeR   t   ndarrayR    R   t   arangeR(   t   baseR   t   verboset   printt   reprR   t   nappendst   append(	   R   t   groupR%   R    R"   R#   t   earrayt   it   object(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   1   sR    					!	c         C@ s4   |  j  d  k	 r |  j  } n t j |  j ƒ j  } | S(   N(   R!   R)   R   t   asarrayR%   (   R   R!   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt
   _get_shapee   s    c         C@ s
  |  j  r |  j ƒ  n  |  j j d ƒ } |  j ƒ  } t | ƒ } |  j |  j | |  j <|  j	 d  k	 r… | |  j c t |  j	 ƒ 7<n  t | ƒ } |  j | j |  j ƒ |  j | j | ƒ |  j | j t | ƒ ƒ |  j | j | |  j ƒ |  j | j j |  j ƒ d  S(   Ns   /earray1(   R   t   _reopenR   t   get_nodeRG   R5   R9   R@   R8   R%   R)   t   lent   tuplet   assertEqualR4   R!   t   ndimt   nrowsR    R*   (   R   R%   R!   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test00_attributesm   s    	c         C@ s‰  t  j r1 t d d d ƒ t d |  j j ƒ n  |  j rG |  j ƒ  n  |  j j d ƒ } d | _	 t  j r¡ t d t
 | ƒ ƒ t d | j ƒ t d	 |  j ƒ n  |  j d
 k rå t j d d |  j d |  j d d | j j ƒ } n- t j |  j d | j j j ƒ} |  j | _ | j | j d ƒ } |  j d k	 rHt |  j ƒ } n d } |  j ƒ  } x(t | ƒ D]\ } } | | k  r±|  j t | t j |  j | ƒ |  j  ƒ ƒ qgn  t! | j" | |  j# ƒ } | d k r|  j d
 k rï| } qt! | j" | ƒ }	 | |	 |  j# } n  | | }
 t  j rŠd rŠt d | j" ƒ t$ |
 d ƒ rat d |
 j ƒ n  t d t
 | ƒ ƒ t d t
 |
 ƒ ƒ n  |  j% | |  j& |  j# | j' ƒ |  j t | |
 |  j  ƒ ƒ t$ | d ƒ rü|  j% t | j ƒ t | ƒ d ƒ n |  j% t | ƒ d ƒ |  j( | j) j* k r_t  j r_t d |  j j ƒ t d |  j( | j) j* ƒ n  |  j% | j) j* |  j( ƒ |  j( d k rµt+ j, |  j- ƒ rµ|  j% | j) j- |  j- ƒ n  |  j. | j) j. k rt  j rt d |  j j ƒ t d |  j. | j) j. ƒ n  |  j% |  j. | j) j. ƒ |  j/ | j) j/ k rht  j rht d |  j j ƒ t d |  j/ | j) j/ ƒ n  |  j% |  j/ | j) j/ ƒ qgWd S(   s$   Checking enlargeable array iterator.s   
s   -=i   s   Running %s.test01_iterEArray...s   /earray1i   s   EArray descr:s   shape of read array ==>s   reopening?:R   R&   R'   R!   R(   s   S%si    s   number of row ==>s   shape should look as:s   row in earray ==>s   Should look like ==>i   s   Error in compress. Class:s   self, earray:s   Error in shuffle. Class:s   Error in fletcher32. Class:N(0   R   R=   R>   R/   R0   R   RH   R   RI   t
   nrowsinbufR?   R!   R*   R   R:   R7   R6   R    R   R;   R(   R<   t   swapaxesR8   R%   R)   RJ   RG   t	   enumeratet
   assertTrueR   RF   R4   t   intt   nrowR9   t   hasattrRL   R@   RN   R2   R#   R   R,   t   which_lib_versionR   R   R   (   R   RC   t   object_t   initialrowsR!   t   idxt   rowt   chunkt   object__RD   RE   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01_iterEArray   sz    					!&	

&!c         C@ sD  t  j r1 t d d d ƒ t d |  j j ƒ n  |  j rG |  j ƒ  n  |  j j d ƒ } d | _	 t  j r¡ t d t
 | ƒ ƒ t d | j ƒ t d	 |  j ƒ n  |  j d
 k rå t j d d |  j d |  j d d | j j ƒ } n- t j |  j d | j j j ƒ} |  j | _ | j | j d ƒ } |  j d k	 rHt |  j ƒ } n d } |  j ƒ  } xãt | j d |  j d |  j d |  j  ƒ ƒ D]´\ } } | | k  rÒ|  j! t" | t j# |  j | ƒ |  j$ ƒ ƒ qˆn  |  j% d k rêd } n t& | j' | |  j% ƒ } |  j d
 k r| } n$ t& | j' | ƒ }	 | |	 |  j% } | | }
 t  j r´d r´t d | j' ƒ t( |
 d ƒ r‹t d |
 j ƒ n  t d t
 | ƒ ƒ t d t
 |
 ƒ ƒ n  |  j) | |  j* |  j% | j+ ƒ |  j! t" | |
 |  j$ ƒ ƒ t( | d ƒ r&|  j) t | j ƒ t | ƒ d ƒ qˆ|  j) t | ƒ d ƒ qˆWd S(   s<   Checking enlargeable array iterator with (start, stop, step)s   
s   -=i   s   Running %s.test02_sssEArray...s   /earray1i   s   EArray descr:s   shape of read array ==>s   reopening?:R   R&   R'   R!   R(   s   S%si    t   startt   stopt   stepi   s   number of row ==>s   shape should look as:s   row in earray ==>s   Should look like ==>N(,   R   R=   R>   R/   R0   R   RH   R   RI   RP   R?   R!   R*   R   R:   R7   R6   R    R   R;   R(   R<   RQ   R8   R%   R)   RJ   RG   RR   t   iterrowsR_   R`   Ra   RS   R   RF   R4   R9   RT   RU   RV   RL   R@   RN   (   R   RC   RX   RY   R!   RZ   R[   t   indexR]   RD   RE   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02_sssEArrayÕ   sb    					!	&		

&c         C@ s  t  j r1 t d d d ƒ t d |  j j ƒ n  |  j d k	 rU t |  j ƒ |  _ n  |  j d k	 ry t |  j ƒ |  _ n  |  j	 d k	 r t |  j	 ƒ |  _	 n  |  j
 r³ |  j ƒ  n  |  j j d ƒ } d | _ t  j rt d t | ƒ ƒ t d | j ƒ t d	 |  j
 ƒ n  |  j d
 k rQt j d d |  j d |  j d d | j j ƒ } n- t j |  j d | j j j ƒ} |  j | _ | j | j d ƒ } |  j d k	 r´t |  j ƒ } n d } |  j } | |  j c |  j | 9<|  j d
 k rt j  d | d d | j j ƒ } n t j  d | d |  j ƒ } | j d |  j ƒ } | rZ|  j | d | +n  xf t! |  j ƒ D]U } | | |  j" } |  j d
 k r§| | | | |  j" +qj| | | | | |  j" +qjW|  j } |  j r~|  j d k r|  j d k rÿ| j# } q|  j d } n  | |  j | k  r2| |  j } n  | |  j |  j |  j	 … j$ ƒ  }	 |  j% d k rœ|	 j d |  j ƒ }	 qœn t j  d |  j d |  j ƒ }	 y" | j& |  j |  j |  j	 ƒ }
 Wn/ t' k
 rït j  d |  j d |  j ƒ }
 n Xt  j rDt( |	 d ƒ rt d |	 j ƒ n  t d t |
 ƒ ƒ t d t |	 ƒ ƒ n  |  j) | |  j |  j" | j# ƒ |  j* t+ |
 |	 |  j% ƒ ƒ |  j, ƒ  } t( |
 d ƒ ré|  j) t |
 j ƒ t | ƒ ƒ |  j% d k rÿ|  j) |
 j | j j ƒ qÿn |  j) t | ƒ d ƒ d S(   s&   Checking read() of enlargeable arrays.s   
s   -=i   s   Running %s.test03_readEArray...s   /earray1i   s   EArray descr:s   shape of read array ==>s   reopening?:R   R&   R'   R!   R(   s   S%si    iÿÿÿÿi   R   s   shape should look as:s   Object read ==>s   Should look like ==>N(-   R   R=   R>   R/   R0   R_   R)   RT   R`   Ra   R   RH   R   RI   RP   R?   R!   R*   R   R:   R7   R6   R    R   R;   R(   R<   RQ   R8   R%   RJ   R@   t   emptyR   R9   RN   t   copyR4   t   readt
   IndexErrorRV   RL   RS   R   RG   (   R   RC   RX   RY   R6   R]   RD   t   jR`   RE   R[   R!   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03_readEArray  sŽ    					!				"""	
c         C@ s	  |  j  d k	 r$ t |  j  ƒ |  _  n  |  j d k	 rH t |  j ƒ |  _ n  |  j d k	 rl t |  j ƒ |  _ n  |  j r‚ |  j ƒ  n  |  j j d ƒ } d | _	 |  j
 d k rá t j d d |  j d |  j d d | j j ƒ } n- t j |  j d | j j j ƒ} |  j | _ | j | j d	 ƒ } |  j d k	 rDt |  j ƒ } n d	 } |  j } | |  j c |  j | 9<|  j
 d k r¡t j d | d d | j j ƒ } n t j d | d |  j ƒ } | j d	 |  j ƒ } | rê|  j | d	 | +n  xf t |  j ƒ D]U } | | |  j } |  j
 d k r7| | | | |  j +qú| | | | | |  j +qúW|  j } |  j r|  j d k rŸ|  j  d
 k r| j } qŸ|  j  d } n  | |  j | k  rÂ| |  j } n  | |  j  |  j |  j … j ƒ  }	 |  j d k r,|	 j d	 |  j ƒ }	 q,n t j d |  j d |  j ƒ }	 y˜ t j | j d | j j ƒ}
 t  d ƒ g t | j ƒ } t  |  j  |  j |  j ƒ | | j! <|
 t" | ƒ j ƒ  }
 | j# |  j  |  j |  j d |
 ƒWn/ t$ k
 rõt j d |  j d |  j ƒ }
 n Xt% j& rJt' |	 d ƒ r!t( d |	 j ƒ n  t( d t) |
 ƒ ƒ t( d t) |	 ƒ ƒ n  |  j* | |  j |  j | j ƒ |  j+ t, |
 |	 |  j ƒ ƒ |  j- ƒ  } t' |
 d ƒ rï|  j* t |
 j ƒ t | ƒ ƒ |  j d k r|  j* |
 j | j j ƒ qn |  j* t | ƒ d ƒ d S(   s&   Checking read() of enlargeable arrays.s   /earray1i   R   R&   R'   R!   R(   s   S%si    iÿÿÿÿi   R   t   outs   shape should look as:s   Object read ==>s   Should look like ==>N(.   R_   R)   RT   R`   Ra   R   RH   R   RI   RP   R*   R   R:   R7   R6   R    R   R;   R(   R<   R!   RQ   R8   R%   RJ   R@   Re   R   R9   RN   Rf   R4   t   slicet   maindimRK   Rg   Rh   R   R=   RV   R>   R?   RL   RS   R   RG   (   R   RC   RX   RY   R6   R]   RD   Ri   R`   RE   R[   t	   slice_objR!   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03_readEArray_out_argument  sˆ    			!				""&"	
c   
      C@ s‘  t  j r1 t d d d ƒ t d |  j j ƒ n  t |  d ƒ sÐ |  j d k	 rd t |  j ƒ |  _ n  |  j	 d k	 rˆ t |  j	 ƒ |  _	 n  |  j
 d k	 r¬ t |  j
 ƒ |  _
 n  t |  j |  j	 |  j
 ƒ f |  _ n  |  j ræ |  j ƒ  n  |  j j d ƒ } t  j r7t d t | ƒ ƒ t d | j ƒ t d	 |  j ƒ n  |  j d
 k r{t j d d |  j d |  j d d | j j ƒ } n- t j |  j d | j j j ƒ} |  j | _ | j | j d ƒ } |  j d k	 rÞt  |  j ƒ } n d } |  j } | |  j c |  j! | 9<|  j d
 k r;t j" d | d d | j j ƒ } n t j" d | d |  j ƒ } | j d | j ƒ } | r„|  j | d | +n  xf t# |  j! ƒ D]U } | | |  j$ } |  j d
 k rÑ| | | | |  j$ +q”| | | | | |  j$ +q”W|  j! rK|  j% d k r| j d |  j ƒ } n | j d |  j ƒ | j& |  j ƒ j' ƒ  } n t j" d |  j d |  j ƒ } y | j& |  j ƒ }	 Wn/ t( k
 r°t j" d |  j d |  j ƒ }	 n Xt  j r%t d t |	 ƒ ƒ t d t | ƒ ƒ t | d ƒ r%t d |  j ƒ t d |	 j ƒ t d | j ƒ q%n  |  j) | |  j! |  j$ | j* ƒ |  j+ t, |	 | |  j% ƒ ƒ t |	 d ƒ s|  j) t  |  j ƒ d ƒ n  d S(   s6   Checking enlargeable array __getitem__ special method.s   
s   -=i   s"   Running %s.test04_getitemEArray...t   slicess   /earray1s   EArray descr:s   shape of read array ==>s   reopening?:R   R&   R'   R!   R(   s   S%si    R   s   Object read:
s   Should look like:
s   Original object shape:s   Shape read:s   shape should look as:i   N(-   R   R=   R>   R/   R0   RV   R_   R)   RT   R`   Ra   Rl   Rp   R   RH   R   RI   R?   R!   R*   R   R:   R7   R6   R    R   R;   R(   R<   RQ   R8   R%   RJ   R@   Re   R   R9   R4   t   __getitem__Rf   Rh   RL   RN   RS   R   (
   R   RC   RX   RY   R6   R]   RD   Ri   RE   R[   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test04_getitemEArrayý  s‚    	$			!			"	
c   
      C@ s  |  j  j d k r d St j rG t d d d ƒ t d |  j  j ƒ n  t |  d ƒ sæ |  j d k	 rz t |  j ƒ |  _ n  |  j	 d k	 rž t |  j	 ƒ |  _	 n  |  j
 d k	 rÂ t |  j
 ƒ |  _
 n  t |  j |  j	 |  j
 ƒ f |  _ n  |  j r|  j d d	 ƒ n  |  j j d
 ƒ } t j rSt d t | ƒ ƒ t d | j ƒ t d |  j ƒ n  |  j d k r—t j d d	 |  j d |  j d d | j j ƒ } n- t j |  j d | j j j ƒ} |  j | _ | j | j d ƒ } |  j d k	 rút  |  j ƒ } n d } |  j } | |  j c |  j! | 9<|  j d k rWt j" d | d d | j j ƒ } n t j" d | d |  j ƒ } | j d | j ƒ } xf t# |  j! ƒ D]U } | | |  j$ } |  j d k rÔ| | | | |  j$ +q—| | | | | |  j$ +q—W| r	|  j | d | +n  |  j! rg|  j% d k r9| j d |  j ƒ } n | j d |  j ƒ | j& |  j ƒ j' ƒ  } n t j" d |  j d |  j ƒ } |  j% d k r¦t j( | ƒ } n  |  j d k r)t |  d ƒ rád | |  j) <d | |  j* <q×t+ | |  j j ƒ d k r×d | (| j, d k r&| | |  j <q&q×n® t |  d ƒ rs| |  j* d d | |  j* <| |  j* d d | |  j* <nd t+ | |  j j ƒ d k r×| d d } t j- | j ƒ d k r×| |  j d d | |  j <q×n  | j& |  j ƒ }	 y | j& |  j ƒ }	 Wn9 t. k
 r:t d ƒ t j" d |  j d |  j ƒ }	 n Xt j r¯t d t |	 ƒ ƒ t d t | ƒ ƒ t | d ƒ r¯t d |  j ƒ t d |	 j ƒ t d | j ƒ q¯n  |  j/ | |  j! |  j$ | j0 ƒ |  j1 t2 |	 | |  j% ƒ ƒ t |	 d ƒ s|  j/ t  |  j ƒ d ƒ n  d S(    s6   Checking enlargeable array __setitem__ special method.t   Ellipsis6EArrayTestCaseNs   
s   -=i   s"   Running %s.test05_setitemEArray...Rp   t   modeR'   s   /earray1s   EArray descr:s   shape of read array ==>s   reopening?:R   R&   R!   R(   s   S%si    R   t   wslicet   xXxi   i   s   IndexError!s   Object read:
s   Should look like:
s   Original object shape:s   Shape read:s   shape should look as:i   (3   R/   R0   R   R=   R>   RV   R_   R)   RT   R`   Ra   Rl   Rp   R   RH   R   RI   R?   R!   R*   R   R:   R7   R6   R    R   R;   R(   R<   RQ   R8   R%   RJ   R@   Re   R   R9   R4   Rq   Rf   RF   t   wslizeRu   t   sumt   sizet   prodRh   RL   RN   RS   R   (
   R   RC   RX   RY   R6   R]   RD   Ri   RE   R[   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test05_setitemEArraya  s¬    	$			!			"
"	
N(   i   i    (   R0   t
   __module__R)   R%   R4   R*   R(   R!   R_   R`   Ra   R+   R9   R@   R2   R   R   R   R   R   R   RG   RO   R^   Rd   Rj   Ro   Rr   R{   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR      s4   	
	4			V	J	q	m	dt   BasicWriteTestCasec           B@ s,   e  Z d  Z d Z d Z d Z d Z d Z RS(   R   i    i   i
   i   (   i    (   R0   R|   R*   R!   R9   R@   Ra   Ru   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR}   è  s   t   Basic2WriteTestCasec           B@ sH   e  Z d  Z d Z d Z d Z d Z d Z e e d e d ƒ Z	 d Z
 RS(   R   t   i4i    i   i
   i   i   (   i    (   R0   R|   R*   R(   R!   R9   R@   Ra   Rl   Ru   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR~   ò  s   t   Basic3WriteTestCasec           B@ sV   e  Z d  d g Z e j e ƒ j j Z e j e ƒ j j Z d Z	 d Z
 d  Z d Z RS(   i   i   i    i   (   i    (   i   (   R0   R|   R%   R   RF   R(   t   nameR*   t   strR!   t
   chunkshapeRa   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR€   ý  s   t   Basic4WriteTestCasec           B@ sM   e  Z e j d  d g ƒ Z e j j Z e j j Z d Z
 d Z d  Z d Z RS(   i   i   i   i    N(   i   (   R0   R|   R   t   arrayR%   R(   R   R*   R‚   R)   R!   Rƒ   Ra   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR„     s   t   Basic5WriteTestCasec           B@ sV   e  Z d  d g Z e j e ƒ j j Z e j e ƒ j j Z d Z	 d Z
 d  Z d  Z RS(   i   i   i    i   (   i    (   i   (   R0   R|   R%   R   RF   R(   R   R*   R‚   R!   Rƒ   Ra   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR†     s   t   Basic6WriteTestCasec           B@ sM   e  Z e j d  d g ƒ Z e j j Z e j j Z d Z
 d Z d  Z d  Z RS(   i   i   i   N(   i   (   R0   R|   R   R…   R%   R(   R   R*   R‚   R)   R!   Rƒ   Ra   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR‡     s   t   Basic7WriteTestCasec           B@ sb   e  Z d  d g d d g g Z e j e ƒ j j Z e j e ƒ j j Z d Z	 d Z
 d  Z d Z RS(   i   i   i   i   i    i   (   i    i   (   i   (   R0   R|   R%   R   RF   R(   R   R*   R‚   R!   Rƒ   Ra   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRˆ   %  s   t   Basic8WriteTestCasec           B@ sb   e  Z d  d g d d g g Z e j e ƒ j j Z e j e ƒ j j Z d Z	 d Z
 d  Z d  Z RS(   i   i   i   i   i    i   (   i    i   (   i   (   R0   R|   R%   R   RF   R(   R   R*   R‚   R!   Rƒ   Ra   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR‰   /  s   t   EmptyEArrayTestCasec           B@ sA   e  Z d  Z e j d  ƒ Z d Z d Z d Z d Z d Z	 d Z
 RS(   R   i   i    i   i
   i   (   i   i    (   R0   R|   R*   R   R(   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRŠ   9  s   t   NP_EmptyEArrayTestCasec           B@ s/   e  Z d  Z e j d ƒ Z d Z d Z d Z RS(   R   s   ()int32i   i    i   (   i   i    (   R0   R|   R*   R   R(   R!   R9   R@   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR‹   D  s
   t   Empty2EArrayTestCasec           B@ s>   e  Z d  Z d  Z d Z d Z d Z d Z d Z d Z	 d Z
 RS(   R   i   i    i   i
   i   (   i   i    (   R0   R|   R*   R(   R!   R9   R@   R_   R`   Ra   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRŒ   L  s   s%   LZO compression library not availablet   SlicesEArrayTestCasec           B@ sP   e  Z d  Z d Z d Z d Z d Z d Z e d  d d  ƒ e d  d d  ƒ f Z	 RS(   i   t   lzoR   i   i    i   i   (   i   i    (
   R0   R|   R2   R   R*   R!   R9   R@   Rl   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   X  s   s'   BLOSC compression library not availablet   Slices2EArrayTestCasec           B@ s_   e  Z d  Z d Z d Z d Z d Z d Z e d  d d  ƒ e d	 d	 d	 ƒ e d  d d ƒ f Z
 RS(
   i   t   bloscR   i   i    i   i   i   (   i   i    i   N(   R0   R|   R2   R   R*   R!   R9   R@   Rl   R)   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   c  s   t   EllipsisEArrayTestCasec           B@ s8   e  Z d  Z d Z d Z d Z e e d d d ƒ f Z RS(   R   i   i    i   i   (   i   i    (	   R0   R|   R*   R!   R9   R@   t   EllipsisRl   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR‘   o  s
   t   Ellipsis2EArrayTestCasec           B@ sG   e  Z d  Z d Z d Z d Z e d d d ƒ e e d d d ƒ f Z RS(   R   i   i    i   i   i   i   (   i   i    i   (	   R0   R|   R*   R!   R9   R@   Rl   R’   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR“   x  s
   t   Slices3EArrayTestCasec           B@ sÅ   e  Z d  Z d Z d Z d	 Z d Z d Z e d  d d  ƒ e d d
 d
 ƒ e d  d d ƒ f Z
 e d  d d  ƒ e d  d d
 ƒ e d  d d ƒ f Z
 e d  d d  ƒ e d d d
 ƒ e d  d d ƒ f Z
 RS(   i   R   R   i   i   i   i    i   i   (   i   i   i   i    N(   R0   R|   R2   R   R*   R!   R9   R@   Rl   R)   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR”   €  s   3t   Slices4EArrayTestCasec        	   B@ s€   e  Z d  Z d
 Z d Z d Z e d d d ƒ e d d d ƒ e d d d ƒ e d d d ƒ e d d d ƒ e d d	 d ƒ f Z RS(   R   i   i   i   i    i   i   i   i   i   (   i   i   i   i    i   i   N(	   R0   R|   R*   R!   R9   R@   Rl   R)   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR•   ˜  s   -t   Ellipsis3EArrayTestCasec           B@ s}   e  Z d  Z d Z d Z d Z e e d d d	 ƒ e d d d ƒ f Z	 e d d d ƒ e d d d	 ƒ e d d d ƒ e f Z	 RS(
   R   i   i   i   i    i   i   i   (   i   i   i   i    N(
   R0   R|   R*   R!   R9   R@   R’   Rl   R)   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR–   ¡  s   't   Ellipsis4EArrayTestCasec           B@ sn   e  Z d  Z d Z d Z d Z e e d d d	 ƒ e d d d ƒ f Z	 e d d d ƒ e e d d d ƒ f Z	 RS(
   R   i   i   i   i    i   i   i   (   i   i   i   i    N(
   R0   R|   R*   R!   R9   R@   R’   Rl   R)   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR—   ª  s   't   Ellipsis5EArrayTestCasec           B@ sG   e  Z d  Z d Z d Z d Z e d d d ƒ e d d d	 ƒ e f Z	 RS(
   R   i   i   i   i    i   i   i   (   i   i   i   i    N(
   R0   R|   R*   R!   R9   R@   Rl   R)   R’   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR˜   ³  s
   Rs   c           B@ sJ   e  Z d  Z d Z d Z d Z e d d d ƒ e d d d ƒ d e f Z	 RS(	   R   i   i   i   i    i   i   (   i   i   i   i    N(
   R0   R|   R*   R!   R9   R@   Rl   R)   R’   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRs   »  s
   t   Ellipsis7EArrayTestCasec           B@ sS   e  Z d  Z d Z d Z d Z e d d d ƒ e d d d ƒ e d d ƒ e f Z	 RS(	   R   i   i   i   i    i   i   (   i   i   i   i    N(
   R0   R|   R*   R!   R9   R@   Rl   R)   R’   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR™   Æ  s
   t   MD3WriteTestCasec           B@ s    e  Z d  Z d Z d Z d Z RS(   R   i   i    i   i   (   i   i    i   (   R0   R|   R*   R!   R9   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRš   Î  s   t   MD5WriteTestCasec           B@ s2   e  Z d  Z d Z d Z d Z d Z d Z d Z RS(	   R   i   i    i   i   i   i   i
   (   i   i    i   i   i   (	   R0   R|   R*   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR›   Õ  s   t   MD6WriteTestCasec           B@ s2   e  Z d  Z d Z d Z d Z d Z d Z d Z RS(	   R   i   i   i    i   i   i   i
   (   i   i   i   i    i   i   (	   R0   R|   R*   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRœ   â  s   t   NP_MD6WriteTestCasec           B@ s&   e  Z d  Z d Z d	 Z d Z d Z RS(
   s    Testing NumPy scalars as indexesR   i   i   i    i   i   i   i
   (   i   i   i   i    i   i   (   R0   R|   t   __doc__R*   R!   R9   R@   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   ì  s
   t   MD6WriteTestCase__c           B@ s2   e  Z d  Z d Z d Z d Z d Z d Z d Z RS(   R   i   i    i   i   (   i   i    (	   R0   R|   R*   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRŸ   ô  s   t   MD7WriteTestCasec           B@ s2   e  Z d  Z d Z d Z d Z d Z d Z d Z RS(	   R   i   i   i   i   i    i
   i   (   i   i   i   i   i   i    i   (	   R0   R|   R*   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR    þ  s   t   MD10WriteTestCasec        
   B@ s2   e  Z d  Z d	 Z d Z d Z d Z d Z d Z RS(
   R   i   i   i   i   i   i    i
   iÿÿÿÿ(
   i   i   i   i   i   i   i   i   i   i    (	   R0   R|   R*   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR¡     s   t   NP_MD10WriteTestCasec        
   B@ s    e  Z d  Z d Z d Z d Z RS(	   R   i   i   i   i   i   i    i
   (
   i   i   i   i   i   i   i   i   i   i    (   R0   R|   R*   R!   R9   R@   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR¢     s   t   ZlibComprTestCasec           B@ s&   e  Z d  Z d Z d Z d Z d Z RS(   i   R   i   i
   N(   R0   R|   R2   R   R_   R)   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR£     s
   t   ZlibShuffleTestCasec           B@ s,   e  Z d  Z d  Z d Z d Z d  Z d Z RS(   i   R   i   i
   (   R0   R|   R   R2   R   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR¤   "  s   t   BloscComprTestCasec           B@ s2   e  Z d  Z d Z d Z d Z d Z d Z d Z RS(   i   R   i
   id   i   (	   R0   R|   R2   R   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR¥   ,  s   t   BloscShuffleTestCasec           B@ s8   e  Z d  Z d  Z d Z d Z d Z d Z d Z d Z	 RS(   i   R   id   i
   i   i   (
   R0   R|   R2   R   R   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR¦   8  s   t   LZOComprTestCasec           B@ s2   e  Z d  Z d Z d Z d Z d Z d Z d Z RS(   i   RŽ   i
   id   i   (	   R0   R|   R2   R   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR§   E  s   t   LZOShuffleTestCasec           B@ s8   e  Z d  Z d  Z d Z d Z d Z d Z d Z d Z	 RS(   i   RŽ   id   i
   i   i   (
   R0   R|   R2   R   R   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR¨   P  s   s'   BZIP2 compression library not availablet   Bzip2ComprTestCasec           B@ s2   e  Z d  Z d Z d Z d Z d Z d Z d Z RS(   i   t   bzip2id   i
   i   i   (	   R0   R|   R2   R   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR©   \  s   t   Bzip2ShuffleTestCasec           B@ s8   e  Z d  Z d  Z d Z d Z d Z d Z d Z d Z	 RS(   i   Rª   id   i
   i   i   (
   R0   R|   R2   R   R   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR«   h  s   t   Fletcher32TestCasec           B@ s2   e  Z d  Z d Z d Z d Z d Z d Z d Z RS(   i    i   i2   i   i   i   (	   R0   R|   R2   R   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR¬   u  s   t   AllFiltersTestCasec           B@ s>   e  Z d  Z d  Z d  Z d Z d Z d Z d Z d Z	 d Z
 RS(   i   R   i   i2   i   ic   i   (   R0   R|   R2   R   R   R   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR­     s   t   FloatTypeTestCasec           B@ s8   e  Z d  Z d  Z d Z d Z d Z d Z d Z d Z	 RS(   t   float64i   i    i   i
   i   i   (   i   i    (
   R0   R|   R*   R(   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR®     s   t   ComplexTypeTestCasec           B@ s8   e  Z d  Z d  Z d Z d Z d Z d Z d Z d Z	 RS(   t
   complex128i   i    i   i
   i   i   (   i   i    (
   R0   R|   R*   R(   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR°   ›  s   t   StringTestCasec           B@ sV   e  Z d  Z d Z d Z d Z d Z d Z d Z d Z	 e
 d d ƒ e
 d d ƒ f Z RS(	   R   i   i   i    i   i
   i   i   (   i   i    (   R0   R|   R*   R+   R!   R9   R@   R_   R`   Ra   Rl   Rp   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR²   ¦  s   t   String2TestCasec           B@ s8   e  Z d  Z d Z d Z d Z d Z d Z d Z d Z	 RS(   R   i   i    i   i
   i   i   (   i    (
   R0   R|   R*   R+   R!   R9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR³   ³  s   t   StringComprTestCasec           B@ s>   e  Z d  Z d Z d Z d Z d Z d Z d Z d Z	 d Z
 RS(	   R   i   i    i
   i   i2   iÿÿÿÿid   (   i   i    i
   (   R0   R|   R*   R+   R!   t   comprR9   R@   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR´   ¿  s   t"   SizeOnDiskInMemoryPropertyTestCasec           B@ s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C@ s2   t  t |  ƒ j ƒ  d |  _ d |  _ d |  _ d  S(   Ni    i
   iè  ip  (   i    i
   (   iè  i
   (   R   R¶   R   t
   array_sizeRƒ   t   hdf_overhead(   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   Ï  s    		c         C@ sU   t  j d | d d ƒ } |  j j d d d t ƒ  d |  j d | d	 |  j ƒ|  _ d  S(
   NR   R   R   t   /RC   R    R!   R#   Rƒ   (   R,   R1   R   R3   R   R·   Rƒ   R…   (   R   R   R#   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   create_arrayÙ  s
    	c         C@ sC   d } |  j  | ƒ |  j |  j j d ƒ |  j |  j j d ƒ d  S(   Ni    (   Rº   RL   R…   t   size_on_diskt   size_in_memory(   R   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_zero_lengthà  s    c         C@ sq   d } |  j  | ƒ |  j j t t d ƒ ƒ g |  j d d ƒ |  j |  j j d ƒ |  j |  j j d
 ƒ d  S(   Ni    i
   iè  i   i'  i † i€ i'  i † i€ (	   Rº   R…   RA   RK   R   Rƒ   RL   R»   R¼   (   R   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_no_compression_one_appendç  s
    .c         C@ sŸ   d } |  j  | ƒ |  j j t t d ƒ ƒ g |  j d d ƒ |  j j t t d ƒ ƒ g |  j d d ƒ |  j |  j j d ƒ |  j |  j j d ƒ d  S(   Ni    i
   i   iè  i   i'  i † i€ i'  i † i€ (	   Rº   R…   RA   RK   R   Rƒ   RL   R»   R¼   (   R   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt$   test_no_compression_multiple_appendsï  s    ..c         C@ sµ   d } |  j  | ƒ |  j j t t d ƒ ƒ g |  j d d ƒ t j |  j ƒ j	 } |  j
 t |  j j | ƒ |  j k ƒ |  j |  j j d ƒ |  j
 |  j j |  j j k  ƒ d  S(	   Ni   i
   i    iè  i   i'  i † i€ (   Rº   R…   RA   RK   R   Rƒ   t   ost   statt   h5fnamet   st_sizeRS   t   absR»   R¸   RL   R¼   (   R   R   t	   file_size(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_with_compression÷  s    . (   R0   R|   R   Rº   R½   R¾   R¿   RÆ   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR¶   Í  s   	
				t   OffsetStrideTestCasec           B@ s}   e  Z d  Z d Z d Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   t   wi    R   c         C@ s&   t  t |  ƒ j ƒ  |  j j |  _ d  S(   N(   R   RÇ   R   R   R   R   (   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR     s    c      	   C@ s  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  |  j j | d d t d d ƒ d	 d d d ƒ} t	 j
 d d g d d g d d g g g d d ƒ} | j | d d … d d … f ƒ t	 j
 d d g d d g d d g d d g g g ƒ } | j | d d … d d … f ƒ | j ƒ  } t j rnt d | ƒ t d | j d | j ƒ t d | d j ƒ  ƒ n  |  j | j d ƒ |  j | d
 j ƒ  d d g d d g g ƒ |  j | d j ƒ  d d g d d g g ƒ |  j t | d
 ƒ d ƒ |  j t | d ƒ d ƒ d S(   s4   Checking earray with offseted numpy strings appends.s   
s   -=i   s    Running %s.test01a_StringAtom...t   stringsR    R   i   R!   i    i   R"   s   Array of stringsR'   t   bt   123t   45R(   t   S3Ni   t   st   abt   ft   abcs   Object read:s   Nrows int   :s   Second row in earray ==>(   i    i   i   (   R   R   R=   R>   R/   R0   R   R3   R   R   R…   RA   Rg   t   _v_pathnameRN   t   tolistRL   RJ   (   R   R   RC   R'   R[   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01a_String  s0    			$#'#	,,c      	   C@ s  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  |  j j | d d t d d ƒ d	 d d d ƒ} t	 j
 d d g d d g d d g g g d d ƒ} | j | d d … d d d … f ƒ t	 j
 d d g d d g d d g d d g g g ƒ } | j | d d … d d d … f ƒ | j ƒ  } t j rtt d | ƒ t d | j d | j ƒ t d | d j ƒ  ƒ n  |  j | j d ƒ |  j | d
 j ƒ  d d g d d g g ƒ |  j | d j ƒ  d d g d d g g ƒ |  j t | d
 ƒ d ƒ |  j t | d ƒ d ƒ d S(   s3   Checking earray with strided numpy strings appends.s   
s   -=i   s    Running %s.test01b_StringAtom...RÉ   R    R   i   R!   i    i   R"   s   Array of stringsR'   RÊ   RË   RÌ   R(   RÍ   NRÎ   RÏ   RÐ   RÑ   s   Object read:s   Nrows inRÒ   s   Second row in earray ==>i   (   i    i   i   (   R   R   R=   R>   R/   R0   R   R3   R   R   R…   RA   Rg   RÓ   RN   RÔ   RL   RJ   (   R   R   RC   R'   R[   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01b_String+  s0    			$&'&	,,c      	   C@ s¾  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  |  j j | d d t ƒ  d d d
 d ƒ} t	 j
 d d d d g d d ƒ} | j | d ƒ t	 j
 d d g d d ƒ} | j | d ƒ | j ƒ  } t j rt d | ƒ t d | j d | j ƒ t d | d ƒ n  |  j | j d	 ƒ |  j t | d t	 j
 d d d g d d ƒƒ ƒ |  j t | d t	 j
 d d d g d d ƒƒ ƒ |  j t | d t	 j
 d d d g d d ƒƒ ƒ d S(   s1   Checking earray with offseted NumPy ints appends.s   
s   -=i   s   Running %s.test02a_int...t   EAtomR    R!   i    i   R"   s   array of intsi   R(   R   i   iÿÿÿÿs   Object read:s   Nrows inRÒ   s   Third row in vlarray ==>N(   i    i   (   i    i    i    (   i   i    i   (   i   i   i   (   i    i    i    (   i   i   i   (   iÿÿÿÿi    i    (   R   R   R=   R>   R/   R0   R   R3   R   R   R…   RA   Rg   RÓ   RN   RL   RS   R   (   R   R   RC   R'   R[   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02a_intK  s0    				&&c      	   C@ sÐ  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  |  j j | d d t ƒ  d d d
 d ƒ} t	 j
 d d d d g d d ƒ} | j | d d d	 … ƒ t	 j
 d d g d d ƒ} | j | d d d … ƒ | j ƒ  } t j r#t d | ƒ t d | j d | j ƒ t d | d ƒ n  |  j | j d	 ƒ |  j t | d t	 j
 d d d g d d ƒƒ ƒ |  j t | d t	 j
 d	 d	 d	 g d d ƒƒ ƒ |  j t | d t	 j
 d d d g d d ƒƒ ƒ d S(   s0   Checking earray with strided NumPy ints appends.s   
s   -=i   s   Running %s.test02b_int...R×   R    R!   i    i   R"   s   array of intsi   R(   R   Niÿÿÿÿi   s   Object read:s   Nrows inRÒ   s   Third row in vlarray ==>(   i    i   (   i    i    i    (   i   i    i   (   i   i   i   (   i   i   i   (   i   i   i   (   iÿÿÿÿi    i    (   R   R   R=   R>   R/   R0   R   R3   R   R   R…   RA   Rg   RÓ   RN   RL   RS   R   (   R   R   RC   R'   R[   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02b_intl  s0    				&&c      	   C@ sU  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  |  j j | d d t ƒ  d d d
 d ƒ} t	 j
 d d d d g d d ƒ} | j | ƒ | j ƒ  } | j ƒ  } | j | ƒ | d d … d d … f } | d d … d d … f } t j r;t d | ƒ t d | j j ƒ t d | ƒ t d | j j ƒ n  |  j t | | ƒ ƒ d S(   s/   Checking earray with byteswapped appends (ints)s   
s   -=i   s   Running %s.test03a_int...R×   R    R!   i    i   R"   s   array of intsi   R(   R   Ni   s   Native rows:s   Byteorder native rows:s   Swapped rows:s   Byteorder swapped rows:(   i    i   (   i    i    i    (   i   i    i   (   i   i   i   (   i   i   i   (   R   R   R=   R>   R/   R0   R   R3   R   R   R…   RA   t   byteswapt   newbyteorderR(   t	   byteorderRS   R   (   R   R   RC   R'   t   nativet   swapped(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03a_intŒ  s*    				c      	   C@ sU  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  |  j j | d d t ƒ  d d d
 d ƒ} t	 j
 d d d d g d d ƒ} | j | ƒ | j ƒ  } | j ƒ  } | j | ƒ | d d … d d … f } | d d … d d … f } t j r;t d | ƒ t d | j j ƒ t d | ƒ t d | j j ƒ n  |  j t | | ƒ ƒ d S(   s1   Checking earray with byteswapped appends (floats)s   
s   -=i   s   Running %s.test03b_float...R×   R    R!   i    i   R"   s   array of floatsi   R(   R¯   Ni   s   Native rows:s   Byteorder native rows:s   Swapped rows:s   Byteorder swapped rows:(   i    i   (   i    i    i    (   i   i    i   (   i   i   i   (   i   i   i   (   R   R   R=   R>   R/   R0   R   R3   R   R   R…   RA   RÚ   RÛ   R(   RÜ   RS   R   (   R   R   RC   R'   RÝ   RÞ   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03b_float¬  s*    				c         C@ s  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  i d d 6d d 6t j } |  j j	 | d d t
 ƒ  d	 d d d d | ƒ} t j d d d d g d d ƒ} | j | ƒ | j ƒ  } | j ƒ  } | j | ƒ | d d … d d … f } | d d … d d … f } t j rCt d t | j j ƒ t d | j ƒ n  |  j t | j j t j ƒ |  j | j | ƒ |  j t | | ƒ ƒ d S(   s2   Checking earray with byteswapped appends (2, ints)s   
s   -=i   s   Running %s.test04a_int...t   bigt   littleR×   R    R!   i    i   R"   s   array of intsRÜ   i   R(   R   Ni   s   Byteorder native rows:s   Byteorder earray on-disk:(   i    i   (   i    i    i    (   i   i    i   (   i   i   i   (   i   i   i   (   R   R   R=   R>   R/   R0   t   sysRÜ   R   R3   R   R   R…   RA   RÚ   RÛ   R   R(   RL   RS   R   (   R   R   RÜ   RC   R'   RÝ   RÞ   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test04a_intÌ  s.    				c         C@ s¯  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  i d d 6d d 6t j } |  j j	 | d d t
 ƒ  d	 d d d d | ƒ} |  j d d ƒ |  j j d ƒ } t j d d d d g d d ƒ} | j | ƒ | j ƒ  } | j ƒ  } | j | ƒ | d d … d d … f } | d d … d d … f } t j ret d t | j j ƒ t d | j ƒ n  |  j t | j j t j ƒ |  j | j | ƒ |  j t | | ƒ ƒ d S(   s:   Checking earray with byteswapped appends (2, ints, reopen)s   
s   -=i   s   Running %s.test04b_int...Rá   Râ   R×   R    R!   i    i   R"   s   array of intsRÜ   Rt   R'   s   /EAtomi   R(   R   Ni   s   Byteorder native rows:s   Byteorder earray on-disk:(   i    i   (   i    i    i    (   i   i    i   (   i   i   i   (   i   i   i   (   R   R   R=   R>   R/   R0   Rã   RÜ   R   R3   R   RH   RI   R   R…   RA   RÚ   RÛ   R   R(   RL   RS   R   (   R   R   RÜ   RC   R'   RÝ   RÞ   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test04b_intî  s2    				c         C@ s  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  i d d 6d d 6t j } |  j j	 | d d t
 ƒ  d	 d d d d | ƒ} t j d d d d g d d ƒ} | j | ƒ | j ƒ  } | j ƒ  } | j | ƒ | d d … d d … f } | d d … d d … f } t j rCt d t | j j ƒ t d | j ƒ n  |  j t | j j t j ƒ |  j | j | ƒ |  j t | | ƒ ƒ d S(   s4   Checking earray with byteswapped appends (2, floats)s   
s   -=i   s   Running %s.test04c_float...Rá   Râ   R×   R    R!   i    i   R"   s   array of floatsRÜ   i   R(   R¯   Ni   s   Byteorder native rows:s   Byteorder earray on-disk:(   i    i   (   i    i    i    (   i   i    i   (   i   i   i   (   i   i   i   (   R   R   R=   R>   R/   R0   Rã   RÜ   R   R3   R   R   R…   RA   RÚ   RÛ   R   R(   RL   RS   R   (   R   R   RÜ   RC   R'   RÝ   RÞ   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test04c_float  s.    				c         C@ s¯  |  j  } t j r: t d d d ƒ t d |  j j ƒ n  i d d 6d d 6t j } |  j j	 | d d t
 ƒ  d	 d d d d | ƒ} |  j d d ƒ |  j j d ƒ } t j d d d d g d d ƒ} | j | ƒ | j ƒ  } | j ƒ  } | j | ƒ | d d … d d … f } | d d … d d … f } t j ret d t | j j ƒ t d | j ƒ n  |  j t | j j t j ƒ |  j | j | ƒ |  j t | | ƒ ƒ d S(   s<   Checking earray with byteswapped appends (2, floats, reopen)s   
s   -=i   s   Running %s.test04d_float...Rá   Râ   R×   R    R!   i    i   R"   s   array of floatsRÜ   Rt   R'   s   /EAtomi   R(   R¯   Ni   s   Byteorder native rows:s   Byteorder earray on-disk:(   i    i   (   i    i    i    (   i   i    i   (   i   i   i   (   i   i   i   (   R   R   R=   R>   R/   R0   Rã   RÜ   R   R3   R   RH   RI   R   R…   RA   RÚ   RÛ   R   R(   RL   RS   R   (   R   R   RÜ   RC   R'   RÝ   RÞ   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test04d_float4  s2    				(   R0   R|   Rt   R2   R   R   RÕ   RÖ   RØ   RÙ   Rß   Rà   Rä   Rå   Ræ   Rç   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRÇ     s   		 	 	!	 	 	 	"	$	"t   CopyTestCasec           B@ sP   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c      	   C@ sš  t  j r1 t d d d ƒ t d |  j j ƒ n  t ƒ  } |  j j |  j j d d | d d d
 d ƒ} | j	 t
 j d d	 g d d g g d d ƒƒ |  j rÖ t  j r´ t d ƒ n  |  j d d ƒ |  j j j } n  | j d d ƒ } |  j r2t  j rt d ƒ n  |  j ƒ  |  j j j } |  j j j } n  t  j rt d | j ƒ  ƒ t d | j ƒ  ƒ t d t | j ƒ ƒ t d t | j ƒ ƒ n  |  j t | j ƒ  | j ƒ  ƒ ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j | j ƒ |  j t  | j ƒ t  | j ƒ ƒ d S(   s   Checking EArray.copy() method.s   
s   -=i   s   Running %s.test01_copy...t   array1R    R!   i    i   R"   s   title array1iÈ  i   iÉ  R(   t   int16s   (closing file version)Rt   R'   R¹   t   array2s	   array1-->s	   array2-->s   attrs array1-->s   attrs array2-->N(   i    i   (!   R   R=   R>   R/   R0   R   R   R3   R   RA   R   R…   R   RH   Ré   Rf   Rë   Rg   R?   t   attrsRS   R   RL   RN   R!   R8   R4   R    R(   R*   R   R"   R‚   (   R   R    Ré   Rë   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01_copy[  sF    			.				
	"c      	   C@ s²  t  j r1 t d d d ƒ t d |  j j ƒ n  t ƒ  } |  j j |  j j d d | d d d
 d ƒ} | j	 t
 j d d	 g d d g g d d ƒƒ |  j rÖ t  j r´ t d ƒ n  |  j d d ƒ |  j j j } n  |  j j d d ƒ } | j | d ƒ } |  j rJt  j rt d ƒ n  |  j ƒ  |  j j j } |  j j j j } n  t  j r¨t d | j ƒ  ƒ t d | j ƒ  ƒ t d t | j ƒ ƒ t d t | j ƒ ƒ n  |  j t | j ƒ  | j ƒ  ƒ ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j j  | j j  ƒ |  j | j! | j! ƒ |  j t" | j ƒ t" | j ƒ ƒ d S(   s/   Checking EArray.copy() method (where specified)s   
s   -=i   s   Running %s.test02_copy...Ré   R    R!   i    i   R"   s   title array1iÈ  i   iÉ  R(   Rê   s   (closing file version)Rt   R'   R¹   t   group1Rë   s	   array1-->s	   array2-->s   attrs array1-->s   attrs array2-->N(   i    i   (#   R   R=   R>   R/   R0   R   R   R3   R   RA   R   R…   R   RH   Ré   t   create_groupRf   Rî   Rë   Rg   R?   Rì   RS   R   RL   RN   R!   R8   R4   R    R(   R*   R   R"   R‚   (   R   R    Ré   Rî   Rë   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02_copyŽ  sH    			.				
	"c      	   C@ s\  t  j r1 t d d d ƒ t d |  j j ƒ n  t ƒ  } |  j j |  j j d d | d d d
 d ƒ} d | _	 | j
 d d f ƒ |  j rÄ t  j r¢ t d ƒ n  |  j d d ƒ |  j j j } n  | j d d ƒ } |  j r t  j rõ t d ƒ n  |  j ƒ  |  j j j } |  j j j } n  t  j rXt d t | j ƒ ƒ t d t | j ƒ ƒ n  |  j | j ƒ  | j ƒ  ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j	 | j	 ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j | j ƒ |  j t | j ƒ t | j ƒ ƒ d S(   s-   Checking EArray.copy() method (python flavor)s   
s   -=i   s   Running %s.test03b_copy...Ré   R    R!   i    i   R"   s   title array1t   pythoniÈ  i   iÉ  s   (closing file version)Rt   R'   R¹   Rë   s   attrs array1-->s   attrs array2-->N(   i    i   (   iÈ  i   (   i   iÉ  (   R   R=   R>   R/   R0   R   R   R3   R   R4   RA   R   RH   Ré   Rf   Rë   R?   Rì   RL   Rg   RN   R!   R8   R    R(   R*   R   R"   R‚   (   R   R    Ré   Rë   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03a_copyÂ  sD    								
	c      	   C@ sn  t  j r1 t d d d ƒ t d |  j j ƒ n  t d d ƒ } |  j j |  j j d d | d	 d d d ƒ} d | _	 | j
 d d g d d g g ƒ |  j rÖ t  j r´ t d ƒ n  |  j d d ƒ |  j j j } n  | j d d ƒ } |  j r2t  j rt d ƒ n  |  j ƒ  |  j j j } |  j j j } n  t  j rjt d t | j ƒ ƒ t d t | j ƒ ƒ n  |  j | j ƒ  | j ƒ  ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j	 | j	 ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j | j ƒ |  j t | j ƒ t | j ƒ ƒ d S(   s4   Checking EArray.copy() method (python string flavor)s   
s   -=i   s   Running %s.test03d_copy...R   i   Ré   R    R!   i    i   R"   s   title array1Rñ   t   456t   2t   3t   457s   (closing file version)Rt   R'   R¹   Rë   s   attrs array1-->s   attrs array2-->N(   i    i   (   R   R=   R>   R/   R0   R   R   R3   R   R4   RA   R   RH   Ré   Rf   Rë   R?   Rì   RL   Rg   RN   R!   R8   R    R(   R*   R   R"   R‚   (   R   R    Ré   Rë   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03b_copyñ  sD    							
	c      	   C@ sƒ  t  j r1 t d d d ƒ t d |  j j ƒ n  t d d ƒ } |  j j |  j j d d | d	 d d d ƒ} d | _	 | j
 t j d d g d d g g d d ƒƒ |  j rå t  j rÃ t d ƒ n  |  j d d ƒ |  j j j } n  | j d d ƒ } |  j rAt  j rt d ƒ n  |  j ƒ  |  j j j } |  j j j } n  t  j ryt d t | j ƒ ƒ t d t | j ƒ ƒ n  |  j t | j ƒ  | j ƒ  ƒ ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j	 | j	 ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j j | j j ƒ |  j | j | j ƒ |  j t  | j ƒ t  | j ƒ ƒ d S(   s-   Checking EArray.copy() method (String flavor)s   
s   -=i   s   Running %s.test03e_copy...R   i   Ré   R    R!   i    i   R"   s   title array1R   Ró   Rô   Rõ   Rö   R(   t   S4s   (closing file version)Rt   R'   R¹   Rë   s   attrs array1-->s   attrs array2-->N(   i    i   (!   R   R=   R>   R/   R0   R   R   R3   R   R4   RA   R   R…   R   RH   Ré   Rf   Rë   R?   Rì   RS   R   Rg   RL   RN   R!   R8   R    R(   R*   R   R"   R‚   (   R   R    Ré   Rë   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03c_copy!  sD    			.				
	"c      	   C@ sƒ  t  j r1 t d d d ƒ t d |  j j ƒ n  t ƒ  } |  j j |  j j d d | d d d
 d ƒ} | j	 t
 j d d	 g d d g g d d ƒƒ d | j _ d	 | j _ |  j rî t  j rÌ t d ƒ n  |  j d d ƒ |  j j j } n  | j d d d
 d ƒ} |  j rPt  j r%t d ƒ n  |  j ƒ  |  j j j } |  j j j } n  t  j rlt d | j ƒ n  |  j | j d ƒ d S(   s6   Checking EArray.copy() method (checking title copying)s   
s   -=i   s   Running %s.test04_copy...Ré   R    R!   i    i   R"   s   title array1iÈ  i   iÉ  R(   Rê   t   attr1s   (closing file version)Rt   R'   R¹   Rë   s   title array2s   title of destination array-->N(   i    i   (   R   R=   R>   R/   R0   R   R   R3   R   RA   R   R…   Rì   Rú   t   attr2R   RH   Ré   Rf   Rë   R"   RL   (   R   R    Ré   Rë   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test04_copyP  s2    			.				
	c      	   C@ s¸  t  j r1 t d d d ƒ t d |  j j ƒ n  t ƒ  } |  j j |  j j d d | d d d
 d ƒ} | j	 t
 j d d	 g d d g g d d ƒƒ d | j _ d	 | j _ |  j rî t  j rÌ t d ƒ n  |  j d d ƒ |  j j j } n  | j d d d d ƒ} |  j rPt  j r%t d ƒ n  |  j ƒ  |  j j j } |  j j j } n  t  j rˆt d t | j ƒ ƒ t d t | j ƒ ƒ n  |  j | j j d ƒ |  j | j j d	 ƒ d S(   s6   Checking EArray.copy() method (user attributes copied)s   
s   -=i   s   Running %s.test05_copy...Ré   R    R!   i    i   R"   s   title array1iÈ  i   iÉ  R(   Rê   Rú   s   (closing file version)Rt   R'   R¹   Rë   t   copyuserattrsi   s   attrs array1-->s   attrs array2-->N(   i    i   (   R   R=   R>   R/   R0   R   R   R3   R   RA   R   R…   Rì   Rú   Rû   R   RH   Ré   Rf   Rë   R?   RL   (   R   R    Ré   Rë   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test05_copyv  s6    			.				
	c      	   C@ sÄ  t  j r1 t d d d ƒ t d |  j j ƒ n  t ƒ  } |  j j |  j j d d | d d d
 d ƒ} | j	 t
 j d d	 g d d g g d d ƒƒ d | j _ d	 | j _ |  j rî t  j rÌ t d ƒ n  |  j d d ƒ |  j j j } n  | j d d d d ƒ} |  j rPt  j r%t d ƒ n  |  j ƒ  |  j j j } |  j j j } n  t  j rˆt d t | j ƒ ƒ t d t | j ƒ ƒ n  |  j t | j d ƒ d ƒ |  j t | j d ƒ d ƒ d S(   s:   Checking EArray.copy() method (user attributes not copied)s   
s   -=i   s   Running %s.test05b_copy...Ré   R    R!   i    i   R"   s   title array1iÈ  i   iÉ  R(   Rê   Rú   s   (closing file version)Rt   R'   R¹   Rë   Rý   s   attrs array1-->s   attrs array2-->Rû   N(   i    i   (   R   R=   R>   R/   R0   R   R   R3   R   RA   R   R…   Rì   Rú   Rû   R   RH   Ré   Rf   Rë   R?   RL   RV   (   R   R    Ré   Rë   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test05b_copyŸ  s6    			.				
	(
   R0   R|   Rí   Rð   Rò   R÷   Rù   Rü   Rþ   Rÿ   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRè   Y  s   	3	4	/	0	/	&	)t   CloseCopyTestCasec           B@ s   e  Z d  Z RS(   i   (   R0   R|   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   É  s   t   OpenCopyTestCasec           B@ s   e  Z d  Z RS(   i    (   R0   R|   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  Í  s   t   CopyIndexTestCasec           B@ s    e  Z d  Z d „  Z d „  Z RS(   i   c      	   C@ s¯  t  j r1 t d d d ƒ t d |  j j ƒ n  t ƒ  } |  j j |  j j d d | d d d
 d ƒ} t	 j
 d d d ƒ} d | _ | j | ƒ |  j | _ | j d d d |  j d |  j d |  j ƒ} t  j r)t d | j ƒ  ƒ t d | j ƒ  ƒ t d t | j ƒ ƒ t d t | j ƒ ƒ n  | |  j |  j |  j … } |  j t | | j ƒ  ƒ ƒ t  j r‘t d | j ƒ t d | j d ƒ n  |  j | j d | j ƒ d S(   s+   Checking EArray.copy() method with indexes.s   
s   -=i   s   Running %s.test01_index...Ré   R    R!   i    i   R"   s   title array1iÈ   R(   R   id   R¹   Rë   R_   R`   Ra   s	   array1-->s	   array2-->s   attrs array1-->s   attrs array2-->s   nrows in array2-->s   and it should be-->N(   i    i   (   id   i   (   R   R=   R>   R/   R0   R   R   R3   R   R   R;   R!   RA   RP   Rf   R_   R`   Ra   Rg   R?   Rì   RS   R   RN   RL   (   R   R    Ré   t   rRë   t   r2(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01_indexÔ  s4    								c      	   C@ s×  t  j r1 t d d d ƒ t d |  j j ƒ n  t ƒ  } |  j j |  j j d d | d d d
 d ƒ} t	 j
 d d d ƒ} d | _ | j | ƒ |  j | _ | j d d d |  j d |  j d |  j ƒ} |  j ƒ  |  j j j } |  j j j } t  j rQt d | j ƒ  ƒ t d | j ƒ  ƒ t d t | j ƒ ƒ t d t | j ƒ ƒ n  | |  j |  j |  j … } |  j t | | j ƒ  ƒ ƒ t  j r¹t d | j ƒ t d | j d ƒ n  |  j | j d | j ƒ d S(   s?   Checking EArray.copy() method with indexes (close file version)s   
s   -=i   s    Running %s.test02_indexclosef...Ré   R    R!   i    i   R"   s   title array1iÈ   R(   R   id   R¹   Rë   R_   R`   Ra   s	   array1-->s	   array2-->s   attrs array1-->s   attrs array2-->s   nrows in array2-->s   and it should be-->N(   i    i   (   id   i   (   R   R=   R>   R/   R0   R   R   R3   R   R   R;   R!   RA   RP   Rf   R_   R`   Ra   RH   Ré   Rë   Rg   R?   Rì   RS   R   RN   RL   (   R   R    Ré   R  Rë   R  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02_indexclosefü  s:    						
		(   R0   R|   RP   R  R  (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  Ñ  s   	(t   CopyIndex1TestCasec           B@ s    e  Z d  Z d Z d Z d  Z RS(   i   i    i   (   R0   R|   RP   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  *  s   t   CopyIndex2TestCasec           B@ s    e  Z d  Z d Z d Z d Z RS(   i   i    iÿÿÿÿi   (   R0   R|   RP   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  1  s   t   CopyIndex3TestCasec           B@ s    e  Z d  Z d Z d Z d Z RS(   i   i   i   (   R0   R|   RP   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR	  8  s   t   CopyIndex4TestCasec           B@ s    e  Z d  Z d Z d Z d Z RS(   i   i    i   i   (   R0   R|   RP   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR
  ?  s   t   CopyIndex5TestCasec           B@ s    e  Z d  Z d Z d Z d Z RS(   i   i   i   i   (   R0   R|   RP   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  F  s   t   CopyIndex6TestCasec           B@ s    e  Z d  Z d Z d Z d  Z RS(   i   i   i   (   R0   R|   RP   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  M  s   t   CopyIndex7TestCasec           B@ s   e  Z d  Z d Z d Z RS(   i    i   i
   (   R0   R|   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  T  s   t   CopyIndex8TestCasec           B@ s   e  Z d  Z d Z d Z RS(   i   iÿÿÿÿi   (   R0   R|   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  Z  s   t   CopyIndex9TestCasec           B@ s   e  Z d  Z d Z d Z RS(   i   i   i   (   R0   R|   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  `  s   t   CopyIndex10TestCasec           B@ s    e  Z d  Z d Z d Z d Z RS(   i   i   i   i   (   R0   R|   RP   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  f  s   t   CopyIndex11TestCasec           B@ s   e  Z d  Z d Z d Z RS(   iýÿÿÿiÿÿÿÿi   (   R0   R|   R_   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  m  s   t   CopyIndex12TestCasec           B@ s   e  Z d  Z d Z d Z RS(   iÿÿÿÿi   N(   R0   R|   R_   R)   R`   Ra   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  s  s   t   TruncateTestCasec           B@ s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c      	   C@ s   t  t |  ƒ j ƒ  t d d ƒ } |  j j |  j j d d | d d d d	 ƒ} | j t j	 d
 d g d d g g d d ƒƒ d  S(   Nt   dflti   Ré   R    R!   i    i   R"   s   title array1iÈ  iÉ  R(   Rê   (   i    i   (
   R   R  R   R   R   R3   R   RA   R   R…   (   R   R    Ré   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   {  s    	c         C@ s¬   |  j  j j } | j d ƒ |  j rW t j r; t d ƒ n  |  j ƒ  |  j  j j } n  t j rv t d | j	 ƒ  ƒ n  |  j
 t | t j g  d d ƒj d d ƒ ƒ ƒ d S(   s8   Checking EArray.truncate() method (truncating to 0 rows)i    s   (closing file version)s	   array1-->R(   Rê   i   N(   R   R   Ré   t   truncateR   R   R=   R>   RH   Rg   RS   R   R   R…   t   reshape(   R   Ré   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test00_truncate†  s    		
		c         C@ s®   |  j  j j } | j d ƒ |  j rW t j r; t d ƒ n  |  j ƒ  |  j  j j } n  t j rv t d | j	 ƒ  ƒ n  |  j
 t | j	 ƒ  t j d d g g d d ƒƒ ƒ d S(	   s8   Checking EArray.truncate() method (truncating to 1 rows)i   s   (closing file version)s	   array1-->iÈ  i   R(   Rê   N(   R   R   Ré   R  R   R   R=   R>   RH   Rg   RS   R   R   R…   (   R   Ré   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01_truncate™  s    		
		c         C@ s·   |  j  j j } | j d ƒ |  j rW t j r; t d ƒ n  |  j ƒ  |  j  j j } n  t j rv t d | j	 ƒ  ƒ n  |  j
 t | j	 ƒ  t j d d g d d g g d d ƒƒ ƒ d	 S(
   s?   Checking EArray.truncate() method (truncating to == self.nrows)i   s   (closing file version)s	   array1-->iÈ  i   iÉ  R(   Rê   N(   R   R   Ré   R  R   R   R=   R>   RH   Rg   RS   R   R   R…   (   R   Ré   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02_truncate¬  s    		
	c         C@ s  |  j  j j } | j d ƒ |  j rW t j r; t d ƒ n  |  j ƒ  |  j  j j } n  t j rv t d | j	 ƒ  ƒ n  |  j
 | j d ƒ |  j t | d  t j d d g d d g g d d	 ƒƒ ƒ |  j t | d t j d d g d d g g d d	 ƒƒ ƒ d
 S(   s>   Checking EArray.truncate() method (truncating to > self.nrows)i   s   (closing file version)s	   array1-->i   iÈ  i   iÉ  R(   Rê   N(   R   R   Ré   R  R   R   R=   R>   RH   Rg   RL   RN   RS   R   R   R…   (   R   Ré   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03_truncateÀ  s    		
	..(   R0   R|   R   R  R  R  R  (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  y  s
   				t   TruncateOpenTestCasec           B@ s   e  Z d  Z RS(   i    (   R0   R|   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  Ù  s   t   TruncateCloseTestCasec           B@ s   e  Z d  Z RS(   i   (   R0   R|   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  Ý  s   t   Rows64bitsTestCasec           B@ s,   e  Z d  Z d Z d Z d „  Z d „  Z RS(   R'   iè  i   c         C@ s«   t  t |  ƒ j ƒ  |  j j |  j j d d t j ƒ  d d d t j d d d d	 ƒ d
 |  j	 |  j
 ƒ} t j |  j	 d d ƒ} x$ t |  j
 ƒ D] } | j | ƒ q Wd  S(   NR…   R    R!   i    R#   R   RŽ   R   i   R$   R(   t   int8(   i    (   R   R  R   R   R3   R   R,   t   Int8AtomR1   t   narowst   nanumberR   R;   R   RA   (   R   R…   t   naRD   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   è  s    	c         C@ s  |  j  j j } |  j r£ t j rq t d ƒ t d | j t | j ƒ ƒ t d | j d d ƒ t d | j	 ƒ n  |  j
 ƒ  |  j  j j } t j r£ t d ƒ q£ n  t j rRt d | j t | j ƒ ƒ t d | j d d ƒ t d | j	 ƒ t d | d ƒ |  j d	 } | d
 k r&| d	 8} n  | d } t d t j | | d d ƒƒ n  |  j |  j } |  j | j | ƒ |  j | j	 | f ƒ |  j t | d  t j d d d ƒƒ ƒ |  j d	 } | d
 k rÚ| d	 8} n  | d } |  j t | d t j | | d d ƒƒ ƒ d S(   s2   Some basic checks for earrays exceeding 2**31 rowss   Before closings   Entries:iè  t   Millionss   Shape:s   After re-opens   Last 10 elements-->iöÿÿÿi   i   i
   s   Should look like-->R(   R  Ni@B i@B (   R   R   R…   R   R   R=   R>   RN   R*   R!   RH   R   R   R;   R!  RL   RS   R   (   R   R…   R`   R_   RN   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01_basiccheckù  s@    		

		
)
i@B i¸  (   R0   R|   t	   open_modeR   R!  R   R$  (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR  â  s
   	t   Rows64bitsTestCase1c           B@ s   e  Z d  Z RS(   i    (   R0   R|   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR&  *	  s   t   Rows64bitsTestCase2c           B@ s   e  Z d  Z RS(   i   (   R0   R|   R   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR'  .	  s   t   ZeroSizedTestCasec           B@ s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   R'   c         C@ sZ   t  t |  ƒ j ƒ  |  j j d d d t ƒ  d d	 ƒ} | j d g d g d g g ƒ d  S(
   NR¹   t   testR    R!   i   i    i   i   (   i   i    (   R   R(  R   R   R3   R   RA   (   R   t   ea(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   6	  s    c         C@ sT   |  j  } | j j } t j d d	 d d ƒ } | j | ƒ |  j | j d d ƒ d S(
   s   Appending zero length array.R!   i   i    R(   R   i   s   The number of rows should be 1.N(   i   i    (   R   R   R)  R   Re   RA   RL   RN   (   R   t   filehR*  t   np(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01_canAppend?	  s
    	c         C@ sG   |  j  } | j j } t j d d d d ƒ } |  j t | j | ƒ d S(   s1   Appending zero length array with wrong dimension.R!   i   i    R(   R   N(   i   i    i   (   R   R   R)  R   Re   t   assertRaisest
   ValueErrorRA   (   R   R+  R*  R,  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02_appendWithWrongShapeH	  s    	(   R0   R|   R%  R   R-  R0  (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR(  3	  s   				t   MDAtomTestCasec           B@ sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C@ sÝ   |  j  j d d d t d ƒ d d ƒ} |  j rO |  j d ƒ |  j  j j } n  | j d d	 g d
 d g g g ƒ |  j | j	 d ƒ t
 j r¡ t d | d ƒ n  |  j t | d t j d d	 g d
 d g g d ƒ ƒ ƒ d S(   s@   Append a row to a (unidimensional) EArray with a MD tables.Atom.R¹   R)  R    i   R!   i    R'   i   i   i   i   s   First row-->R   N(   i   i   (   i    (   R   R3   R   R   RH   R   R)  RA   RL   RN   R   R=   R>   RS   R   R   R…   (   R   R*  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01a_appendT	  s    	"	c         C@ sã   |  j  j d d d t d ƒ d d ƒ} |  j rO |  j d ƒ |  j  j j } n  | j d g g d g g d	 g g g ƒ |  j | j	 d	 ƒ t
 j r§ t d
 | d ƒ n  |  j t | d t j d	 d	 g d	 d	 g g d ƒ ƒ ƒ d S(   sO   Append several rows to a (unidimensional) EArray with a MD
        tables.Atom.R¹   R)  R    i   R!   i    R'   i   i   s   Third row-->R   N(   i   i   (   i    (   R   R3   R   R   RH   R   R)  RA   RL   RN   R   R=   R>   RS   R   R   R…   (   R   R*  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test01b_appendd	  s    	(	c         C@ sï   |  j  j d d d t d ƒ d d ƒ} |  j rO |  j d ƒ |  j  j j } n  | j d	 d g d
 d g d d g g g ƒ |  j | j	 d	 ƒ t
 j rª t d | d ƒ n  |  j t | d t j d	 d g d
 d g d d g g d ƒ ƒ ƒ d S(   sJ   Append a row to a (multidimensional) EArray with a
        MD tables.Atom.R¹   R)  R    i   R!   i    i   R'   i   i   i   i   i	   s   First row-->R   N(   i   (   i    i   (   R   R3   R   R   RH   R   R)  RA   RL   RN   R   R=   R>   RS   R   R   R…   (   R   R*  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02a_appendu	  s    	+	c         C@ s+  |  j  j d d d t d ƒ d d ƒ} |  j rO |  j d ƒ |  j  j j } n  | j d	 d
 g d d g d d g g d d g d d g d d g g d d g d d g d d g g g ƒ |  j | j	 d ƒ t
 j ræ t d | d ƒ n  |  j t | d t j d d g d d g d d g g d ƒ ƒ ƒ d S(   sQ   Append several rows to a (multidimensional) EArray with a MD
        tables.Atom.R¹   R)  R    i   R!   i    i   R'   i   iýÿÿÿi   iûÿÿÿiùÿÿÿi	   iÿÿÿÿiüÿÿÿi   i   iøÿÿÿiþÿÿÿi÷ÿÿÿs   Third row-->R   N(   i   (   i    i   (   R   R3   R   R   RH   R   R)  RA   RL   RN   R   R=   R>   RS   R   R   R…   (   R   R*  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test02b_append‡	  s    	$%		c      	   C@ sá   |  j  j d d d t d ƒ d d ƒ} |  j rO |  j d	 ƒ |  j  j j } n  t j d d
 d ƒj	 d ƒ } | j
 | d | d | d g ƒ |  j | j d ƒ t j r¿ t d | d ƒ n  |  j t | d | d ƒ ƒ d S(   sJ   Complex append of a MD array in a MD EArray with a
        MD tables.Atom.R¹   R)  R    i   i   R!   i    i   R'   R(   R   i   s   Third row-->N(   i   i   (   i    i   i   i   i   i0   (   i   i   i   i   (   R   R3   R   R   RH   R   R)  R   R;   R  RA   RL   RN   R   R=   R>   RS   R   (   R   R*  R'   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03a_MDMDMD›	  s    		"	c      	   C@ s  |  j  j d d d t d ƒ d d ƒ} |  j rO |  j d	 ƒ |  j  j j } n  t j d d
 d ƒj	 d ƒ } | j
 | d ƒ | j
 | d ƒ | j
 | d ƒ |  j | j d ƒ t j rß t d | d d … d d f ƒ n  |  j t | d d … d d f | j	 d ƒ d ƒ ƒ d S(   s@   Complex append of a MD array in a MD EArray with a MD atom (II).R¹   R)  R    i   i   R!   i    i   R'   R(   R   i   s   Third row-->N.(   i   i   (   i   i    i   i   i   i0   (   i   i   i   i   i   (   i   i   i   i   (   R   R3   R   R   RH   R   R)  R   R;   R  RA   RL   RN   R   R=   R>   RS   R   (   R   R*  R'   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03b_MDMDMD®	  s    			#c      	   C@ s+  |  j  j d d d t d ƒ d d ƒ} |  j rO |  j d	 ƒ |  j  j j } n  t j d d
 d ƒj	 d ƒ } | j
 | d ƒ | j
 | d ƒ | j
 | d ƒ |  j | j d ƒ t j rè t d | d d … d d … d d f ƒ n  |  j t | d d … d d … d d f | j	 d ƒ d ƒ ƒ d S(   sA   Complex append of a MD array in a MD EArray with a MD atom (III).R¹   R)  R    i   i   R!   i   i    R'   R(   R   i   s   Third row-->N.(   i   i   (   i   i   i    i   i   i0   (   i   i   i   i   i   (   i   i   i   i   (   R   R3   R   R   RH   R   R)  R   R;   R  RA   RL   RN   R   R=   R>   RS   R   (   R   R*  R'   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test03c_MDMDMDÁ	  s    			,(	   R0   R|   R2  R3  R4  R5  R6  R7  R8  (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR1  R	  s   						t   MDAtomNoReopenc           B@ s   e  Z e Z RS(    (   R0   R|   t   FalseR   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR9  Õ	  s   t   MDAtomReopenc           B@ s   e  Z e Z RS(    (   R0   R|   t   TrueR   (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR;  Ù	  s   t   AccessClosedTestCasec           B@ s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C@ s]   t  t |  ƒ j ƒ  |  j j |  j j d d t ƒ  d d ƒ|  _ |  j j t	 j
 d ƒ ƒ d  S(   NR…   R    R!   i    i
   (   i    i
   (   i
   i
   (   R   R=  R   R   R3   R   R   R…   RA   R   t   zeros(   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR   ß	  s    c         C@ s*   |  j  j ƒ  |  j t j |  j j ƒ d  S(   N(   R   R   R.  R,   t   ClosedNodeErrorR…   Rg   (   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt	   test_readå	  s    c         C@ s-   |  j  j ƒ  |  j t j |  j j d ƒ d  S(   Ni    (   R   R   R.  R,   R?  R…   Rq   (   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_getitemé	  s    c         C@ s0   |  j  j ƒ  |  j t j |  j j d d ƒ d  S(   Ni    (   R   R   R.  R,   R?  R…   t   __setitem__(   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_setitemí	  s    c         C@ s6   |  j  j ƒ  |  j t j |  j j t j d ƒ ƒ d  S(   Ni
   (   i
   i
   (	   R   R   R.  R,   R?  R…   RA   R   R>  (   R   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_appendñ	  s    (   R0   R|   R   R@  RA  RC  RD  (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyR=  Ý	  s
   				t   TestCreateEArrayArgsc           B@ s  e  Z e j d  d d g d d d g d d d g g ƒ Z d	 Z d
 Z e j j	 e j
 ƒ Z d e j d  Z d Z d Z d Z d Z d Z e Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" RS(   i   i   i   i   i   i   i   i   i	   R¹   RC   i    R"   iè  c      	   C@ sí   |  j  j |  j |  j |  j |  j |  j |  j |  j |  j	 ƒ |  j
 ƒ  |  j  j |  j |  j ƒ } |  j | j |  j ƒ |  j | j |  j ƒ |  j | j d ƒ |  j | j |  j ƒ |  j | j j |  j j ƒ |  j | j	 |  j	 ƒ d  S(   Ni    (   R   R3   t   whereR   R    R!   R"   R#   R$   Rƒ   RH   RI   RL   RN   R(   (   R   t   ptarr(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_positional_args_01
  s    
c      	   C@ s1  |  j  j |  j |  j |  j |  j |  j |  j |  j |  j	 ƒ } | j
 |  j ƒ |  j ƒ  |  j  j |  j |  j ƒ } | j ƒ  } |  j | j |  j ƒ |  j | j |  j j ƒ |  j | j |  j j d ƒ |  j | j |  j ƒ |  j | j j |  j j ƒ |  j | j	 |  j	 ƒ |  j t |  j | ƒ ƒ d  S(   Ni    (   R   R3   RF  R   R    R!   R"   R#   R$   Rƒ   RA   R%   RH   RI   Rg   RL   RN   R(   RS   R   (   R   RG  t   nparr(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_positional_args_02
  s"    
c         C@ s+  |  j  j |  j |  j d  d  |  j |  j |  j |  j |  j	 |  j
 |  j ƒ |  j ƒ  |  j  j |  j |  j ƒ } | j ƒ  } |  j | j |  j ƒ |  j | j |  j j ƒ |  j | j |  j j d ƒ |  j | j |  j ƒ |  j | j j |  j j ƒ |  j | j |  j ƒ |  j t |  j | ƒ ƒ d  S(   Ni    (   R   R3   RF  R   R)   R"   R#   R$   Rƒ   RÜ   t   createparentsR%   RH   RI   Rg   RL   R!   RN   R    R(   RS   R   (   R   RG  RI  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_positional_args_obj+
  s&    

c      	   C@ s  |  j  j |  j |  j d |  j d |  j d |  j ƒ|  j ƒ  |  j  j |  j |  j ƒ } | j	 ƒ  } |  j
 | j |  j ƒ |  j
 | j |  j j ƒ |  j
 | j |  j j d ƒ |  j
 | j |  j ƒ |  j
 | j j |  j j ƒ |  j
 | j |  j ƒ |  j t |  j | ƒ ƒ d  S(   NR"   Rƒ   R%   i    (   R   R3   RF  R   R"   Rƒ   R%   RH   RI   Rg   RL   R!   RN   R    R(   RS   R   (   R   RG  RI  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_kwargs_objC
  s    !	

c         C@ s1  |  j  j |  j |  j d |  j d |  j d |  j d |  j ƒ} | j |  j	 ƒ |  j
 ƒ  |  j  j |  j |  j ƒ } | j ƒ  } |  j | j |  j ƒ |  j | j |  j	 j ƒ |  j | j |  j	 j d ƒ |  j | j |  j ƒ |  j | j j |  j j ƒ |  j | j |  j ƒ |  j t |  j	 | ƒ ƒ d  S(   NR"   Rƒ   R    R!   i    (   R   R3   RF  R   R"   Rƒ   R    R!   RA   R%   RH   RI   Rg   RL   RN   R(   RS   R   (   R   RG  RI  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_kwargs_atom_shape_01U
  s    		
c         C@ sï   |  j  j |  j |  j d |  j d |  j d |  j d |  j ƒ} |  j ƒ  |  j  j	 |  j |  j ƒ } |  j
 | j |  j ƒ |  j
 | j |  j ƒ |  j
 | j d ƒ |  j
 | j |  j ƒ |  j
 | j j |  j j ƒ |  j
 | j |  j ƒ d  S(   NR"   Rƒ   R    R!   i    (   R   R3   RF  R   R"   Rƒ   R    R!   RH   RI   RL   RN   R(   (   R   RG  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_kwargs_atom_shape_02i
  s    		
c         C@ s!  |  j  j |  j |  j d |  j d |  j d |  j d |  j ƒ} |  j ƒ  |  j  j	 |  j |  j ƒ } | j
 ƒ  } |  j | j |  j ƒ |  j | j |  j j ƒ |  j | j |  j j d ƒ |  j | j |  j ƒ |  j | j j |  j j ƒ |  j | j |  j ƒ |  j t |  j | ƒ ƒ d  S(   NR"   Rƒ   R%   R    i    (   R   R3   RF  R   R"   Rƒ   R%   R    RH   RI   Rg   RL   R!   RN   R(   RS   R   (   R   RG  RI  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_kwargs_obj_atom{
  s    			
c         C@ s!  |  j  j |  j |  j d |  j d |  j d |  j d |  j ƒ} |  j ƒ  |  j  j	 |  j |  j ƒ } | j
 ƒ  } |  j | j |  j ƒ |  j | j |  j j ƒ |  j | j |  j j d ƒ |  j | j |  j ƒ |  j | j j |  j j ƒ |  j | j |  j ƒ |  j t |  j | ƒ ƒ d  S(   NR"   Rƒ   R%   R!   i    (   R   R3   RF  R   R"   Rƒ   R%   R!   RH   RI   Rg   RL   RN   R    R(   RS   R   (   R   RG  RI  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_kwargs_obj_shape
  s    			
c         C@ s*  |  j  j |  j |  j d |  j d |  j d |  j d |  j d |  j ƒ} |  j	 ƒ  |  j  j
 |  j |  j ƒ } | j ƒ  } |  j | j |  j ƒ |  j | j |  j j ƒ |  j | j |  j j d ƒ |  j | j |  j ƒ |  j | j j |  j j ƒ |  j | j |  j ƒ |  j t |  j | ƒ ƒ d  S(   NR"   Rƒ   R%   R    R!   i    (   R   R3   RF  R   R"   Rƒ   R%   R    R!   RH   RI   Rg   RL   RN   R(   RS   R   (   R   RG  RI  (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_kwargs_obj_atom_shape£
  s     				
c         C@ sY   t  j j t j d ƒ ƒ } |  j t |  j j |  j	 |  j
 d |  j d |  j d | ƒd  S(   Nt   complexR"   R%   R    (   R,   R-   t
   from_dtypeR   R(   R.  t	   TypeErrorR   R3   RF  R   R"   R%   (   R   R    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_kwargs_obj_atom_error¸
  s    					c         C@ sN   |  j  |  j  } |  j t |  j j |  j |  j d |  j d |  j d | ƒd  S(   NR"   R%   R!   (	   R!   R.  RU  R   R3   RF  R   R"   R%   (   R   R!   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   test_kwargs_obj_shape_errorÃ
  s    					c         C@ sb   t  j j t j d ƒ ƒ } |  j t |  j j |  j	 |  j
 d |  j d |  j d | d |  j ƒd  S(   NRS  R"   R%   R    R!   (   R,   R-   RT  R   R(   R.  RU  R   R3   RF  R   R"   R%   R!   (   R   R    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt#   test_kwargs_obj_atom_shape_error_01Î
  s    					c         C@ sW   |  j  |  j  } |  j t |  j j |  j |  j d |  j d |  j d |  j	 d | ƒd  S(   NR"   R%   R    R!   (
   R!   R.  RU  R   R3   RF  R   R"   R%   R    (   R   R!   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt#   test_kwargs_obj_atom_shape_error_02Ú
  s    						c         C@ so   t  j j t j d ƒ ƒ } |  j |  j } |  j t |  j j	 |  j
 |  j d |  j d |  j d | d | ƒd  S(   NRS  R"   R%   R    R!   (   R,   R-   RT  R   R(   R!   R.  RU  R   R3   RF  R   R"   R%   (   R   R    R!   (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt#   test_kwargs_obj_atom_shape_error_03æ
  s    					(   i    N(   i   i   (#   R0   R|   R   R…   R%   RF  R   R,   R-   RT  R(   R    R!   R"   R)   R#   R$   Rƒ   RÜ   R:  RK  RH  RJ  RL  RM  RN  RO  RP  RQ  RR  RV  RW  RX  RY  RZ  (    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyRE  ÷	  s2   3													c          C@ så  t  j ƒ  }  d } xt | ƒ D]ú} |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t	 ƒ ƒ |  j t  j t
 ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t ƒ ƒ |  j t  j t  ƒ ƒ |  j t  j t! ƒ ƒ |  j t  j t" ƒ ƒ |  j t  j t# ƒ ƒ |  j t  j t$ ƒ ƒ |  j t  j t% ƒ ƒ |  j t  j t& ƒ ƒ |  j t  j t' ƒ ƒ |  j t  j t( ƒ ƒ |  j t  j t) ƒ ƒ |  j t  j t* ƒ ƒ |  j t  j t+ ƒ ƒ |  j t  j t, ƒ ƒ |  j t  j t- ƒ ƒ |  j t  j t. ƒ ƒ |  j t  j t/ ƒ ƒ |  j t  j t0 ƒ ƒ |  j t  j t1 ƒ ƒ |  j t  j t2 ƒ ƒ q Wt3 j4 rá|  j t  j t5 ƒ ƒ |  j t  j t6 ƒ ƒ |  j t  j t7 ƒ ƒ |  j t  j t8 ƒ ƒ |  j t  j t9 ƒ ƒ |  j t  j t: ƒ ƒ |  j t  j t; ƒ ƒ |  j t  j t< ƒ ƒ |  j t  j t= ƒ ƒ |  j t  j t> ƒ ƒ |  j t  j t? ƒ ƒ |  j t  j t@ ƒ ƒ |  j t  j tA ƒ ƒ |  j t  j tB ƒ ƒ |  j t  j tC ƒ ƒ |  j t  j tD ƒ ƒ |  j t  j tE ƒ ƒ |  j t  j tF ƒ ƒ |  j t  j tG ƒ ƒ |  j t  j tH ƒ ƒ n  |  S(   Ni   (I   R	   t	   TestSuiteR   t   addTestt	   makeSuiteR}   R~   R€   R„   R†   R‡   Rˆ   R‰   RŠ   RŒ   R   R   R‘   R“   R–   R£   R¤   R¥   R¦   R§   R¨   R©   R«   R®   R°   R²   R³   R´   R¶   RÇ   R¬   R­   R   R  R  R  R	  R
  R  R  R  R(  R9  R;  R=  RE  R   t   heavyR”   R•   R—   R˜   Rs   R™   Rš   R›   Rœ   R    R¡   R  R  R  R  R  R  R  R&  R'  (   t   theSuitet   nitert   n(    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   suiteó
  s    
	t   __main__t   defaultTestRb  (m   t
   __future__R    R   RÀ   Rã   R   R,   R   R   R   R   t   tables.utilsR   t   tables.testsR   t   tables.tests.commonR   R	   R
   t   TestCaset	   six.movesR   t   TempFileMixinR   R}   R~   R€   R„   R†   R‡   Rˆ   R‰   RŠ   R‹   RŒ   t   skipIft	   lzo_availR   t   blosc_availR   R‘   R“   R”   R•   R–   R—   R˜   Rs   R™   Rš   R›   Rœ   R   RŸ   R    R¡   R¢   R£   R¤   R¥   R¦   R§   R¨   t   bzip2_availR©   R«   R¬   R­   R®   R°   R²   R³   R´   R¶   RÇ   Rè   R   R  R  R  R  R	  R
  R  R  R  R  R  R  R  R  R  R  R  R  R&  R'  R(  R1  R9  R;  R=  RE  Rb  R0   t
   parse_argvt   argvt   print_versionst   main(    (    (    s7   lib/python2.7/site-packages/tables/tests/test_earray.pyt   <module>   sà   "ÿ ÿ Ö







	
					



	
	
	
	
	
5ÿ Xÿ qY`Hƒü	Q
