403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/numpy/ma/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/numpy/ma/tests/__pycache__/test_deprecations.cpython-312.pyc
�

	�gZ
���dZddlZddlZddlmZddlmZddlm	Z	ddl
Z
ddlZGd�d�ZGd�d	�Z
Gd
�d�Zy)z'Test deprecation and future warnings.

�N)�assert_warns)�assert_equal)�MaskedArrayFutureWarningc�(�eZdZdZd�Zd�Zd�Zd�Zy)�TestArgsortz	 gh-8701 c��tjd�j|�}||�tjgd��j|�}||�tjddgddgg�j|�}ttjj
j||�}t|||d���||d��||d��y)N�)r	��r
r���axis���)�np�array�viewr�ma�corerr)�self�argsort�cls�arr_0d�arr_1d�arr_2d�results       �BC:\Python312\Lib\site-packages\numpy/ma/tests/test_deprecations.py�
_test_basezTestArgsort._test_bases������!��!�!�#�&��������)�$�)�)�#�.��������A�q�6�A�q�6�*�+�0�0��5����E�E�J�J�/�/��&�B���V�W�V�$�7�8�	��T�"���R� �c�r�|jtjjtj�S�N)rrrr�ndarray�rs r�test_function_ndarrayz!TestArgsort.test_function_ndarrays�����r�u�u�}�}�b�j�j�9�9rc��|jtjjtjj�Sr )rrrr�MaskedArrayr"s r�test_function_maskedarrayz%TestArgsort.test_function_maskedarray"s%�����r�u�u�}�}�b�e�e�.?�.?�@�@rc��|jtjjjtjj�Sr )rrrr%rr"s r�test_methodzTestArgsort.test_method%s-�����r�u�u�0�0�8�8�"�%�%�:K�:K�L�LrN)�__name__�
__module__�__qualname__�__doc__rr#r&r(�rrrrs���!�":�A�Mrrc��eZdZd�Zy)�TestMinimumMaximumc�J�tjjd�}|jdd�}tjjj
}tjjj
}tt||�}t|||d���tt||�}t|||d���||�}t|||d���t|||d���||�}t|||d���t|||d���y)N�r
rr
r)
rr�arange�reshape�minimum�reduce�maximumrrr)r�data1d�data2d�ma_min�ma_maxrs      r�test_axis_defaultz$TestMinimumMaximum.test_axis_default+s��������a�������1�%�������%�%�������%�%���6���G���V�V�F��6�7��6���G���V�V�F��6�7������V�V�F��6�7��V�V�F��3�4������V�V�F��6�7��V�V�F��3�4rN)r)r*r+r;r-rrr/r/)s��5rr/c��eZdZd�Zy)�TestFromtextfilec��tjtjd��}t	j
t�5tjjj|d��}ddd�y#1swYyxYw)Nz�
            A,B,C,D
            'string 1';1;1.0;'mixed column'
            'string 2';2;2.0;
            'string 3';3;3.0;123
            'string 4';4;4.0;3.14
            �;)�	delimitor)�io�StringIO�textwrap�dedent�pytest�warns�DeprecationWarningrr�mrecords�fromtextfile)r�textfilers   r�test_fromtextfile_delimitorz,TestFromtextfile.test_fromtextfile_delimitorFsg���;�;�x���
� 
����\�\�,�
-�	J��U�U�^�^�0�0��S�0�I�F�	J�	J�	J�s�,A7�7BN)r)r*r+rKr-rrr=r=Es��Jrr=)r,rE�numpyr�
numpy.testingr�numpy.ma.testutilsr�
numpy.ma.corerrArCrr/r=r-rr�<module>rPsC�����&�+�2�	��M�M�:5�5�8J�Jr

Youez - 2016 - github.com/yon3zu
LinuXploit