Ë
    ÏÍ:j†  ã                   óÌ   — d Z ddlmZ ddlZ	 ddlZej                  �ej                  dk(  rddlZnddl	mZ  ed¬«      dd	„«       Z
d
„ Zedk(  r e«        yy# e$ r dZY ŒPw xY w)z«
Platform independent script to download all the
`scipy.datasets` module data files.
This doesn't require a full scipy build.

Run: python _download_all.py <download_dir>
é    )Úxp_capabilitiesNÚ é   )Ú	_registryT)Úout_of_scopec                 ó&  — t         €t        d«      ‚| €t        j                  d«      } t        j                  ddi¬«      }t        j
                  j                  «       D ]0  \  }}t        j                  t        j                  |   ||| |¬«       Œ2 y)a  
    Utility method to download all the dataset files
    for `scipy.datasets` module.

    Parameters
    ----------
    path : str, optional
        Directory path to download all the dataset files.
        If None, default to the system cache_dir detected by pooch.

    Examples
    --------
    Download the datasets to the default cache location:

    >>> from scipy import datasets
    >>> datasets.download_all()

    Download the datasets to the current directory:

    >>> datasets.download_all(".")

    NzsMissing optional dependency 'pooch' required for scipy.datasets module. Please use pip or conda to install 'pooch'.ú
scipy-dataz
User-AgentÚSciPy)Úheaders)ÚurlÚ
known_hashÚfnameÚpathÚ
downloader)	ÚpoochÚImportErrorÚos_cacheÚHTTPDownloaderr   ÚregistryÚitemsÚretrieveÚregistry_urls)r   r   Údataset_nameÚdataset_hashs       úq/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/scipy/datasets/_download_all.pyÚdownload_allr      sŽ   € ô0 €}Üð 6ó 7ð 	7ð €|Ü�~‰~˜lÓ+ˆä×%Ñ%¨|¸WÐ.EÔF€JÜ&/×&8Ñ&8×&>Ñ&>Ó&@ò MÑ"ˆ�lÜ�‰œ9×2Ñ2°<Ñ@Ø".Ø)°Àö	MñMó    c                  óÔ   — t        j                  d¬«      } | j                  ddt        t	        j
                  d«      d¬«       | j                  «       }t        |j                  «       y )NzDownload SciPy data files.)Údescriptionr   ú?r	   z.Directory path to download all the data files.)ÚnargsÚtypeÚdefaultÚhelp)	ÚargparseÚArgumentParserÚadd_argumentÚstrr   r   Ú
parse_argsr   r   )ÚparserÚargss     r   Úmainr,   @   sX   € Ü×$Ñ$Ð1MÔN€FØ
×Ñ˜ c´Ü %§¡¨|Ó <ØMð ô Oð ×ÑÓ€DÜ�—‘Õr   Ú__main__)N)Ú__doc__Úscipy._lib._array_apir   r%   r   r   Ú__spec__Úparentr   r   r   r,   Ú__name__© r   r   ú<module>r4      s…   ðñõ 2ã ðÛð
 ‡?�?Ð˜hŸo™o°Ò3äõ ñ ˜dÔ#ò"Mó $ð"MòJð ˆzÒÙ…Fð øðw ò Ø‚Eðús   ŽA ÁA#Á"A#