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/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

d�c�����ddlmZddlmZddlmZddlmZmZm	Z	m
Z
ddlmZm
Z
ddlZddlZ	ddlZn#e$red���wxYwejZd�ZGd	�d
��Zd�ZdS)�)�registry)�data_fetcher)�_clear_cache)�ascent�face�electrocardiogram�download_all)�assert_equal�assert_almost_equalNzsMissing optional dependency 'pooch' required for scipy.datasets module. Please use pip or conda to install 'pooch'.c�t�tj�|��sdStj|��|kS)z1Check if the provided path has the expected hash.F)�os�path�exists�pooch�	file_hash)r�
expected_hashs  �@/usr/lib/python3/dist-packages/scipy/datasets/tests/test_data.py�	_has_hashrs2��
�7�>�>�$�����u��?�4� � �M�1�1�c�\�eZdZejdd���d���Zd�Zd�Zd�Zd�Z	d	S)
�TestDatasets�moduleT)�scope�autousec#�.K�t��dV�dS�N)r	��selfs r�test_download_allzTestDatasets.test_download_alls����
	����
�����rc��ttjt����tt��ksJ�dSr)�lenr
�listdir�data_dirrrs r�test_existence_allzTestDatasets.test_existence_all&s1���2�:�h�'�'�(�(�C��M�M�9�9�9�9�9�9rc���tt��jd��ttj�td��td��sJ�dS)N)�r&z
ascent.dat)	r
r�shaperr
r�joinr#rrs r�test_ascentzTestDatasets.test_ascent)sZ���V�X�X�^�Z�0�0�0������h��=�=�!�,�/�1�1�	1�	1�	1�	1�	1rc���tt��jd��ttj�td��td��sJ�dS)N)ii�zface.dat)	r
rr'rr
rr(r#rrs r�	test_facezTestDatasets.test_face0sZ���T�V�V�\�>�2�2�2������h�
�;�;�!�*�-�/�/�	/�	/�	/�	/�	/rc��t��}t|jt��t|jd��t|���d��t|���d��ttj
�td��td��sJ�dS)N)i�g�GĔH"ſg���-�?zecg.dat)rr
�dtype�floatr'r�mean�stdrr
rr(r#r)r�ecgs  r�test_electrocardiogramz#TestDatasets.test_electrocardiogram7s����!�!���S�Y��&�&�&��S�Y�	�*�*�*��C�H�H�J�J��4�4�4��C�G�G�I�I�'9�:�:�:������h�	�:�:�!�)�,�.�.�	.�	.�	.�	.�	.rN)
�__name__�
__module__�__qualname__�pytest�fixturerr$r)r,r3�rrrrs{�������V�^�(�D�1�1�1���2�1��:�:�:�1�1�1�/�/�/�
.�
.�
.�
.�
.rrc��|dz}|���i}td��D]-}d|�d�g|d|��<|d|�d�z}|�d���.d�}t|||���tj�|dz��rJ�d	�}d
�}t||g||���tj�|dz��rJ�tj�|dz��rJ�d
�}|dz�d��|dz�d��ddg|d<t|g||���tj�|dz��rJ�tj�|dz��rJ�d�}	tjt��5t|	g||���ddd��n#1swxYwYtd|���tj�|��rJ�dS)N�dummy_cache_dir��dataz.dat�c��dSrr9r9rr�data0ztest_clear_cache.<locals>.data0R����r)�datasets�	cache_dir�
method_mapz	data0.datc��dSrr9r9rr�data1ztest_clear_cache.<locals>.data1YrArc��dSrr9r9rr�data2ztest_clear_cache.<locals>.data2\rArz	data1.datz	data2.datc��dSrr9r9rr�data4ztest_clear_cache.<locals>.data4erArzdata4_0.datzdata4_1.datrJc��dSrr9r9rr�data5ztest_clear_cache.<locals>.data5srAr)rBrC)
�mkdir�range�
write_textrr
rrr7�raises�
ValueError)
�tmp_path�dummy_basepath�dummy_method_map�i�
data_filepathr@rFrHrJrLs
          r�test_clear_cacherWDs���� 1�1�N���������
�1�X�X�%�%��(6�q����'7������$�&������7�
�� � ��$�$�$�$�
�
�
��%�>�,�.�.�.�.��w�~�~�n�[�8�9�9�9�9�9�
�
�
�
�
�
��5�%�.�N�,�.�.�.�.��w�~�~�n�[�8�9�9�9�9�9��w�~�~�n�[�8�9�9�9�9�9�
�
�
��m�#�/�/��3�3�3��m�#�/�/��3�3�3�!.�
� >��W���5�'�^�,�.�.�.�.��w�~�~�n�]�:�;�;�;�;�;��w�~�~�n�]�:�;�;�;�;�;�
�
�
�	��z�	"�	"�2�2��u�g�� 0�	2�	2�	2�	2�2�2�2�2�2�2�2�2�2�2�2����2�2�2�2�
�$�.�9�9�9�9��w�~�~�n�-�-�-�-�-�-�-s�%G�G	�G	)�scipy.datasets._registryr�scipy.datasets._fetchersr�scipy.datasets._utilsr�scipy.datasetsrrrr	�
numpy.testingr
rr
r7r�ImportErrorrr#rrrWr9rr�<module>r^s(��-�-�-�-�-�-�1�1�1�1�1�1�.�.�.�.�.�.�H�H�H�H�H�H�H�H�H�H�H�H�;�;�;�;�;�;�;�;�	�	�	�	�
�
�
�
�3��L�L�L�L���3�3�3�
�+�2�3�3�3�3�������2�2�2�&.�&.�&.�&.�&.�&.�&.�&.�R7.�7.�7.�7.�7.s	�5�A

Youez - 2016 - github.com/yon3zu
LinuXploit