+
    xȇi:                        ^ RI t ^ RIt^ RIt^ RIt^ RIHtHtHt ^ RI	H
t
Ht ^ RIHtHtHtHtHtHtHt ^ RIHt ^ RIHt ]P2                  ! R4      t]P6                  P8                  .t]P6                  P=                  R. R!O4      R	 4       tR
 t R t!R t"R t#R t$R t%]P6                  P=                  R]&! ^
4      4      ]P6                  P=                  R]PN                  PP                  4      ]P6                  PS                  R4      R 4       4       4       t*]P6                  PW                  ]! 4       '       * RR7      R 4       t,]P6                  P=                  R. R"O. R#O. R$O. R%O. R&O. R'O. R(O]PZ                  RRR.R]PZ                  RRR..	4      ]P6                  P=                  RRR.4      R 4       4       t.R t/R  t0R# ))    N)is_platform_linuxis_platform_little_endianis_platform_mac)ClosedFileErrorPossibleDataLossError)	DataFrameHDFStoreIndexSeries_testing
date_rangeread_hdf)pytables)Termtablesmodec           
      (   \        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        R^
RR7      R7      pRp\        P                  ! 4        R2pVR9   d;   \        P                  ! \        VR	7      ;_uu_ 4        \        WQR
7       RRR4       M;\        WR
7      ;_uu_ 4       pVP                  P                   V8X  g   Q h RRR4       VR9   dM   \        P                  ! \        VR	7      ;_uu_ 4        \        WQR
7      ;_uu_ 4       p RRR4       RRR4       M;\        WR
7      ;_uu_ 4       pVP                  P                   V8X  g   Q h RRR4       VR9   dW   \        P                  ! \        VR	7      ;_uu_ 4        VP#                  VRVR7       RRR4       VP#                  V RRR7       MVP#                  V RVR7       VR9   d@   Rp\        P                  ! \$        VR	7      ;_uu_ 4        \'        V RVR
7       RRR4       R# \'        V RVR
7      pV'       d!   VP(                  P+                  R4      Vn        \,        P.                  ! Ws4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELR; i  + '       g   i     ELf; i  + '       g   i     EL2; i  + '       g   i     R# ; i)   ABCDdtype
2000-01-01Bperiodsfreqcolumnsindexz[\S]* does not exist.h5matchr   Ndfkeyr   wzNmode w is not allowed while performing a read. Allowed modes are r, r\+ and a.str
      )rr+)r'   )r   nprandomdefault_rngstandard_normalr
   listobjectr   uuiduuid4pytestraisesOSErrorr	   _handler   to_hdf
ValueErrorr   r   astypetmassert_frame_equal)temp_h5_pathr   using_infer_stringr$   msgdoesnt_existstoreresults   &&&     {/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/io/pytables/test_file_handling.py	test_moderF   "   s3   	
		a 009d6l&1r<
B
 "Cjjl^3'L {]]7#..\- /. l..%==%%--- / {]]7#..,22e 3 /. l..%==%%--- / {]]7#..IIl4I8 /
		,Ds	3
		,Dt	4 u}/ 	 ]]:S11\4d3 21 ,48**51BJ
f)I /.. /.. 322 /.. /..
 /.. 211s`   $JJ K5J0	7KK.K,!L J	J-	0K;	KK	K)	,K=	 L	c           
         \        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        R^
RR7      R7      pVP                  V RRR	7       \        V R4      pVP                  4       pV'       d!   VP                  P                  R
4      Vn        \        P                  ! W44       R# )r   r   r   r   r   r   r   r$   r'   r%   r(   Nr)   )r   r.   r/   r0   r1   r
   r2   r3   r   r:   r   copyr   r<   r=   r>   )r?   r@   r$   rD   expecteds   &&   rE   test_default_moderJ   U   s    	
		a 009d6l&1r<
B
 IIl3I/lD)FwwyH#++2259&+    c                 p   \        V R R7      p\        \        P                  ! ^
\        P                  R7      \        R^
R7      R7      VR &   Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  R4       R	R	R	4       VP                  4        VP                  '       d   Q hVP                  R4       VP                  '       g   Q h\        V4      ^ 8X  g   Q hVP                  4        VP                  '       d   Q h\        V R R7      p\        \        P                  ! ^
\        P                  R7      \        R^
R7      R7      VR &   VP                  R
4       VP                  '       g   Q h\        V4      ^8X  g   Q hVP                  R
8X  g   Q hVP                  4        VP                  '       d   Q hVP                  R 4       VP                  '       g   Q h\        V4      ^8X  g   Q hVP                  R 8X  g   Q hVP                  4        VP                  '       d   Q hVP                  R 4       VP                  '       g   Q h\        V4      ^8X  g   Q hVP                  R 8X  g   Q hVP                  4        VP                  '       d   Q hR	#   + '       g   i     EL(; i)ar#   r   z
2020-01-01)r   r   zKRe-opening the file \[[\S]*\] with mode \[a\] will delete the current file!r!   r'   Nr,   )r	   r   r.   arangefloat64r   r6   r7   r   opencloseis_openlen_mode)r?   rC   rA   s   &  rE   test_reopen_handlerV   d   s   \,E
		"BJJ'z,PR/SE#J
	 
 
,C	8	8

3 
9 
KKM}}} 
JJsO====u:??	KKM}}}\,E
		"BJJ'z,PR/SE#J
 
JJsO====u:??;;#	KKM}}} 
JJsO====u:??;;#	KKM}}} 
JJsO====u:??;;#	KKM}}}}Q 
9	8	8s   3J$$J5	c                    \         P                  ! 4        R 2p\        R\        P                  ! ^x4      P                  R4      ,          \        \        R4      \        R7      \        \        ^4       Uu. uF  pRV 2NK
  	  up\        R7      R7      p\        VRR^ R7      pW4R	&   VP                  R
V4       VP                  4       pV '       dA   VP                  P                  R4      Vn        VP                  P                  R4      Vn        \         P"                  ! VR	,          V4       \         P"                  ! VR
,          V4       VP%                  4        \&        P(                  P+                  V4      '       d   Q hR# u upi )r    皙?r   r   i-r   rM   	H5FD_CORE)r   driverdriver_core_backing_storer$   df2r(   N   r+   )r4   r5   r   r.   rO   reshaper
   r2   r3   ranger	   appendrH   r   r<   r   r=   r>   rR   ospathexists)r@   not_writtenir$   rC   rI   s   &     rE   test_open_argsrh      s'   ZZ\N#&K	biin$$W--d6l&1uRy1y!r!Xy1@
B #kQE $K	LLwwyH!..u5#++2259%+x0%,1	KKM ww~~k*****+ 2s   4Fc                     \        V R R7      ;_uu_ 4       p\        \        ^4      4      VR&   VP                  4        VP                  RR7       RRR4       R#   + '       g   i     R# ; i)r'   r#   rM   T)fsyncN)r	   r   ra   flushr?   rC   s   & rE   
test_flushrm      sI    	,S	)	)UE!H%c
$ 
*	)	)	)s   :AA+	c                    \        R \        P                  ! ^x4      P                  R4      ,          \	        \        R4      \        R7      \	        \        ^4       Uu. uF  pRV 2NK
  	  up\        R7      R7      pVP                  V R^	R7       \        V R4      pVP                  4       pV'       dA   VP                  P                  R4      Vn        VP                  P                  R4      Vn        \        P                  ! WE4       \         P#                  V RR	7      ;_uu_ 4       pVP%                  R
RR7       F=  pVP&                  P(                  ^	8X  g   Q hVP&                  P*                  R8X  d   K=  Q h	  RRR4       VP                  V RRR7       \        V R4      pVP                  4       pV'       dA   VP                  P                  R4      Vn        VP                  P                  R4      Vn        \        P                  ! WE4       \         P#                  V RR	7      ;_uu_ 4       pVP%                  R
RR7       F:  pVP&                  P(                  ^ 8X  g   Q hVP&                  P*                  f   K:  Q h	  RRR4       VP                  V RR7       \        V R4      pVP                  4       pV'       dA   VP                  P                  R4      Vn        VP                  P                  R4      Vn        \        P                  ! WE4       \         P#                  V RR	7      ;_uu_ 4       pVP%                  R
RR7       F:  pVP&                  P(                  ^ 8X  g   Q hVP&                  P*                  f   K:  Q h	  RRR4       R# u upi   + '       g   i     EL%; i  + '       g   i     EL2; i  + '       g   i     R# ; i)rX   r   r   rY   r   r$   )r&   	complevelr(   r,   r#   /dfLeafwhere	classnamezlibN)r&   complib)r&   r^   )r   r.   rO   r`   r
   r2   r3   ra   r:   r   rH   r   r<   r   r=   r>   r   	open_file
walk_nodesfiltersro   rv   )r?   r@   rg   r$   rD   rI   h5filenodes   &&      rE   test_complibs_default_settingsr|      s   	biin$$W--d6l&1uRy1y!r!Xy1@
B IIlI2lD)FwwyH!..u5#++2259&+			,S		1	1V%%EV%DD<<))Q...<<''6111 E 
2 IIlfI5lD)FwwyH!..u5#++2259&+			,S		1	1V%%EV%DD<<))Q...<<''/// E 
2 IIlI%lD)FwwyH!..u5#++2259&+			,S		1	1V%%EV%DD<<))Q...<<''/// E 
2	1S 2 
2	1	1 
2	1	1 
2	1	1s?   N)AN:N3A	N.N.9A	OON+	.N?	O	c                 L   \        R \        P                  ! ^x4      P                  R4      ,          \	        \        R4      \        R7      \	        \        ^4       Uu. uF  pRV 2NK
  	  up\        R7      R7      p\        V 4      pVP                  RV^	RR7       VP                  RV4       VP                  4        \        P                  V R	R
7      ;_uu_ 4       pVP                  RRR7       F:  pVP                  P                  ^ 8X  g   Q hVP                  P                   f   K:  Q h	  VP                  RRR7       F=  pVP                  P                  ^	8X  g   Q hVP                  P                   R8X  d   K=  Q h	  RRR4       R# u upi   + '       g   i     R# ; i)rX   r   r   rY   r   dfcblosc)ro   rv   r$   r,   r#   rp   rq   rr   Nz/dfcr^   )r   r.   rO   r`   r
   r2   r3   ra   r	   rb   rR   r   rw   rx   ry   ro   rv   )r?   rg   r$   rC   rz   r{   s   &     rE   'test_complibs_default_settings_overrider      sV   	biin$$W--d6l&1uRy1y!r!Xy1@
B
 \"E	LLaL9	LLr	KKM			,S		1	1V%%EV%DD<<))Q...<<''/// E %%Ff%ED<<))Q...<<''7222 F	 
2	1 2 
2	1	1s    FA	F+AF?FF#	lvllibz!ignore:object name is not a validc                    \        4       '       dB   VR 8X  d;   V^ 8w  d4   VP                  \        P                  P	                  RV R2R7      4       \        \        P                  ! R4      \        R4      \        P                  ! ^4      P                  \        P                  4      R7      p\        P                  R4      '       g   \        P                  ! R4       \        P                  R4      '       g   \        P                  ! R	4       W R
V R2,          pV R
V 2pVP                  WVW!R7       \!        WV4      p\"        P$                  ! Wt4       \'        4       p\        P)                  VRR7      ;_uu_ 4       p	V	P+                  RV,           RR7       F  p
V
P,                  P.                  V8X  g   Q hV^ 8X  d   V
P,                  P0                  e   Q hKC  V'       d/   VR 8X  d(   V
P,                  P0                  pWR39   g   Q V4       hKy  V
P,                  P0                  V8X  d   K  Q h	  RRR4       R#   + '       g   i     R# ; i)blosc2z
Fails for z	 on Linuxreasonr   r   lzozlzo not availablebzip2zbzip2 not available_r    )r&   rv   ro   r,   r#   /rq   rr   Nzblosc2:blosclzr^   )r   applymarkerr6   markxfailr   r.   onesr2   rO   r<   str_r   which_lib_versionskipr:   r   r=   r>   r   rw   rx   ry   ro   rv   )tmp_pathr   r   requestr$   tmpfilegnamerD   is_mach5tabler{   ress   &&&&        rE   test_complibsr     s   
 sh3!8FKK--z#i5P-QR	
$v,biim6J6J2776S
B
 ##E**'(##G,,)*5#c**Ge1SENE IIg#I=g%F&%F 
		'		,	,&&S5[F&KD<<))S000ax||++333C8Oll**$455:s:5||++s222 L 
-	,	,	,s   A%I(AI3II	z$reason platform is not little endianr   c                    \        R RRR/\        ^4      R7      p\        P                  VP                  R&   \        P                  VP                  R&   V P                  RVRR7       \        P                  ! V R,          V4       VP                  R .R7      pV P                  R\        R	RR7      4      p\        P                  ! W24       R
# )Afoor   barrN   r$   ascii)encoding)r   z	columns=AN)r   r   )   r   )r   ra   r.   nanlocrb   r=   r>   reindexselectr   )temp_hdfstorer$   rI   rD   s   &   rE   test_encodingr   0  s     
CU+58	<BVVBFF6NVVBFF6NrG4--r2zz3%z(H!!$[7(KLF&+rK   valrK      b   c   Ar   categoryc                    R pRpRpV Uu. uF,  p\        V\        4      '       d   VP                  V4      MTNK.  	  pp\        W!R7      pVP	                  WRW4R7       \        W4      pVR8X  d;   WGP                  P                  9   d   VP                  P                  V.4      p	M#Tp	M VP                  V\        P                  4      p	\        P                  ! W4       R# u upi )zlatin-1 datar   table)r&   formatr   nan_repr   N)
isinstancebytesdecoder   r:   r   cat
categoriesremove_categoriesreplacer.   r   r=   assert_series_equal)
r?   r   r   encr   r&   xserretrs_nans
   &&&       rE   test_latin_encodingr   ?  s      CG
CAD
EAJq%00188C=a7C
E

"CJJ|WsJTL&D 
gg(((GG--wi8EEGRVV,5'! Fs   2C#c                    \        R \        P                  ! ^x4      P                  R4      ,          \	        \        R4      \        R7      \	        \        ^4       Uu. uF  pRV 2NK
  	  up\        R7      R7      pVP                  V RRRR7       \        V 4      pR	VP                  4       9  g   Q hVP                  '       g   Q hVP                  4        R	VP                  4       9   g   Q hVP                  '       d   Q h\        P                  '       dX   \        V 4      pR
p\        P                   ! \"        VR7      ;_uu_ 4        \        V 4       RRR4       VP                  4        EM\        V 4      p\        V 4      pR	VP                  4       9  g   Q hR	VP                  4       9  g   Q hVP                  '       g   Q hVP                  '       g   Q hVP                  4        R	VP                  4       9   g   Q hVP                  '       d   Q hR	VP                  4       9  g   Q hVP                  '       g   Q hVP                  4        R	VP                  4       9   g   Q hR	VP                  4       9   g   Q hVP                  '       d   Q hVP                  '       d   Q h\        V RR7      pVP%                  RV4       \        V 4      pVP%                  RV4       VP                  4        R	VP                  4       9   g   Q hVP                  '       d   Q hVP                  4        R	VP                  4       9   g   Q hVP                  '       d   Q h\        V RR7      pVP%                  RV4       \        V 4      pVP                  4        R	VP                  4       9   g   Q hVP                  '       d   Q hVP                  4        R	VP                  4       9   g   Q hVP                  '       d   Q h\        R \        P                  ! ^x4      P                  R4      ,          \	        \        R4      \        R7      \	        \        ^4       Uu. uF  pRV 2NK
  	  up\        R7      R7      pVP                  V RRRR7       \        V 4      pVP                  4        Rp\        P                   ! \&        VR7      ;_uu_ 4        VP)                  4        RRR4       \        P                   ! \&        VR7      ;_uu_ 4        RV9    RRR4       \        P                   ! \&        VR7      ;_uu_ 4        \+        V4       RRR4       \        P                   ! \&        VR7      ;_uu_ 4        VR,           RRR4       \        P                   ! \&        VR7      ;_uu_ 4        VP-                  R4       RRR4       \        P                   ! \&        VR7      ;_uu_ 4        VP/                  R4       RRR4       \        P                   ! \&        VR7      ;_uu_ 4        VP%                  RV4       RRR4       \        P                   ! \&        VR7      ;_uu_ 4        VP1                  RV4       RRR4       \        P                   ! \&        VR7      ;_uu_ 4        VP3                  R4       RRR4       \        P                   ! \&        VR7      ;_uu_ 4        VP5                  R4       RRR4       \        P                   ! \&        VR7      ;_uu_ 4        VP-                  R4       RRR4       Rp\        P                   ! \6        VR7      ;_uu_ 4        VP8                   RRR4       R# u upi   + '       g   i     EL-; iu upi   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL~; i  + '       g   i     EL\; i  + '       g   i     EL2; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL^; i  + '       g   i     EL4; i  + '       g   i     R# ; i)rX   r   r   rY   r   r$   r'   r   )r&   r   r   CLOSEDzTThe file [\S]* is already opened\.  Please close it before reopening in write mode\.r!   Nr#   r]   z[\S]* file is not open!df3z''HDFStore' object has no attribute 'df'r^   )r   r.   rO   r`   r
   r2   r3   ra   r:   r	   inforS   rR   r   !_table_file_open_policy_is_strictr6   r7   r;   rb   r   keysrT   r   getput
get_storerremoveAttributeErrorr$   )r?   rg   r$   rC   store1rA   store2s   &      rE   test_multiple_open_closer   f  s    
biin$$W--d6l&1uRy1y!r!Xy1@
B
 IIl3wI? \"E5::<'''====	KKMuzz|###}}}111,') 	 ]]:S11\" 2 	 ,','v{{},,,v{{},,,~~~~~~~~6;;=(((>>>!!v{{},,,~~~~6;;=(((6;;=(((>>>!!>>>!! C0T2,'eR 6;;=(((>>>!!5::<'''===   C0T2,'5::<'''===  6;;=(((>>>!! 
biin$$W--d6l&1uRy1y!r!Xy1@
B
 IIl3wI?\"E	KKM
$C	c	2	2

 
3 
c	2	2 
3 
c	2	2E
 
3 
c	2	2d 
3 
c	2	2T 
3 
c	2	2		$ 
3 
c	2	2UB 
3 
c	2	2		% 
3 
c	2	2 
3 
c	2	2U 
3 
c	2	2T 
3 4C	~S	1	1 
2	1o 2( 211r 2 
3	2	2 
3	2	2 
3	2	2 
3	2	2 
3	2	2 
3	2	2 
3	2	2 
3	2	2 
3	2	2 
3	2	2 
3	2	2 
2	1	1s   ]4	]9^
^^&9^:1
_'_"%_6#`
"`!`2aaa.9^
	^#	&^7	:_	_	"_3	6`	
`	`/	2a	a	a+	.a?	c                     \        V 4      ;_uu_ 4       p\        P                  ! V4      \        V 4      8X  g   Q h R R R 4       R #   + '       g   i     R # ; i)N)r	   rc   fspathr(   rl   s   & rE   test_fspathr     s:    	,		5yy3|#4444 
 			s   'AA	)r,   r-   rM   r'   )   E, 17rK      ar   r   )r   r   r   r   )s   EE, 17rK   r   r   r   )r      r   r   r   )rK   r   r   r   )r   r   r   r   )r   rK   r   r   r   )1rc   r4   numpyr.   r6   pandas.compatr   r   r   pandas.errorsr   r   pandasr   r	   r
   r   r   r=   r   r   	pandas.ior   pandas.io.pytablesr   importorskipr   r   
single_cpu
pytestmarkparametrizerF   rJ   rV   rh   rm   r|   r   ra   ry   all_complibsfilterwarningsr   skipifr   r   r   r   r    rK   rE   <module>r      s   	    

    #			X	&kk$$%
 !67/* 8/*d,3l+: 10h3* b	* ; ;<?@#3 A = +#3L !##,R  	,	, 	-(*5'-	dD!	rvvsD$/
 :t"45( 6(0~B5rK   