L i TddlZddlZddlmZ ddlZddZddZy#e$rdZYwxYw)N)method_files_mapc B|t}|&t tdtjd}tj j |std|dy|%td|dtj|yt|ttzs|g}|D]}t|sJ|j}||vr(td|dt|j!||}|Dcgc]"}tj j#||$}}|D]w}tj j |rGtd tj j%|d d |t j&|itd |dyycc}w) 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: zCleaning the file rz for dataset zPath )r platformdirs ImportErroruser_cache_dirospathexistsprintshutilrmtree isinstancelisttuplecallable__name__ ValueErrorkeysjoinsplitremove) datasets cache_dir method_mapdataset dataset_name data_filesfiledata_filepaths data_filepaths [/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/scipy/datasets/_utils.py _clear_cacher$ s%   :; ;!// = 77>>) $   +LMN -i[:; i (D5L1 |H /GG$ $$"++L:- ?<.A-.2*//2C-D,E"GHH $L1J*46"&!ggll9d;6N6!/ / 77>>-0.WW]]=9!<=>))589IIm,E-1../ / /6s4'Fct|y)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$)rs r# clear_cacher&:s .)NN)N)r r _registryrrrr$r&r'r#r*s8 ' ,/^gLs ''