관리-도구
편집 파일: test_old_ma.cpython-37.pyc
B ��FdA� � @ s d dl mZmZmZ d dlmZ d dlZd dlm m Z d dlm mZ d dl mZmZmZmZ d dlmZ d dlmZmZmZmZmZmZmZmZmZmZmZm 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.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_ ej`Z`dfdd �ZaG d d� de�ZbG dd � d e�ZcG dd� de�Zddd� Zeefdk�r�e� dS )� )�division�absolute_import�print_function)�reduceN)�TestCase�run_module_suite�assert_�suppress_warnings)�assert_array_equal)K�MaskType�MaskedArray�absolute�add�all�allclose�allequal�alltrue�arange�arccos�arcsin�arctan�arctan2�array�average�choose�concatenate� conjugate�cos�cosh�count�divide�equal�exp�filled�getmask�greater� greater_equal�inner� isMaskedArray�less� less_equal�log�log10� make_mask�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�maximum�minimum�multiply�nomask�nonzero� not_equal�ones�outer�product�put�ravel�repeat�resize�shape�sin�sinh�sometrue�sort�sqrt�subtract�sum�take�tan�tanh� transpose�where�zeros� c C s, t | |�}|s(td|t| �t|�f � |S )NzNot eq:%s %s ----%s)r �print�str)�v�w�msg�result� r] ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/ma/tests/test_old_ma.py�eq s r_ c @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5d6� Zd7S )8�TestMac C s t �ddddtd dddddddg�}t �dd ddd dd dddd dg�}d}dd d d d d dd d d d d g}d d dd d ddd d d d dg}t||d�}t||d�}t �dd ddg�}t|d dd d gd�} t �|d|�} |j}|�d� ||||||||| | |f| _d S )Ng �?g �g @g @g @g $�g $@g @g g �g �� r )�maskg �g �?g�������?g@��x�D)�npr �pirT rH �set_fill_value�d)�self�x�y�a10�m1�m2�xm�ym�z�zm�xf�sr] r] r^ �setUp% s &" zTestMa.setUpc C s� | j \}}}}}}}}} } }| �t|�� | �t|�� | �t|�|� | �|j|� | �|j|j� | �|jtdd� |�� | �t |�t |�tdd� |� � | �t|| �� | �tt|d�| �� | �t||�� d S )Nc S s | | S )Nr] )rh ri r] r] r^ �<lambda><