관리-도구
편집 파일: test_core.cpython-311.pyc
� �܋f�B � �j � d Z dZddlZddlZddlZddlZddlZddlZddlZddl m Z ddlZddl Zddlmc mZ ddlmc mZ ddlmZmZmZmZ ddlmZ ddlmZ ddlmZ dd lmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z% dd l m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYmZZZm[Z[m\Z\m]Z]m^Z^m_Z_m`Z`maZambZbmcZcmdZdmeZemfZfmgZgmhZhmiZimjZjmkZkmlZlmmZmmnZnmoZompZpmqZqmrZrmsZsmtZtmuZumvZvmwZwmxZxmyZymzZzm{Z{m|Z|m}Z}m~Z~mZm�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z�m�Z� ddlm�Z� ej� Z� e� � Z�e��� ej� j j� d� � d � dD � � Z�d� e�D � � Z� G d� d� � Z� G d� d� � Z� G d� d� � Z� G d� d� � Z� G d� d� � Z� G d� d� � Z� G d� d� � Z� G d� d� � Z� G d � d!� � Z� G d"� d#� � Z� G d$� d%� � Z� G d&� d'� � Z� G d(� d)� � Z� G d*� d+� � Z� G d,� d-� � Z� G d.� d/� � Z�d0� Z�d1� Z�d2� Z�d3� Z�d4� Z�d5� Z�d6� Z�d7� Z�ej� �� d8e�e��9� � ej� �� d:e�e��9� � ej� �� d;� � d<� � � � � � � Z�d=� Z�d>� Z�ej� �� ej� j� d?k d@�A� � dB� � � Z�dC� Z�dD� Z�dE� Z�dF� Z�dS )GznTests suite for MaskedArray & subclassing. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu zPierre GF Gerard-Marchant� N)�reduce)� assert_raises�assert_warns�suppress_warnings�IS_WASM)�requires_memory)�ndarray)�asbytes)�assert_�assert_array_equal�assert_equal�assert_almost_equal�assert_equal_records� fail_if_equal�assert_not_equal�assert_mask_equal)i�MAError� MaskError�MaskType�MaskedArray�abs�absolute�add�all�allclose�allequal�alltrue�angle�anom�arange�arccos�arccosh�arctan2�arcsin�arctan�argsort�array�asarray�choose�concatenate� conjugate�cos�cosh�count�default_fill_value�diag�divide�doc_note�empty� empty_like�equal�exp�flatten_mask�filled�fix_invalid�flatten_structured_array�fromflex�getmask�getmaskarray�greater� greater_equal�identity�inner� isMaskedArray�less� less_equal�log�log10� make_mask�make_mask_descr�mask_or�masked�masked_array�masked_equal�masked_greater�masked_greater_equal� masked_inside�masked_less�masked_less_equal�masked_not_equal�masked_outside�masked_print_option� masked_values�masked_where�max�maximum�maximum_fill_value�min�minimum�minimum_fill_value�mod�multiply�mvoid�nomask� not_equal�ones� ones_like�outer�power�product�put�putmask�ravel�repeat�reshape�resize�shape�sin�sinh�sometrue�sort�sqrt�subtract�sum�take�tan�tanh� transpose�where�zeros� zeros_like)�picklezGsetting an item on a masked array which has a shared mask will not copyc �6 � g | ]}t j |� � ��S � )�np�dtype��.0�dt_s �k/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/ma/tests/test_core.py� <listcomp>r� @ s � � 8� 8� 8�S�2�8�C�=�=� 8� 8� 8� z?bhilqBHILQefdgFDc � � g | ] }|j �� S r~ )�charr� s r� r� r� A s � � '� '� '��3�8� '� '� 'r� c � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zed� � � Zd� Zd� Zd� Zd� Z d� Z!d� Z"d � Z#d!� Z$d"� Z%d#� Z&d$� Z'd%� Z(d&� Z)d'� Z*d(� Z+d)� Z,d*� Z-ed+� � � Z.d,� Z/d-� Z0d.� Z1d/� Z2d0� Z3d1� Z4d2� Z5d3� Z6d4� Z7d5� Z8d6� Z9d7� Z:d8� Z;d9� Z<d:� Z=d;S )<�TestMaskedArrayc � � t j ddddt dz dddddddg� � }t j g d �� � }d}g d �}g d�}t ||�� � }t ||�� � }t j g d �� � }t |g d��� � } t j |d|� � } |� d� � ||||||||| | f | _ d S )N� �?� �� @� @� @� $�� $@� @�r� � r� r� � �� �r� r� r� r� r� r� �� r r r r r r� r r r r r �r r r� r r r� r� r r r r r� ��mask�� �r� � �?g�������?�r r� r r �@��x�D)r r'