Ë
    1ÆVh6  ã                   ó<   — d dl Z ddlmZ dd„Zd„ Z G d„ de«      Zy)	é    Né   )ÚTestCasec                 óB   — | j                   j                  «       |z  dk(  S )Nr   )ÚidÚ
get_offset)ÚdatasetÚoffsets     úN/home/dcms/DCMS/lib/python3.12/site-packages/h5py/tests/test_file_alignment.pyÚ
is_alignedr      s   € à:‰:× Ñ Ó" VÑ+¨qÑ0Ð0ó    c                 ó   — d| d›S )NÚdataÚ03© )Úis    r
   Údataset_namer   
   s   € Ø!Bˆ=Ðr   c                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚTestFileAlignmentzn
        Ensure that setting the file alignment has the desired effect
        in the internal structure.
    c                 ó  — | j                  «       }d}t        j                  |d«      5 }t        d«      D ]1  }|j	                  t        |«      |d¬«      }||d<   t        |«      rŒ1 n t        d«      ‚	 d d d «       y # 1 sw Y   y xY w)N©iq  Úwéè  Úuint8©Údtype.z(Data was all found to be aligned to 4096©ÚmktempÚh5pyÚFileÚrangeÚcreate_datasetr   r   ÚRuntimeError)ÚselfÚfnameÚshapeÚh5filer   r   s         r
   Útest_no_alignment_setz'TestFileAlignment.test_no_alignment_set   s   € Ø—‘“ˆð
 ˆäY‰Yu˜cÓ"ð 	O fô ˜4“[ò 
OØ ×/Ñ/Ü  “O U°'ð 0ó ;ð  !˜‘Ü! 'Õ*áð
Oô #Ð#MÓNÐNð ÷	O÷ 	Oñ 	Oús   ©<A>Á&A>Á>Bc                 ó   — d}d}dD ]y  }| j                  «       }t        j                  |d||¬«      5 }t        d«      D ]6  }|j	                  t        |«      |d¬«      }|dz  |d	<   t        ||¬
«      rŒ6J ‚ 	 d d d «       Œ{ y # 1 sw Y   Œ†xY w)Nr   é   ))i	  )r   )ié  r   ©Úalignment_thresholdÚalignment_intervalr   r   é   .©r	   )r   r   r   r    r!   r   r   ©r#   r+   r,   r%   r$   r&   r   r   s           r
   Ú"test_alignment_set_above_thresholdz4TestFileAlignment.test_alignment_set_above_threshold.   sÀ   € ð #ÐØ!Ðð
ò 	JˆEð
 —K‘K“MˆEÜ—‘˜5 #Ø/BØ.@ôBð JàEKô ˜t›ò JAØ$×3Ñ3Ü$ Q›¨°gð 4ó ?Gð %&¨¡GG˜C‘LÜ% gÐ6HÖIÐIÐIñJ÷Jð Jñ	J÷Jð Jús   ³ABÁ5BÂB	c                 ó8  — d}d}dD ]…  }| j                  «       }t        j                  |d||¬«      5 }t        d«      D ]3  }|j	                  t        |«      |d¬«      }||d<   t        ||¬	«      rŒ3 n t        d
|› d«      ‚	 d d d «       Œ‡ y # 1 sw Y   Œ’xY w)Nr   i   )r   )iç  r   r*   r   r   .r.   z$Data was all found to be aligned to z. This is highly unlikely.r   r/   s           r
   Ú"test_alignment_set_below_thresholdz4TestFileAlignment.test_alignment_set_below_thresholdG   sá   € ð #ÐØ!Ðð
ò 	KˆEð —K‘K“MˆEÜ—‘˜5 #Ø/BØ.@ôBð KàEKô ˜t›ò KAØ$×3Ñ3Ü$ Q›¨°gð 4ó ?Gð $%G˜C‘LÜ% gÐ6HÖIáðKô 'Ø>Ø-Ð.Ð.HðJóKð Kð ÷#Kð Kñ	K÷
Kð Kús   ³>BÁ2BÂB	N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r'   r0   r2   r   r   r
   r   r      s   „ ñòOò6Jó2 Kr   r   )r)   )r   Úcommonr   r   r   r   r   r   r
   ú<module>r8      s%   ðÛ Ý ó1ò
ôYK˜õ YKr   