/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/ma/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/ma/__pycache__/testutils.cpython-311.pyc (14664B)
§
F ·‡¾æëã ó — d Z ddlZddlZddlmZmZ ddlmc mZ ddl Zddl m
Z
mZmZm
Z
mZ ddlmZmZmZmZmZmZ g d¢ZddlmZ g d ¢Zeez Zdd
„Zdd„Zd d„Zd„ Zd d„Zd d„ZeZ d!d„Z!e!Z" d"d„Z#d#d„Z$d#d„Z%d$d„Z&d$d„Z'd#d„Z(d d„Z)dS )%zÌMiscellaneous functions for testing masked arrays and subclasses
:author: Pierre Gerard-Marchant
:contact: pierregm_at_uga_dot_edu
:version: $Id: testutils.py 3529 2007-11-13 08:01:14Z jarrod.millman $
é N)ÚndarrayÚfloat_)Úassert_Úassert_allcloseÚassert_array_almost_equal_nulpÚ
assert_raisesÚ
build_err_msgé )Úmask_orÚgetmaskÚmasked_arrayÚnomaskÚmaskedÚfilled)ÚalmostÚapproxÚassert_almost_equalÚassert_array_almost_equalÚassert_array_approx_equalÚassert_array_compareÚassert_array_equalÚassert_array_lessÚassert_closeÚassert_equalÚassert_equal_recordsÚassert_mask_equalÚassert_not_equalÚfail_if_array_equal)ÚTestCase)r r r r r Tçñh㈵øä>ç:Œ0âŽyE>c ó¬ — t t | ¦ « t |¦ « ¦ « }t | ¦ « }t |¦ « }|j j dk s|j j dk r't j ||¦ « ¦ « S t t |d|¬¦ « |¦ « t ¦ « }t t |d|¬¦ « d¦ « t ¦ « } t j t j
|| z
¦ « ||t j
| ¦ « z z ¦ « }
|
¦ « S )a†
Returns true if all components of a and b are equal to given tolerances.
If fill_value is True, masked values considered equal. Otherwise,
masked values are considered unequal. The relative error rtol should
be positive and << 1.0 The absolute error atol comes into play for
those elements of b that are very small or zero; it says how small a
must be also.
ÚOF©ÚcopyÚmaskr
)r r r ÚdtypeÚcharÚnpÚequalÚravelr
Úastyper Ú
less_equalÚumathÚabsolute)ÚaÚbÚ
fill_valueÚrtolÚatolÚmÚd1Úd2ÚxÚyÚds úf/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/numpy/ma/testutils.pyr r ) s € õ •˜‘
”
�G A™JœJÑ'Ô'€AÝ �‰Œ€BÝ �‰Œ€BØ „x„}˜ÒИrœxœ}°Ò3Ð3ÝŒx˜˜BÑÔ×%Ò%Ñ'Ô'Ð'Ý�|˜B U°Ð3Ñ3Ô3°ZÑ@Ô@×GÒGÍÑOÔO€AÝ�|˜B U°Ð3Ñ3Ô3°QÑ7Ô7×>Ò>½vÑFÔF€AÝ
Œ
•e”n Q¨¡UÑ+Ô+¨T°D½5¼>È!Ñ;LÔ;LÑ4LÑ-LÑMÔM€AØ�7Š7‰9Œ9Ðó é c óŒ — t t | ¦ « t |¦ « ¦ « }t | ¦ « }t |¦ « }|j j dk s|j j dk r't j ||¦ « ¦ « S t t |d|¬¦ « |¦ « t ¦ « }t t |d|¬¦ « d¦ « t ¦ « }t j t j ||z
¦ « |¦ « d| z k } | ¦ « S )z³
Returns True if a and b are equal up to decimal places.
If fill_value is True, masked values considered equal. Otherwise,
masked values are considered unequal.
r# Fr$ r
ç $@)
r r r r' r( r) r* r+ r
r, r ÚaroundÚabs)
r0 r1 Údecimalr2 r5 r6 r7 r8 r9 r: s
r; r r ? sÿ € õ •˜‘
”
�G A™JœJÑ'Ô'€AÝ �‰Œ€BÝ �‰Œ€BØ „x„}˜ÒИrœxœ}°Ò3Ð3ÝŒx˜˜BÑÔ×%Ò%Ñ'Ô'Ð'Ý�|˜B U°Ð3Ñ3Ô3°ZÑ@Ô@×GÒGÍÑOÔO€AÝ�|˜B U°Ð3Ñ3Ô3°QÑ7Ô7×>Ò>½vÑFÔF€AÝ
Œ •"”&˜˜Q™‘-”- Ñ)Ô)¨T°w°hÑ-?Ò?€AØ�7Š7‰9Œ9Ðr<