/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/ma/__pycache__
NameSizeModeActions
core.cpython-311.pyc3186820644editdlrm
extras.cpython-311.pyc821000644editdlrm
mrecords.cpython-311.pyc379410644editdlrm
setup.cpython-311.pyc9530644editdlrm
testutils.cpython-311.pyc146640644editdlrm
timer_comparison.cpython-311.pyc280180644editdlrm
__init__.cpython-311.pyc17490644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/ma/__pycache__/testutils.cpython-311.pyc (14664B)
§ F·‡¾æëãó —dZddlZddlZddlmZmZddlmcmZddl Zddl m Z m Z m Z m Z mZddlmZmZmZmZmZmZgd¢ZddlmZgd ¢ZeezZdd „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)rrrrrTçñh㈵øä>ç:Œ0âŽyE>có¬—tt|¦«t|¦«¦«}t|¦«}t|¦«}|jjdks|jjdkr't j||¦« ¦«Stt|d|¬¦«|¦«  t¦«}tt|d|¬¦«d¦«  t¦«} t j tj || z ¦«||tj | ¦«zz¦«} |  ¦«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.pyrr)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óŒ—tt|¦«t|¦«¦«}t|¦«}t|¦«}|jjdks|jjdkr't j||¦« ¦«Stt|d|¬¦«|¦«  t¦«}tt|d|¬¦«d¦«  t¦«}t j t j ||z ¦«|¦«d| zk} |  ¦«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 rr'r(r)r*r+r r,rÚaroundÚabs) r0r1Údecimalr2r5r6r7r8r9r:s r;rr?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<Úc óà—tt|¦«t|¦«|¦«tt|¦«¦«D]%}t||||d|›d|›�¦«Œ&dS)z; Asserts the equality of two non-array sequences. úitem=ú N)rÚlenÚrange)ÚactualÚdesiredÚerr_msgÚks r;Ú_assert_equal_on_sequencesrMRst€õ •�V‘”�c '™lœl¨GÑ4Ô4Ð4Ý •3�w‘<”<Ñ Ô ðFðFˆÝ�V˜A”Y ¨¤ Ð,D°AÐ,DÐ,D¸7Ð,DÐ,DÑEÔEÐEÐEØ €Fr<có<—t|j|j¦«|jjD]t}tj||¦«tj||¦«}}|t ur?|t ur6ttj||¦«tj||¦«¦«ŒudS)zI Asserts that two records are equal. Pretty crude for now. N)rr'ÚnamesÚoperatorÚgetitemr)r0r1ÚfÚafÚbfs r;rr]s‘€õ�”˜!œ'Ñ"Ô"Ð"Ø ŒWŒ]ðIðIˆÝÔ$ Q¨Ñ*Ô*­HÔ,<¸QÀÑ,BÔ,BˆRˆØ•f� �  r­V | |Ý �Ô)¨!¨QÑ/Ô/µÔ1AÀ!ÀQÑ1GÔ1GÑ HÔ HÐ HøØ €Fr<c óœ—t|t¦«rÀt|t¦«s)ttt |¦«¦«¦«‚t t |¦«t |¦«|¦«| ¦«D]@\}}||vrt|›d|›�¦«‚t ||||d|›d|›�¦«ŒAdSt|ttf¦«r.t|ttf¦«rt||d¬¦«St|t¦«s>t|t¦«s)t||g|¦«}||kst|¦«‚dS|tur |tus|tur-|tur$t||g|dd¬¦«}t|¦«‚tj|¦«}tj|¦«}|j|j}}|jd krA|jd kr6t| ¦«| ¦«d¬¦«St)|||¦«S) z, Asserts that two items are equal. z not in úkey=rFNrC©rK©r8r9)ÚheaderrOÚS)Ú isinstanceÚdictÚAssertionErrorÚreprÚtyperrGÚitemsÚlistÚtuplerMrr rÚ ValueErrorr)Ú asanyarrayr'r(Útolistr)rIrJrKrLÚiÚmsgÚ actual_dtypeÚ desired_dtypes r;rrlsT€õ �'�4Ñ Ô ðݘ&¥$Ñ'Ô'ð 5Ý ¥¥d¨6¡l¤lÑ!3Ô!3Ñ4Ô4Ð 4Ý•S˜‘[”[¥# g¡,¤,°Ñ8Ô8Ð8Ø—M’M‘O”Oð Ið I‰DˆAˆqؘˆˆÝ$¨Ð%;Ð%;°6Ð%;Ð%;Ñ<Ô<Ð<Ý ˜ œ G¨A¤JÐ0G°qÐ0GÐ0G¸gÐ0GÐ0GÑ HÔ HÐ HÐ H؈å�'�D¥%˜=Ñ)Ô)ðG­j¸Å$ÍÀÑ.OÔ.OðGÝ)¨&°'À2ÐFÑFÔFÐFÝ �v�wÑ 'Ô 'ð­:°g½wÑ+GÔ+GðݘV WÐ-¨wÑ8Ô8ˆØ˜&Ò Ð Ý  Ñ%Ô%Ð %Øˆà •6Ð Ð  G­vÐ$5Ð$5Ø�ÐШ&µFÐ*:Ð*:ݘV WÐ-Ø#¨B°jðBñBôBˆå˜‰oŒoÐÝ Œ]˜6Ñ "Ô "€FÝŒm˜GÑ$Ô$€GØ%+¤\°7´=�=€\ØÔ˜CÒРMÔ$6¸#Ò$=Ð$=Ý)¨&¯-ª-©/¬/Ø*1¯.ª.Ñ*:Ô*:Ø24ð6ñ6ô6ð 6õ ˜f g¨wÑ 7Ô 7Ð7r<c óæ—t|t¦«rÈt|t¦«s)ttt |¦«¦«¦«‚t t |¦«t |¦«|¦«| ¦«D]H\}}||vrtt|¦«¦«‚t ||||d|›d|›�¦«ŒIdSt|ttf¦«r‹t|ttf¦«rot t |¦«t |¦«|¦«tt |¦«¦«D]%}t ||||d|›d|›�¦«Œ&dSt|tj ¦«st|tj ¦«rt|||¦«St||g|¦«}||kst|¦«‚dS)z< Raises an assertion error if two items are equal. rVrFNrE)r[r\r]r^r_Ú fail_if_equalrGr`rarbrHr)rrr )rIrJrKrLrfrgs r;rkrk“sØ€õ �'�4Ñ Ô ðݘ&¥$Ñ'Ô'ð 5Ý ¥¥d¨6¡l¤lÑ!3Ô!3Ñ4Ô4Ð 4Ý•c˜&‘k”k¥3 w¡<¤<°Ñ9Ô9Ð9Ø—M’M‘O”Oð Jð J‰DˆAˆqؘˆˆÝ$¥T¨!¡W¤WÑ-Ô-Ð-Ý ˜& œ) W¨Q¤ZÐ1H¸Ð1HÐ1H¸wÐ1HÐ1HÑ IÔ IÐ IÐ I؈Ý�'�D¥%˜=Ñ)Ô)ð­j¸Å$ÍÀÑ.OÔ.OðÝ•c˜&‘k”k¥3 w¡<¤<°Ñ9Ô9Ð9Ý•s˜7‘|”|Ñ$Ô$ð Kð KˆAÝ ˜& œ) W¨Q¤ZÐ1I¸Ð1IÐ1IÀÐ1IÐ1IÑ JÔ JÐ JÐ J؈Ý�&�"œ*Ñ%Ô%ð=­°G½R¼ZÑ)HÔ)Hð=Ý" 6¨7°GÑ<Ô<Ð<Ý ˜ Ð)¨7Ñ 3Ô 3€CØ �fÒ Ð Ý˜SÑ!Ô!Ð!ð Ð r<écó$—t|tj¦«st|tj¦«rt|||||¬¦«St ||g||¬¦«}t t ||z ¦«|¦«dkst|¦«‚dS)z~ Asserts that two items are almost equal. The test is equivalent to abs(desired-actual) < 0.5 * 10**(-decimal). )rBrKÚverbose)rKrnrN)r[r)rrr ÚroundrAr])rIrJrBrKrnrgs r;rr°s«€õ�&�"œ*Ñ%Ô%ðK­°G½R¼ZÑ)HÔ)HðKÝ(¨°À'Ø18À'ðKñKôKð Kå ˜ Ð)Ø '°ð :ñ :ô :€Cå •�W˜vÑ%Ñ&Ô&¨Ñ 0Ô 0°AÒ 5Ð 5ݘSÑ!Ô!Ð!ð 6Ð 5r<cóΗtt|¦«t|¦«¦«}t|d|dd¬¦«}t|d|dd¬¦«}|tur |tus|tur.|tur%t ||g|||d¬¦«}t |¦«‚t j ||  |¦«|  |¦«|||¬¦«S)zn Asserts that comparison between two masked arrays is satisfied. The comparison is elementwise. F)r%r&Ú keep_maskÚsubokrX)rKrnrYrO©rKrnrY) r r r rr rcr)Útestingrr) Ú comparisonr8r9rKrnrYr2r5rgs r;rrÃsê€õ •˜‘ ” �G A™JœJÑ'Ô'€AÝ�Q˜U¨°eÀ5ÐIÑIÔI€AÝ�Q˜U¨°eÀ5ÐIÑIÔI€AØ �fˆˆ˜q¥F˜{˜{Ø•6ˆkˆk A­ K KݘQ ˜F¨G¸WØ#)°ð=ñ=ô=ˆå˜‰oŒoÐå Œ:× *Ò *¨:Ø+,¯8ª8°JÑ+?Ô+?Ø+,¯8ª8°JÑ+?Ô+?Ø3:Ø3:À6ð +ñ Kô KðKr<cóD—ttj||||d¬¦«dS)z@ Checks the elementwise equality of two masked arrays. úArrays are not equalrsN)rrPÚ__eq__©r8r9rKrns r;rrÜs5€õ �œ¨!¨QØ!(°'Ø 6ð8ñ8ô8ð8ð8ð8r<có6—d„}t|||||d¬¦«dS)zT Raises an assertion error if two masked arrays are not equal elementwise. cóH—tjt||¦«¦« S)N)r)ÚallrrXs r;Úcomparez$fail_if_array_equal..compareës€Ý”F�6 ! Q™<œ<Ñ(Ô(Ð(Ð)r<rwrsN©r)r8r9rKrnr}s r;rræs?€ð *ð*ð*嘠! Q°ÀØ 6ð8ñ8ô8ð8ð8ð8r<có<‡—ˆfd„}t|||||d¬¦«dS)ú| Checks the equality of two masked arrays, up to given number odecimals. The equality is checked elementwise. có0•—t||d‰ z¬¦«S)ú.compareøsø€å�a˜ ¨¨¡Ð1Ñ1Ô1Ð1r<úArrays are not almost equalrsNr~©r8r9rBrKrnr}s ` r;rrñsLø€ð2ð2ð2ð2ð2õ˜ ! Q°ÀØ =ð?ñ?ô?ð?ð?ð?r<có<‡—ˆfd„}t|||||d¬¦«dS)r€có&•—t||‰¦«S)r‚)rrƒs €r;r}z*assert_array_almost_equal..comparesø€å�a˜˜GÑ$Ô$Ð$r<r„rsNr~r…s ` r;rrÿsLø€ð%ð%ð%ð%ð%õ˜ ! Q°ÀØ =ð?ñ?ô?ð?ð?ð?r<cóD—ttj||||d¬¦«dS)z7 Checks that x is smaller than y elementwise. zArrays are not less-orderedrsN)rrPÚ__lt__rys r;rr s5€õ �œ¨!¨QØ!(°'Ø =ð?ñ?ô?ð?ð?ð?r<có¦—|turt|tu¦«|turt|tu¦«t|||¬¦«dS)z- Asserts the equality of two masks. rWN)rrr)Úm1Úm2rKs r;rrsU€ð  �V€|€|Ý�•f� ÑÔÐØ �V€|€|Ý�•f� ÑÔÐÝ�r˜2 wÐ/Ñ/Ô/Ð/Ð/Ð/r<)Tr r!)r=T)rC)rlrCT)rCTrCT)rCT)r=rCT)*Ú__doc__rPÚnumpyr)rrÚnumpy.core.umathÚcorer.Ú numpy.testingrrrrr r r r rrrÚ __all__maskedÚunittestrÚ__some__from_testingÚ__all__rrrMrrrkrrrrrrrrrr©r<r;úr—s]ðððð€€€àÐÐÐØ!Ð!Ð!Ð!Ð!Ð!Ð!Ð!Ø Ð Ð Ð Ð Ð Ð Ð Ð ØÐÐÐðððððððððððððððIÐHÐHÐHÐHÐHÐHÐHÐHÐHÐHÐHÐHÐHÐHÐHððð€ ðÐÐÐÐÐðððÐð Ð.Ñ .€ððððð,ðððð& ð ð ð ð  ð  ð  ð$8ð$8ð$8ð$8ðN"ð"ð"ð"ð4!Ðð "ð "ð "ð "ð #€ ðMOØ$(ðKðKðKðKð28ð8ð8ð8ð8ð8ð8ð8ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð?ð?ð?ð?ð 0ð 0ð 0ð 0ð 0ð 0r<