ó
    Eñi;T  ã                   óJ  • S SK r S SKrS SKJr  S SKJr  S SKJr  S SKr	S SK
Jr  S SKJr  S SKJr  SS	KJr  SS
KJrJr  SSKJr  SSKJr  SrSr\ R6                  " S5      rSSS.r\" S/\" S5      -   5       H0  u  r r!S\ -  \\!'   \!(       d  M  S\ -  \\!RE                  5       S-   '   M2     S,S jr#S,S jr$S\%S\\%\%4   4S jr& " S S5      r' " S S5      r(S r)S  r*S-S! jr+S-S" jr,S,S# jr-S,S$ jr.S\4S% jr/S,S& jr0S,S' jr1S,S( jr2S\4S) jr3S,S* jr4\+r5\,r6\.r7\0r8\2r9\4r:/ S+Qr;g).é    N)ÚNumber)ÚPath)ÚDict)ÚLegacyPlugin)ÚArray)ÚPluginV3é   )Úformats)Úknown_extensionsÚknown_plugins)ÚRETURN_BYTES)ÚimopenÚ256MBÚ1GBz"^(\d+\.?\d*)\s*([kKMGTPEZY]?i?)B?$)Ú Nr   ÚkMGTPEZYiè  i   Úic                 óf  • U (       d  [        S5      n U SL a  Un [        U [        5      (       a  U $ [        R	                  U 5      nUc  [        SR                  U 5      5      eUR                  5       u  p4 [        U5      [        U   -  $ ! [         a    [        SR                  U5      5      ef = f)NÚinfTzEMemory size could not be parsed (is your capitalisation correct?): {}zEMemory size unit not recognised (is your capitalisation correct?): {})
ÚfloatÚ
isinstancer   Úmem_reÚmatchÚ
ValueErrorÚformatÚgroupsÚsizesÚKeyError)ÚargÚdefaultr   ÚnumÚunits        ÚG/home/mande/repo/quber/.venv/lib/python3.13/site-packages/imageio/v2.pyÚ	to_nbytesr$   !   s«   € ÞÜ�E‹lˆà
ˆd‚{Øˆä�#”v×ÑØˆ
ä�L‰L˜Ó€EØ�}Üð4ß4:±F¸3³Kó
ð 	
ð
 —‘“�I€Cð
Ü�S‹zœE $™KÑ'Ð'øÜó 
äð4ß4:±F¸4³Ló
ð 	
ð
ús   Á6B Â%B0c                 óV   • U (       d  [        [        5        g[        [        U    5        g)a#  help(name=None)

Print the documentation of the format specified by name, or a list
of supported formats if name is omitted.

Parameters
----------
name : str
    Can be the name of a format, a filename extension, or a full
    filename. See also the :doc:`formats page <../formats/index>`.
N)Úprintr
   )Únames    r#   Úhelpr(   >   s   € ö ÜŒg�äŒg�d‰mÕó    Úformat_nameÚreturnc                 óò  • SnSnU c  Oì[        U 5      R                  R                  5       [        ;   a$  [        U 5      R                  R                  5       nO�U [        ;   a  U nO�U R                  5       [        ;   a  U R                  5       nOgU R                  5       [        ;   a  U R                  5       nO>SU R                  5       -   [        ;   a  SU R                  5       -   nO[        SU S35      eXS.$ )z§Split format into plugin and format

The V2 API aliases plugins and supported formats. This function
splits these so that they can be fed separately to `iio.imopen`.

NÚ.zNo format known by name `z`.)ÚpluginÚ	extension)r   ÚsuffixÚlowerr   r   ÚupperÚ
IndexError)r*   r.   r/   s      r#   Údecypher_format_argr4   P   sá   € ð €FØ€IàÑØÜ	ˆkÓ	×	!Ñ	!×	'Ñ	'Ó	)Ô-=Ó	=Ü˜Ó%×,Ñ,×2Ñ2Ó4‰	Ø	œÓ	%Ø‰Ø	×	Ñ	Ó	¤Ó	-Ø×"Ñ"Ó$‰Ø	×	Ñ	Ó	Ô 0Ó	0Ø×%Ñ%Ó'‰	Ø	ˆ{× Ñ Ó"Ñ	"Ô&6Ó	6Ø˜+×+Ñ+Ó-Ñ-‰	äÐ4°V°H¸BÐ?Ó@Ð@àÑ5Ð5r)   c                   óŽ   • \ rS rSrS\4S jrS rS rS rS r	\
S 5       r\
S	 5       rS
 rS rS rS rSS jrS rS rS rSrg)ÚLegacyReaderém   Úplugin_instancec                 ó¸   • Xl         SU l        SU l        [        U R                   5      R                  S:X  a  UR                  S5      b  US   US'   US	 X l        g ©Nr   FÚPillowPluginÚpilmodeÚmode)ÚinstanceÚ
last_indexÚclosedÚtypeÚ__name__ÚgetÚ	read_args©Úselfr8   Úkwargss      r#   Ú__init__ÚLegacyReader.__init__n   sX   € Ø'ŒØˆŒØˆŒô �—‘Ó×(Ñ(¨NÓ:Ø—
‘
˜9Ó%Ñ1à# IÑ.ˆF�6‰NØ�yÐ!à�r)   c                 óh   • U R                   (       d  U R                  R                  5         SU l         g ©NT©r@   r>   Úclose©rF   s    r#   rM   ÚLegacyReader.close|   ó    € Ø�{�{Ø�M‰M×ÑÔ!Øˆ�r)   c                 ó   • U $ ©N© rN   s    r#   Ú	__enter__ÚLegacyReader.__enter__�   ó   € Øˆr)   c                 ó$   • U R                  5         g rR   ©rM   ©rF   rA   ÚvalueÚ	tracebacks       r#   Ú__exit__ÚLegacyReader.__exit__„   ó   € Ø�
‰
�r)   c                 ó$   • U R                  5         g rR   rX   rN   s    r#   Ú__del__ÚLegacyReader.__del__‡   r^   r)   c                 ó.   • U R                   R                  $ rR   ©r>   ÚrequestrN   s    r#   rd   ÚLegacyReader.requestŠ   ó   € à�}‰}×$Ñ$Ð$r)   c                 ó   • [        S5      e©NzV3 Plugins don't have a format.©Ú	TypeErrorrN   s    r#   r   ÚLegacyReader.formatŽ   ó   € äÐ9Ó:Ð:r)   c                 óH   • U R                   R                  SS9R                  $ )N.)Úindex)r>   Ú
propertiesÚn_imagesrN   s    r#   Ú
get_lengthÚLegacyReader.get_length’   s    € Ø�}‰}×'Ñ'¨cÐ'Ð2×;Ñ;Ð;r)   c                 ó¨   • Xl         U R                  R                  " SSU0U R                  D6nU R                  R	                  USS9n[        X#5      $ )Nrn   F©rn   Úexclude_appliedrS   )r?   r>   ÚreadrD   Úmetadatar   )rF   rn   Úimgrw   s       r#   Úget_dataÚLegacyReader.get_data•   sK   € ØŒØ�m‰m× Ò Ñ? uÐ?°·±Ñ?ˆØ—=‘=×)Ñ)°ÀuÐ)ÐMˆÜ�SÓ#Ð#r)   c                 ó>   • U R                  U R                  S-   5      $ ©Nr	   )ry   r?   rN   s    r#   Úget_next_dataÚLegacyReader.get_next_data›   s   € Ø�}‰}˜TŸ_™_¨qÑ0Ó1Ð1r)   c                 ó   • US-
  U l         g r|   )r?   ©rF   rn   s     r#   Úset_image_indexÚLegacyReader.set_image_indexž   s   € Ø !™)ˆ�r)   Nc                 ó6   • U R                   R                  USS9$ ©NFrt   )r>   rw   r€   s     r#   Úget_meta_dataÚLegacyReader.get_meta_data¡   s   € Ø�}‰}×%Ñ%¨EÀ5Ð%ÐIÐIr)   c              #   ó²   #   • [        U R                  R                  5       5       H,  u  pU R                  R                  USS9n[	        X#5      v •  M.     g 7fr„   )Ú	enumerater>   Úiterrw   r   )rF   Úidxrx   rw   s       r#   Ú	iter_dataÚLegacyReader.iter_data¤   sG   é € Ü! $§-¡-×"4Ñ"4Ó"6Ö7‰HˆCØ—}‘}×-Ñ-°CÈÐ-ÐOˆHÜ˜Ó&Ô&ò 8ùs   ‚AAc                 ó"   • U R                  5       $ rR   )r‹   rN   s    r#   Ú__iter__ÚLegacyReader.__iter__©   s   € Ø�~‰~ÓÐr)   c                 ó"   • U R                  5       $ rR   )rq   rN   s    r#   Ú__len__ÚLegacyReader.__len__¬   s   € Ø�‰Ó Ð r)   )r@   r>   r?   rD   rR   )rB   Ú
__module__Ú__qualname__Ú__firstlineno__r   rH   rM   rT   r\   r`   Úpropertyrd   r   rq   ry   r}   r�   r…   r‹   rŽ   r‘   Ú__static_attributes__rS   r)   r#   r6   r6   m   ss   † ð ¨ô  òò
òòð ñ%ó ð%ð ñ;ó ð;ò<ò$ò2ò$ôJò'ò
 õ!r)   r6   c                   ój   • \ rS rSrS\4S jrS rS rS rS r	\
S 5       r\
S	 5       rSS jrS rSrg
)ÚLegacyWriteré°   r8   c                 ó    • Xl         SU l        SU l        [        U R                   5      R                  S:X  a  SU;   a  US   US'   US	 X l        g r:   )r>   r?   r@   rA   rB   Ú
write_argsrE   s      r#   rH   ÚLegacyWriter.__init__±   sN   € Ø'ŒØˆŒØˆŒä�—‘Ó×'Ñ'¨>Ó9¸iÈ6Ó>QØ# IÑ.ˆF�6‰NØ�yÐ!à �r)   c                 óh   • U R                   (       d  U R                  R                  5         SU l         g rK   rL   rN   s    r#   rM   ÚLegacyWriter.close¼   rP   r)   c                 ó   • U $ rR   rS   rN   s    r#   rT   ÚLegacyWriter.__enter__Á   rV   r)   c                 ó$   • U R                  5         g rR   rX   rY   s       r#   r\   ÚLegacyWriter.__exit__Ä   r^   r)   c                 ó$   • U R                  5         g rR   rX   rN   s    r#   r`   ÚLegacyWriter.__del__Ç   r^   r)   c                 ó.   • U R                   R                  $ rR   rc   rN   s    r#   rd   ÚLegacyWriter.requestÊ   rf   r)   c                 ó   • [        S5      erh   ri   rN   s    r#   r   ÚLegacyWriter.formatÎ   rl   r)   Nc                 ó‚   • Ub  [         R                  " S5        U R                  R                  " U40 U R                  D6$ )Nz\V3 Plugins currently don't have a uniform way to write metadata, so any metadata is ignored.)ÚwarningsÚwarnr>   Úwriterœ   )rF   ÚimÚmetas      r#   Úappend_dataÚLegacyWriter.append_dataÒ   s;   € ð ÑÜ�MŠMð?ôð �}‰}×"Ò" 2Ñ9¨¯©Ñ9Ð9r)   c                 ó   • [        S5      e)Nz<V3 Plugins don't have a uniform way to write metadata (yet).)ÚNotImplementedError)rF   r¯   s     r#   Úset_meta_dataÚLegacyWriter.set_meta_dataä   s   € ä!ØJó
ð 	
r)   )r@   r>   r?   rœ   rR   )rB   r“   r”   r•   r   rH   rM   rT   r\   r`   r–   rd   r   r°   r´   r—   rS   r)   r#   r™   r™   °   sT   † ð	!¨ô 	!òò
òòð ñ%ó ð%ð ñ;ó ð;ô:õ$
r)   r™   c                 óÒ   • [        U [        [        45      (       a  g[        R                  " U 5      n U R
                  S::  a  gU R
                  S:X  a  U R                  S   S:  a  gg)NTé   Fé   é   )r   ÚlistÚtupleÚnpÚasarrayÚndimÚshape©Úndimages    r#   Úis_batchrÂ   ë   sU   € Ü�'œD¤%˜=×)Ñ)Øä�jŠj˜Ó!€GØ‡|�|�qÓØØ	�‰˜Ó	˜wŸ}™}¨QÑ/°!Ó3Øàr)   c                 óâ   • [         R                  " U 5      n [        U 5      (       d  gU R                  S:X  a  U R                  S   S:¼  a  gU R                  S:X  a  U R                  S   S:  a  gg)NFr¸   r·   r¹   Té   )r¼   r½   rÂ   r¾   r¿   rÀ   s    r#   Ú	is_volumerÅ   ø   s_   € Ü�jŠj˜Ó!€GÜ�G×ÑØà‡|�|�qÓ˜WŸ]™]¨1Ñ-°Ó2ØØ	�‰˜Ó	˜wŸ}™}¨QÑ/°!Ó3Øàr)   c                 ó¨   • [        U5      nSUS'   [        U SU-   40 UD6n[        U[        5      (       a  UR                  " S0 UD6$ [        U40 UD6$ )ah  get_reader(uri, format=None, mode='?', **kwargs)

Returns a :class:`.Reader` object which can be used to read data
and meta data from the specified file.

Parameters
----------
uri : {str, pathlib.Path, bytes, file}
    The resource to load the image from, e.g. a filename, pathlib.Path,
    http address or file object, see the docs for more info.
format : str
    The format to use to read the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
mode : {'i', 'I', 'v', 'V', '?'}
    Used to give the reader a hint on what the user expects (default "?"):
    "i" for an image, "I" for multiple images, "v" for a volume,
    "V" for multiple volumes, "?" for don't care.
kwargs : ...
    Further keyword arguments are passed to the reader. See :func:`.help`
    to see what arguments are available for a particular format.
TÚlegacy_modeÚrrS   )r4   r   r   r   Úlegacy_get_readerr6   ©Úurir   r=   rG   Úimopen_argsÚ
image_files         r#   Ú
get_readerrÎ     s^   € ô. & fÓ-€KØ!%€K�Ñä˜˜S 4™ZÑ7¨;Ñ7€Jä�*œl×+Ñ+Ø×+Ò+Ñ5¨fÑ5Ð5ä˜JÑ1¨&Ñ1Ð1r)   c                 ó¨   • [        U5      nSUS'   [        U SU-   40 UD6n[        U[        5      (       a  UR                  " S0 UD6$ [        U40 UD6$ )aA  get_writer(uri, format=None, mode='?', **kwargs)

Returns a :class:`.Writer` object which can be used to write data
and meta data to the specified file.

Parameters
----------
uri : {str, pathlib.Path, file}
    The resource to write the image to, e.g. a filename, pathlib.Path
    or file object, see the docs for more info.
format : str
    The format to use to write the file. By default imageio selects
    the appropriate for you based on the filename.
mode : {'i', 'I', 'v', 'V', '?'}
    Used to give the writer a hint on what the user expects (default '?'):
    "i" for an image, "I" for multiple images, "v" for a volume,
    "V" for multiple volumes, "?" for don't care.
kwargs : ...
    Further keyword arguments are passed to the writer. See :func:`.help`
    to see what arguments are available for a particular format.
TrÇ   ÚwrS   )r4   r   r   r   Úlegacy_get_writerr™   rÊ   s         r#   Ú
get_writerrÒ   *  s^   € ô. & fÓ-€KØ!%€K�Ñä˜˜S 4™ZÑ7¨;Ñ7€JÜ�*œl×+Ñ+Ø×+Ò+Ñ5¨fÑ5Ð5ä˜JÑ1¨&Ñ1Ð1r)   c                 óž   • [        U5      nSUS'   [        U S40 UD6 nUR                  " SSS0UD6nSSS5        U$ ! , (       d  f       W$ = f)a  imread(uri, format=None, **kwargs)

Reads an image from the specified file. Returns a numpy array, which
comes with a dict of meta data at its 'meta' attribute.

Note that the image data is returned as-is, and may not always have
a dtype of uint8 (and thus may differ from what e.g. PIL returns).

Parameters
----------
uri : {str, pathlib.Path, bytes, file}
    The resource to load the image from, e.g. a filename, pathlib.Path,
    http address or file object, see the docs for more info.
format : str
    The format to use to read the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
kwargs : ...
    Further keyword arguments are passed to the reader. See :func:`.help`
    to see what arguments are available for a particular format.
TrÇ   Úrirn   r   NrS   ©r4   r   rv   )rË   r   rG   rÌ   ÚfileÚresults         r#   ÚimreadrØ   N  s[   € ô, & fÓ-€KØ!%€K�Ñä	��TÑ	)˜[Ò	)¨TØ—’Ñ- Ð- fÑ-ˆ÷ 
*ð €M÷ 
*Ô	)ð €Mús	   ž=½
Ac                 óà  • [        U5      n[        R                  " U5      n[        R                  " UR                  [        R
                  5      (       d$  [        SR                  UR                  5      5      e[        U5      (       d  UR                  S:  a  [        S5      e[        U5      nSUS'   [        U S40 UD6 nUR                  " U40 UD6sSSS5        $ ! , (       d  f       g= f)am  imwrite(uri, im, format=None, **kwargs)

Write an image to the specified file.

Parameters
----------
uri : {str, pathlib.Path, file}
    The resource to write the image to, e.g. a filename, pathlib.Path
    or file object, see the docs for more info.
im : numpy.ndarray
    The image data. Must be NxM, NxMx3 or NxMx4.
format : str
    The format to use to write the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
kwargs : ...
    Further keyword arguments are passed to the writer. See :func:`.help`
    to see what arguments are available for a particular format.
zImage is not numeric, but {}.r·   z+Image must be 2D (grayscale, RGB, or RGBA).TrÇ   ÚwiN)rA   r¼   r½   Ú
issubdtypeÚdtypeÚnumberr   r   rB   rÂ   r¾   r4   r   r­   )rË   r®   r   rG   ÚimtrÌ   rÖ   s          r#   Úimwriterß   m  s¯   € ô* ˆr‹(€CÜ	�Š�B‹€BÜ�=Š=˜Ÿ™¤2§9¡9×-Ñ-ÜÐ8×?Ñ?ÀÇÁÓMÓNÐNä�‡|�|�r—w‘w “{ÜÐFÓGÐGä% fÓ-€KØ!%€K�ÑÜ	��TÑ	)˜[Ò	)¨TØ�zŠz˜"Ñ' Ñ'÷ 
*×	)×	)ús   ÃCÃ
C-c           	      ó¾  • [        U[        5      n[        5       nSn[        U5      nSUS'   [	        U S40 UD6 nUR
                  " S0 UD6 HJ  n	UR                  U	5        XiR                  -  nXd:”  d  M)  [        SR                  [        U5      5      5      e   SSS5        [        U5      S:X  a  [        US   5      (       a  / US   QnU$ ! , (       d  f       N9= f)	a  mimread(uri, format=None, memtest="256MB", **kwargs)

Reads multiple images from the specified file. Returns a list of
numpy arrays, each with a dict of meta data at its 'meta' attribute.

Parameters
----------
uri : {str, pathlib.Path, bytes, file}
    The resource to load the images from, e.g. a filename,pathlib.Path,
    http address or file object, see the docs for more info.
format : str
    The format to use to read the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
memtest : {bool, int, float, str}
    If truthy, this function will raise an error if the resulting
    list of images consumes greater than the amount of memory specified.
    This is to protect the system from using so much memory that it needs
    to resort to swapping, and thereby stall the computer. E.g.
    ``mimread('hunger_games.avi')``.

    If the argument is a number, that will be used as the threshold number
    of bytes.

    If the argument is a string, it will be interpreted as a number of bytes with
    SI/IEC prefixed units (e.g. '1kB', '250MiB', '80.3YB').

    - Units are case sensitive
    - k, M etc. represent a 1000-fold change, where Ki, Mi etc. represent 1024-fold
    - The "B" is optional, but if present, must be capitalised

    If the argument is True, the default will be used, for compatibility reasons.

    Default: '256MB'
kwargs : ...
    Further keyword arguments are passed to the reader. See :func:`.help`
    to see what arguments are available for a particular format.
r   TrÇ   ÚrIú“imageio.mimread() has read over {}B of image data.
Stopped to avoid memory problems. Use imageio.get_reader(), increase threshold, or memtest=FalseNr	   rS   )r$   ÚMEMTEST_DEFAULT_MIMrº   r4   r   r‰   ÚappendÚnbytesÚRuntimeErrorr   ÚintÚlenrÂ   ©
rË   r   ÚmemtestrG   Únbyte_limitÚimagesrå   rÌ   rÖ   Úimages
             r#   Úmimreadrî   “  sÚ   € ôP ˜GÔ%8Ó9€Kä‹V€FØ€Fä% fÓ-€KØ!%€K�ÑÜ	��TÑ	)˜[Ò	)¨TØ—Y’YÑ( Ô(ˆEØ�M‰M˜%Ô Ø—l‘lÑ"ˆFØÕ#Ü"ðVçV\ÑV\Ü˜KÓ(óWóð ñ	 )÷ 
*ô ˆ6ƒ{�aÓœH V¨A¡Y×/Ñ/Ø�6˜!‘9�ˆà€M÷! 
*Õ	)ús   º8CÁ6%CÃ
Cc                 óÒ   • [        U5      (       d  [        S5      e[        U5      nSUS'   [        U S40 UD6 nUR                  " U4SS0UD6sSSS5        $ ! , (       d  f       g= f)a�  mimwrite(uri, ims, format=None, **kwargs)

Write multiple images to the specified file.

Parameters
----------
uri : {str, pathlib.Path, file}
    The resource to write the images to, e.g. a filename, pathlib.Path
    or file object, see the docs for more info.
ims : sequence of numpy arrays
    The image data. Each array must be NxM, NxMx3 or NxMx4.
format : str
    The format to use to read the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
kwargs : ...
    Further keyword arguments are passed to the writer. See :func:`.help`
    to see what arguments are available for a particular format.
z*Image data must be a sequence of ndimages.TrÇ   ÚwIrÂ   N)rÂ   r   r4   r   r­   )rË   Úimsr   rG   rÌ   rÖ   s         r#   Úmimwriterò   Õ  s`   € ô( �C�=‰=ÜÐEÓFÐFä% fÓ-€KØ!%€K�ÑÜ	��TÑ	)˜[Ò	)¨TØ�zŠz˜#Ñ7¨Ð7°Ñ7÷ 
*×	)×	)ús   ¹AÁ
A&c                 óš   • [        U5      nSUS'   [        U S40 UD6 nUR                  " SSS0UD6sSSS5        $ ! , (       d  f       g= f)a’  volread(uri, format=None, **kwargs)

Reads a volume from the specified file. Returns a numpy array, which
comes with a dict of meta data at its 'meta' attribute.

Parameters
----------
uri : {str, pathlib.Path, bytes, file}
    The resource to load the volume from, e.g. a filename, pathlib.Path,
    http address or file object, see the docs for more info.
format : str
    The format to use to read the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
kwargs : ...
    Further keyword arguments are passed to the reader. See :func:`.help`
    to see what arguments are available for a particular format.
TrÇ   Úrvrn   r   NrS   rÕ   )rË   r   rG   rÌ   rÖ   s        r#   Úvolreadrõ   õ  sI   € ô& & fÓ-€KØ!%€K�ÑÜ	��TÑ	)˜[Ò	)¨TØ�yŠyÑ+˜qÐ+ FÑ+÷ 
*×	)×	)ús	   ž<¼
A
c                 óþ   • [         R                  " U5      n[        U5      (       d  [        S5      e[	        U5      nSUS'   [        U S40 UD6 nUR                  " U4SS0UD6sSSS5        $ ! , (       d  f       g= f)a‡  volwrite(uri, vol, format=None, **kwargs)

Write a volume to the specified file.

Parameters
----------
uri : {str, pathlib.Path, file}
    The resource to write the image to, e.g. a filename, pathlib.Path
    or file object, see the docs for more info.
vol : numpy.ndarray
    The image data. Must be NxMxL (or NxMxLxK if each voxel is a tuple).
format : str
    The format to use to read the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
kwargs : ...
    Further keyword arguments are passed to the writer. See :func:`.help`
    to see what arguments are available for a particular format.
ú1Image must be 3D, or 4D if each voxel is a tuple.TrÇ   ÚwvrÂ   FN)r¼   r½   rÅ   r   r4   r   r­   )rË   r®   r   rG   rÌ   rÖ   s         r#   Úvolwriterù     sm   € ô* 
�Š�B‹€BÜ�R�=‰=ÜÐLÓMÐMä% fÓ-€KØ!%€K�Ñä	��TÑ	)˜[Ò	)¨TØ�zŠz˜"Ñ7 uÐ7°Ñ7÷ 
*×	)×	)ús   ÁA.Á.
A<c           	      ón  • [        U[        5      n[        5       nSn[        U5      nSUS'   [	        U S40 UD6 nUR
                  " S0 UD6 HJ  n	UR                  U	5        XiR                  -  nXd:”  d  M)  [        SR                  [        U5      5      5      e   SSS5        U$ ! , (       d  f       U$ = f)a  mvolread(uri, format=None, memtest='1GB', **kwargs)

Reads multiple volumes from the specified file. Returns a list of
numpy arrays, each with a dict of meta data at its 'meta' attribute.

Parameters
----------
uri : {str, pathlib.Path, bytes, file}
    The resource to load the volumes from, e.g. a filename, pathlib.Path,
    http address or file object, see the docs for more info.
format : str
    The format to use to read the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
memtest : {bool, int, float, str}
    If truthy, this function will raise an error if the resulting
    list of images consumes greater than the amount of memory specified.
    This is to protect the system from using so much memory that it needs
    to resort to swapping, and thereby stall the computer. E.g.
    ``mimread('hunger_games.avi')``.

    If the argument is a number, that will be used as the threshold number
    of bytes.

    If the argument is a string, it will be interpreted as a number of bytes with
    SI/IEC prefixed units (e.g. '1kB', '250MiB', '80.3YB').

    - Units are case sensitive
    - k, M etc. represent a 1000-fold change, where Ki, Mi etc. represent 1024-fold
    - The "B" is optional, but if present, must be capitalised

    If the argument is True, the default will be used, for compatibility reasons.

    Default: '1GB'
kwargs : ...
    Further keyword arguments are passed to the reader. See :func:`.help`
    to see what arguments are available for a particular format.
r   TrÇ   ÚrVrâ   NrS   )r$   ÚMEMTEST_DEFAULT_MVOLrº   r4   r   r‰   rä   rå   ræ   r   rç   ré   s
             r#   Úmvolreadrý   1  sº   € ôP ˜GÔ%9Ó:€Kä‹V€FØ€FÜ% fÓ-€KØ!%€K�ÑÜ	��TÑ	)˜[Ò	)¨TØ—Y’YÑ( Ô(ˆEØ�M‰M˜%Ô Ø—l‘lÑ"ˆFØÕ#Ü"ðVçV\ÑV\Ü˜KÓ(óWóð ñ	 )÷ 
*ð €M÷ 
*Ô	)ð €Mús   º8B%Á6%B%Â%
B4c                 óä   • U H  n[        U5      (       a  M  [        S5      e   [        U5      nSUS'   [        U S40 UD6 nUR                  " U4SS0UD6sSSS5        $ ! , (       d  f       g= f)a­  mvolwrite(uri, vols, format=None, **kwargs)

Write multiple volumes to the specified file.

Parameters
----------
uri : {str, pathlib.Path, file}
    The resource to write the volumes to, e.g. a filename, pathlib.Path
    or file object, see the docs for more info.
ims : sequence of numpy arrays
    The image data. Each array must be NxMxL (or NxMxLxK if each
    voxel is a tuple).
format : str
    The format to use to read the file. By default imageio selects
    the appropriate for you based on the filename and its contents.
kwargs : ...
    Further keyword arguments are passed to the writer. See :func:`.help`
    to see what arguments are available for a particular format.
r÷   TrÇ   ÚwVrÂ   N)rÅ   r   r4   r   r­   )rË   rñ   r   rG   r®   rÌ   rÖ   s          r#   Ú	mvolwriter   o  sl   € ó* ˆÜ˜�}‹}ÜÐPÓQÐQñ ô & fÓ-€KØ!%€K�ÑÜ	��TÑ	)˜[Ò	)¨TØ�zŠz˜#Ñ7¨Ð7°Ñ7÷ 
*×	)×	)ús   ÁA!Á!
A/)rØ   rî   rõ   rý   rß   rò   rù   r   r(   rÎ   rÒ   r   rR   )NÚ?)<Úrer«   Únumbersr   Úpathlibr   Útypingr   Únumpyr¼   Ú"imageio.core.legacy_plugin_wrapperr   Úimageio.core.utilr   Úimageio.core.v3_plugin_apir   r   r
   Úconfigr   r   Úcorer   Úcore.imopenr   rã   rü   Úcompiler   r   rˆ   rº   r   Úsir2   r$   r(   Ústrr4   r6   r™   rÂ   rÅ   rÎ   rÒ   rØ   rß   rî   rò   rõ   rù   rý   r   rv   ÚsaveÚimsaveÚmimsaveÚvolsaveÚmvolsaveÚ__all__rS   r)   r#   Ú<module>r     sW  ðó 
Û Ý Ý Ý ã å ;Ý #Ý /å ß 3Ý Ý àÐ ØÐ ð 
�ŠÐ9Ó	:€Ø�aÑ€Ù˜�t™d :Ó.Ñ.Ö/�E€A€rØ�a‘€Eˆ"�Iß	€rØ"&¨¡'ˆˆb�h‰h‹j˜3ÑÓñ 0ô
ô:ð$6 Sð 6¨T°#°s°(©^ô 6÷:@!ñ @!÷F8
ñ 8
òv
ò
ô 2ôD2ôHô> (ðL Ð&9ô ?ôD8ô@,ô28ðF Ð';ô ;ô|8ð@ €Ø€Ø	€Ø
€Ø
€Ø€ò�r)   