403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/scipy/datasets/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/scipy/datasets/__pycache__/_utils.cpython-311.pyc
�

d�cb��X�ddlZddlZddlmZ	ddlZn
#e$rdZYnwxYwdd�Zdd�ZdS)�N�)�method_files_mapc
�L��|�t}��*t�td���tjd���tj����std��d���dS|�)td��d���tj	���dSt|ttf��s|g}|D]�}t|��sJ�|j}||vr4td|�dt|����������||}�fd	�|D��}|D]�}tj�|��rMtd
tj�|��d�d|����t	j|���ntd
|�d�������dS)NzsMissing optional dependency 'pooch' required for scipy.datasets module. Please use pip or conda to install 'pooch'.z
scipy-datazCache Directory z! doesn't exist. Nothing to clear.zCleaning the cache directory �!zDataset method za doesn't exist. Please check if the passed dataset is a subset of the following dataset methods: c�P��g|]"}tj��|����#S�)�os�path�join)�.0�file�	cache_dirs  ��7/usr/lib/python3/dist-packages/scipy/datasets/_utils.py�
<listcomp>z _clear_cache.<locals>.<listcomp>-s9���6�6�6�"&�!�g�l�l�9�d�;�;�6�6�6�zCleaning the file rz
 for dataset zPath )r�appdirs�ImportError�user_cache_dirr	r
�exists�print�shutil�rmtree�
isinstance�list�tuple�callable�__name__�
ValueError�keys�split�remove)�datasetsr�
method_map�dataset�dataset_name�
data_files�data_filepaths�
data_filepaths `      r�_clear_cacher)s:�����%�
����?��:�;�;�
;��*�<�8�8�	�
�7�>�>�)�$�$��
�M��M�M�M�N�N�N�����
�:�i�:�:�:�;�;�;��
�i� � � � � ��(�T�5�M�2�2�	$� �|�H��	/�	/�G��G�$�$�$�$�$�"�+�L��:�-�-� �"G�<�"G�"G�.2�*�/�/�2C�2C�-D�-D�"G�"G�H�H�H�
$�L�1�J�6�6�6�6�*4�6�6�6�N�!/�
/�
/�
��7�>�>�-�0�0�/��8��W�]�]�=�9�9�!�<�8�8�)5�8�8�9�9�9��I�m�,�,�,�,��.�-�.�.�.�/�/�/�/�
/�	/�	/rc�$�t|��dS)ak
    Cleans the scipy datasets cache directory.

    If a scipy.datasets method or a list/tuple of the same is
    provided, then clear_cache removes all the data files
    associated to the passed dataset method callable(s).

    By default, it removes all the cached data files.

    Parameters
    ----------
    datasets : callable or list/tuple of callable or None

    Examples
    --------
    >>> from scipy import datasets
    >>> ascent_array = datasets.ascent()
    >>> ascent_array.shape
    (512, 512)
    >>> datasets.clear_cache([datasets.ascent])
    Cleaning the file ascent.dat for dataset ascent
    N)r))r"s r�clear_cacher+:s��.������r)NN)N)r	r�	_registryrrrr)r+rrr�<module>r-s���	�	�	�	�
�
�
�
�'�'�'�'�'�'���N�N�N�N�������G�G�G�����,/�,/�,/�,/�^�����s���

Youez - 2016 - github.com/yon3zu
LinuXploit