/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/__pycache__
NameSizeModeActions
conftest.cpython-311.pyc62140644editdlrm
ctypeslib.cpython-311.pyc215160644editdlrm
dtypes.cpython-311.pyc26510644editdlrm
exceptions.cpython-311.pyc86340644editdlrm
matlib.cpython-311.pyc121450644editdlrm
setup.cpython-311.pyc23080644editdlrm
version.cpython-311.pyc10940644editdlrm
_distributor_init.cpython-311.pyc5650644editdlrm
_globals.cpython-311.pyc41910644editdlrm
_pytesttester.cpython-311.pyc75030644editdlrm
_version.cpython-311.pyc6130644editdlrm
__config__.cpython-311.pyc61340644editdlrm
__init__.cpython-311.pyc166710644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/__pycache__/exceptions.cpython-311.pyc (8634B)
§ ‡*»ãµ?�hãóî—dZgd¢Zde¦«vr ed¦«‚dZGd„de¦«ZGd„de¦«ZGd „d e ¦«Z Gd „d e¦«Z Gd „de e ¦«ZGd„de¦«ZdS)aw Exceptions and Warnings (:mod:`numpy.exceptions`) ================================================= General exceptions used by NumPy. Note that some exceptions may be module specific, such as linear algebra errors. .. versionadded:: NumPy 1.25 The exceptions module is new in NumPy 1.25. Older exceptions remain available through the main NumPy namespace for compatibility. .. currentmodule:: numpy.exceptions Warnings -------- .. autosummary:: :toctree: generated/ ComplexWarning Given when converting complex to real. VisibleDeprecationWarning Same as a DeprecationWarning, but more visible. Exceptions ---------- .. autosummary:: :toctree: generated/ AxisError Given when an axis was invalid. DTypePromotionError Given when no common dtype could be found. TooHardError Error specific to `numpy.shares_memory`. )ÚComplexWarningÚVisibleDeprecationWarningÚModuleDeprecationWarningÚ TooHardErrorÚ AxisErrorÚDTypePromotionErrorÚ _is_loadedz'Reloading numpy._globals is not allowedTcó—eZdZdZdS)rzß The warning raised when casting a complex dtype to a real dtype. As implemented, casting a complex number to a real discards its imaginary part, but this behavior may not be what the user actually wants. N©Ú__name__Ú __module__Ú __qualname__Ú__doc__©óúd/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/numpy/exceptions.pyrr/s€€€€€ððð €Drrcó—eZdZdZdS)ra¦Module deprecation warning. .. warning:: This warning should not be used, since nose testing is not relevant anymore. The nose tester turns ordinary Deprecation warnings into test failures. That makes it hard to deprecate whole modules, because they get imported by default. So this is a special Deprecation warning that the nose tester will let pass without making tests fail. Nr rrrrr:s€€€€€ð ð ð ð rrcó—eZdZdZdS)rzáVisible deprecation warning. By default, python will not show deprecation warnings, so this class can be used when a very visible warning is helpful, for example because the usage is most likely a user bug. Nr rrrrrJs€€€€€ððððrrcó—eZdZdZdS)rzýmax_work was exceeded. This is raised whenever the maximum number of candidate solutions to consider specified by the ``max_work`` parameter is exceeded. Assigning a finite number to max_work may have caused the operation to fail. Nr rrrrrUs€€€€€ððð €Drrcó$—eZdZdZdZdd„Zd„ZdS)raôAxis supplied was invalid. This is raised whenever an ``axis`` parameter is specified that is larger than the number of array dimensions. For compatibility with code written against older numpy versions, which raised a mixture of `ValueError` and `IndexError` for this situation, this exception subclasses both to ensure that ``except ValueError`` and ``except IndexError`` statements continue to catch `AxisError`. .. versionadded:: 1.13 Parameters ---------- axis : int or str The out of bounds axis or a custom exception message. If an axis is provided, then `ndim` should be specified as well. ndim : int, optional The number of array dimensions. msg_prefix : str, optional A prefix for the exception message. Attributes ---------- axis : int, optional The out of bounds axis or ``None`` if a custom exception message was provided. This should be the axis as passed by the user, before any normalization to resolve negative indices. .. versionadded:: 1.22 ndim : int, optional The number of array dimensions or ``None`` if a custom exception message was provided. .. versionadded:: 1.22 Examples -------- >>> array_1d = np.arange(10) >>> np.cumsum(array_1d, axis=1) Traceback (most recent call last): ... numpy.exceptions.AxisError: axis 1 is out of bounds for array of dimension 1 Negative axes are preserved: >>> np.cumsum(array_1d, axis=-2) Traceback (most recent call last): ... numpy.exceptions.AxisError: axis -2 is out of bounds for array of dimension 1 The class constructor generally takes the axis and arrays' dimensionality as arguments: >>> print(np.AxisError(2, 1, msg_prefix='error')) error: axis 2 is out of bounds for array of dimension 1 Alternatively, a custom exception message can be passed: >>> print(np.AxisError('Custom error message')) Custom error message ©ÚaxisÚndimÚ_msgNcór—||cxur€nn||_d|_d|_dS||_||_||_dS)N)rrr)ÚselfrrÚ msg_prefixs rÚ__init__zAxisError.__init__¥sQ€Ø �:Ð %Ð %Ð %Ð %Ð %Ð %Ð %Ð %àˆDŒI؈DŒI؈DŒIˆIˆIà"ˆDŒI؈DŒI؈DŒIˆIˆIrcóz—|j}|j}||cxur€ nn|jSd|›d|›�}|j� |j›d|›�}|S)Nzaxis z) is out of bounds for array of dimension z: r)rrrÚmsgs rÚ__str__zAxisError.__str__°sl€ØŒyˆØŒyˆà �4Ð Ð Ð Ð Ð Ð Ð Ð Ø”9Ð àO˜$ÐOÐOÈÐOÐOˆCØŒyÐ$ØœÐ+Ð+ cÐ+Ð+�؈Jr)NN)r r r rÚ __slots__rr rrrrrbsI€€€€€ð>ð>ð@)€Ið ð ð ð ð ð ð ð ð rrcó—eZdZdZdS)raMultiple DTypes could not be converted to a common one. This exception derives from ``TypeError`` and is raised whenever dtypes cannot be converted to a single common one. This can be because they are of a different category/class or incompatible instances of the same one (see Examples). Notes ----- Many functions will use promotion to find the correct result and implementation. For these functions the error will typically be chained with a more specific error indicating that no implementation was found for the input dtypes. Typically promotion should be considered "invalid" between the dtypes of two arrays when `arr1 == arr2` can safely return all ``False`` because the dtypes are fundamentally different. Examples -------- Datetimes and complex numbers are incompatible classes and cannot be promoted: >>> np.result_type(np.dtype("M8[s]"), np.complex128) DTypePromotionError: The DType could not be promoted by . This means that no common DType exists for the given inputs. For example they cannot be stored in a single array unless the dtype is `object`. The full list of DTypes is: (, ) For example for structured dtypes, the structure can mismatch and the same ``DTypePromotionError`` is given when two structured dtypes with a mismatch in their number of fields is given: >>> dtype1 = np.dtype([("field1", np.float64), ("field2", np.int64)]) >>> dtype2 = np.dtype([("field1", np.float64)]) >>> np.promote_types(dtype1, dtype2) DTypePromotionError: field names `('field1', 'field2')` and `('field1',)` mismatch. Nr rrrrr½s€€€€€ð(ð(ðR €DrrN)rÚ__all__ÚglobalsÚ RuntimeErrorrÚRuntimeWarningrÚDeprecationWarningrÚ UserWarningrrÚ ValueErrorÚ IndexErrorrÚ TypeErrorrrrrúr,s\ððððD 8ð 8ð 8€ð�7�7‘9”9ÐÐØ ˆ,Ð@Ñ AÔ AÐAØ € ð ð ð ð ð �^ñ ô ð ð ð ð ð ð Ð1ñ ô ð ð ðððð  ñôðð  ð  ð  ð  ð  �<ñ  ô  ð  ðXðXðXðXðX� ˜JñXôXðXðv* ð* ð* ð* ð* ˜)ñ* ô* ð* ð* ð* r