https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/numpy/ma/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/numpy/ma/tests/__pycache__/test_deprecations.cpython-310.pyc
o

6��a��@sPdZddlZddlmZddlmZddlmZGdd�d�Z	Gdd	�d	�Z
dS)
z'Test deprecation and future warnings.

�N)�assert_warns)�assert_equal)�MaskedArrayFutureWarningc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�TestArgsortz	 gh-8701 cCs�t�d��|�}||�t�gd���|�}||�t�ddgddgg��|�}ttjjj||�}t|||dd��||dd�||dd�dS)N�)r��rr���axis���)�np�array�viewr�ma�corerr)�self�argsort�cls�arr_0d�arr_1d�arr_2d�result�r�B/usr/lib/python3/dist-packages/numpy/ma/tests/test_deprecations.py�
_test_bases�zTestArgsort._test_basecCs|�tjjtj�S�N)rr
rr�ndarray�rrrr�test_function_ndarraysz!TestArgsort.test_function_ndarraycCs|�tjjtjj�Sr)rr
rr�MaskedArrayrrrr�test_function_maskedarraysz%TestArgsort.test_function_maskedarraycCs|�tjjjtjj�Sr)rr
rr rrrrr�test_method"szTestArgsort.test_methodN)�__name__�
__module__�__qualname__�__doc__rrr!r"rrrrr	src@s$eZdZdd�Zdd�Zdd�ZdS)�TestMinimumMaximumcC� tttjjtj�ddg��dS�Nrr)r�DeprecationWarningr
r�minimumrrrrr�test_minimum'� zTestMinimumMaximum.test_minimumcCr(r))rr*r
r�maximumrrrrr�test_maximum*r-zTestMinimumMaximum.test_maximumcCs�tj�d�}|�dd�}tjjj}tjjj}tt||�}t	|||dd��tt||�}t	|||dd��||�}t	|||dd��t	|||dd��||�}t	|||dd��t	|||dd��dS)N�rrr
r)
r
r�arange�reshaper+�reducer.rrr)r�data1d�data2d�ma_min�ma_maxrrrr�test_axis_default-s

z$TestMinimumMaximum.test_axis_defaultN)r#r$r%r,r/r8rrrrr'&sr')r&�numpyr
�
numpy.testingr�numpy.ma.testutilsr�
numpy.ma.corerrr'rrrr�<module>s

https://t.me/RX1948 - 2025