§ <ˆjãóF—dZddlmZd„Zd„ZGd„de¦«ZeGd„de¦«¦«ZeGd „d e¦«¦«ZeGd „d e¦«¦«Z eGd „de ¦«¦«Z eGd„de ¦«¦«Z eGd„de ¦«¦«Z dS)zÚ Various richly-typed exceptions, that also help us deal with string formatting in python where it's easier. By putting the formatting in `__str__`, we also avoid paying the cost for users who silence the exceptions. é)Ú set_modulecó<—t|¦«dkr|dS|S)Néé)Úlen)Útups úM/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/core/_exceptions.pyÚ _unpack_tupler s€Ý ˆ3�x„x�1‚}€}Ø�1Œvˆ àˆ ócóV—t|t¦«sJ‚|jj|_|S)aG A decorator that makes an exception class look like its base. We use this to hide subclasses that are implementation details - the user should catch the base type, which is what the traceback will show them. Classes decorated with this decorator are subject to removal without a deprecation warning. )Ú issubclassÚ ExceptionÚ__base__Ú__name__)Úclss r Ú_display_as_basers+€õ �c�9Ñ %Ô %Ð%Ð%Ð %Ø”<Ô(€C„LØ €Jr có—eZdZdZd„ZdS)ÚUFuncTypeErrorz% Base class for all ufunc exceptions có—||_dS©N)Úufunc)Úselfrs r Ú__init__zUFuncTypeError.__init__"s €ØˆŒ ˆ ˆ r N)rÚ __module__Ú __qualname__Ú__doc__r©r r rr s)€€€€€Ø/Ð/ðððððr rcó(‡—eZdZdZˆfd„Zd„ZˆxZS)Ú_UFuncNoLoopErrorz* Thrown when a ufunc loop cannot be found cór•—t¦« |¦«t|¦«|_dSr)ÚsuperrÚtupleÚdtypes©rrr#Ú __class__s €r rz_UFuncNoLoopError.__init__)s,ø€Ý ‰Œ×Ò˜ÑÔÐݘF‘m”mˆŒ ˆ ˆ r c óÔ—d |jjt|jd|jj…¦«t|j|jjd…¦«¦«S)NzLufunc {!r} did not contain a loop with signature matching types {!r} -> {!r})Úformatrrr r#Únin©rs r Ú__str__z_UFuncNoLoopError.__str__-sW€ð ç Š&Ø ŒJÔ Ý ˜$œ+ o t¤z¤~ oÔ6Ñ 7Ô 7Ý ˜$œ+ d¤j¤n o oÔ6Ñ 7Ô 7ñ ô ð r ©rrrrrr*Ú __classcell__©r%s@r rr&sMø€€€€€à4Ð4ð$ð$ð$ð$ð$ð ð ð ð ð ð ð r rcó(‡—eZdZdZˆfd„Zd„ZˆxZS)Ú_UFuncBinaryResolutionErrorz' Thrown when a binary resolution fails c󀕗t¦« ||¦«t|j¦«dksJ‚dS)Nr)r!rrr#r$s €r rz$_UFuncBinaryResolutionError.__init__;s>ø€Ý ‰Œ×Ò˜ Ñ'Ô'Ð'Ý�4”;ÑÔ 1Ò$Ð$Ð$Ð$Ð$Ð$r có<—dj|jjg|j¢RŽS)Nz7ufunc {!r} cannot use operands with types {!r} and {!r})r'rrr#r)s r r*z#_UFuncBinaryResolutionError.__str__?s5€ðØ EÜ Ø ŒJÔ ð ð#'¤+ð ð ð ð r r+r-s@r r/r/8sMø€€€€€à1Ð1ð%ð%ð%ð%ð%ð ð ð ð ð ð ð r r/có‡—eZdZˆfd„ZˆxZS)Ú_UFuncCastingErrorcót•—t¦« |¦«||_||_||_dSr)r!rÚcastingÚfrom_Úto)rrr5r6r7r%s €r rz_UFuncCastingError.__init__Is4ø€Ý ‰Œ×Ò˜ÑÔÐØˆŒ ؈Œ ؈Œˆˆr )rrrrr,r-s@r r3r3Gs8ø€€€€€ðððððððððr r3có(‡—eZdZdZˆfd„Zd„ZˆxZS)Ú_UFuncInputCastingErrorz, Thrown when a ufunc input cannot be casted có^•—t¦« ||||¦«||_dSr)r!rÚin_i©rrr5r6r7Úir%s €r rz _UFuncInputCastingError.__init__Ss,ø€Ý ‰Œ×Ò˜ ¨°Ñ3Ô3Ð3؈Œ ˆ ˆ r có¾—|jjdkrd |j¦«nd}d |jj||j|j|j¦«S)Nrú{} ÚzGCannot cast ufunc {!r} input {}from {!r} to {!r} with casting rule {!r})rr(r'r;rr6r7r5©rÚi_strs r r*z_UFuncInputCastingError.__str__WsW€à+/¬:¬>¸QÒ+>Ð+>�— ’ ˜TœYÑ'Ô'Ð'ÀBˆð ç Š&Ø ŒJÔ  ¨¬ °D´G¸T¼\ñ ô ð r r+r-s@r r9r9PsMø€€€€€à6Ð6ðððððð ð ð ð ð ð ð r r9có(‡—eZdZdZˆfd„Zd„ZˆxZS)Ú_UFuncOutputCastingErrorz- Thrown when a ufunc output cannot be casted có^•—t¦« ||||¦«||_dSr)r!rÚout_ir<s €r rz!_UFuncOutputCastingError.__init__es,ø€Ý ‰Œ×Ò˜ ¨°Ñ3Ô3Ð3؈Œ ˆ ˆ r có¾—|jjdkrd |j¦«nd}d |jj||j|j|j¦«S)Nrr?r@zHCannot cast ufunc {!r} output {}from {!r} to {!r} with casting rule {!r})rÚnoutr'rFrr6r7r5rAs r r*z _UFuncOutputCastingError.__str__isW€à,0¬J¬O¸qÒ,@Ð,@�— ’ ˜TœZÑ(Ô(Ð(Àbˆð ç Š&Ø ŒJÔ  ¨¬ °D´G¸T¼\ñ ô ð r r+r-s@r rDrDbsMø€€€€€à7Ð7ðððððð ð ð ð ð ð ð r rDcóJ—eZdZdZd„Zed„¦«Zed„¦«Zd„Z dS)Ú_ArrayMemoryErrorz) Thrown when an array cannot be allocatedcó"—||_||_dSr)ÚshapeÚdtype)rrLrMs r rz_ArrayMemoryError.__init__ws€ØˆŒ ؈Œ ˆ ˆ r có<—|jj}|jD]}||z}Œ|Sr)rMÚitemsizerL)rÚ num_bytesÚdims r Ú _total_sizez_ArrayMemoryError._total_size{s/€à”JÔ'ˆ Ø”:ð ð ˆCØ ˜Ñ ˆIˆIØÐr cóè—d}d}gd¢}t| ¦«dz d¦«|z}d||zz}||z }~t|¦«|kr |dz }||z}|t|¦«kr"t|¦«dz }|d||z |zzz}|}||}|dkrd ||¦«St|¦«dkrd ||¦«Sd  ||¦«S) z5 Convert a number of bytes into a binary size string é i)ÚbytesÚKiBÚMiBÚGiBÚTiBÚPiBÚEiBrrz {:.0f} {}ièz {:#.3g} {}z {:#.0f} {})ÚmaxÚ bit_lengthÚroundrr') rPÚ LOG2_STEPÚSTEPÚunitsÚunit_iÚunit_valÚn_unitsÚ new_unit_iÚ unit_names r Ú_size_to_stringz!_ArrayMemoryError._size_to_string‚s&€ð ˆ ؈ØCÐCÐCˆå�Y×)Ò)Ñ+Ô+¨aÑ/°Ñ3Ô3°yÑ@ˆØ˜ )Ñ+Ñ,ˆØ˜hÑ&ˆØ õ �‰>Œ>˜TÒ !Ð !Ø �a‰KˆFØ �t‰OˆGð •S˜‘Z”ZÒ Ð Ý˜U™œ a™ˆJØ �q˜f zÑ1°YÑ>Ñ?Ñ ?ˆG؈Fà˜&”Mˆ à �QŠ;ˆ;à×%Ò% g¨yÑ9Ô9Ð 9Ý �7‰^Œ^˜dÒ "Ð "à×&Ò& w° Ñ:Ô:Ð :ð ×&Ò& w° Ñ:Ô:Ð :r cóx—| |j¦«}d ||j|j¦«S)NzAUnable to allocate {} for an array with shape {} and data type {})rgrRr'rLrM)rÚsize_strs r r*z_ArrayMemoryError.__str__§s5€Ø×'Ò'¨Ô(8Ñ9Ô9ˆà Oß ŠV�H˜dœj¨$¬*Ñ 5Ô 5ð r N) rrrrrÚpropertyrRÚ staticmethodrgr*rr r rJrJtso€€€€€à3Ð3ððððððñ„Xðð ð";ð";ñ„\ð";ðH ð ð ð ð r rJN)rÚ_utilsrr rÚ TypeErrorrrr/r3r9rDÚ MemoryErrorrJrr r úrosÂðððð ÐÐÐÐÐðððð ð ð ððððð�Yñôðð ð ð ð ð ð ˜ñ ô ñÔð ð"ð  ð  ð  ð  ð  Ð"3ñ  ô  ñÔð  ðððððð˜ñôñÔððð ð ð ð ð Ð0ñ ô ñÔð ð"ð ð ð ð ð Ð1ñ ô ñÔð ð"ð7 ð7 ð7 ð7 ð7 ˜ ñ7 ô7 ñÔð7 ð7 ð7 r