
    Bpj                         S r SSKJr  SSKr SSKr\R                  b  \R                  S:X  a  SSKrOSSK	Jr  \" SS9SS	 j5       r
S
 r\S:X  a  \" 5         gg! \ a    Sr NRf = f)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           	      $   [         c  [        S5      eU c  [         R                  " S5      n [         R                  " SS0S9n[        R
                  R                  5        H-  u  p#[         R                  " [        R                  U   UX US9  M/     g)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       X/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/scipy/datasets/_download_all.pydownload_allr      s    0 } 6 7 	7 |~~l+%%|W.EFJ&/&8&8&>&>&@"922<@".)	M 'A    c                      [         R                  " SS9n U R                  SS[        [        R
                  " S5      SS9  U R                  5       n[        UR                  5        g )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NF
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 
 ??hoo3  d#"M $"MJ zF w  Es   A A%$A%