SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > > site-packages > numpy > core


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11//site-packages/numpy/core

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
include Directory - -
lib Directory - -
tests Directory - -
__init__.py File 5779 bytes April 17 2025 13:10:58.
__init__.pyi File 126 bytes April 17 2025 13:10:58.
_add_newdocs.py File 208972 bytes April 17 2025 13:10:58.
_add_newdocs_scalars.py File 12106 bytes April 17 2025 13:10:58.
_asarray.py File 3884 bytes April 17 2025 13:10:58.
_asarray.pyi File 1086 bytes April 17 2025 13:10:58.
_dtype.py File 10606 bytes April 17 2025 13:10:58.
_dtype_ctypes.py File 3673 bytes April 17 2025 13:10:58.
_exceptions.py File 5379 bytes April 17 2025 13:10:58.
_internal.py File 28348 bytes April 17 2025 13:10:58.
_internal.pyi File 1032 bytes April 17 2025 13:10:58.
_machar.py File 11565 bytes April 17 2025 13:10:58.
_methods.py File 8613 bytes April 17 2025 13:10:58.
_multiarray_tests.cpython-311-x86_64-linux-gnu.so File 175512 bytes April 17 2025 13:11:30.
_multiarray_umath.cpython-311-x86_64-linux-gnu.so File 6959064 bytes April 17 2025 13:11:30.
_operand_flag_tests.cpython-311-x86_64-linux-gnu.so File 16944 bytes April 17 2025 13:11:30.
_rational_tests.cpython-311-x86_64-linux-gnu.so File 59688 bytes April 17 2025 13:11:30.
_simd.cpython-311-x86_64-linux-gnu.so File 2586024 bytes April 17 2025 13:11:30.
_string_helpers.py File 2852 bytes April 17 2025 13:10:58.
_struct_ufunc_tests.cpython-311-x86_64-linux-gnu.so File 17048 bytes April 17 2025 13:11:30.
_type_aliases.py File 7534 bytes April 17 2025 13:10:58.
_type_aliases.pyi File 404 bytes April 17 2025 13:10:58.
_ufunc_config.py File 13944 bytes April 17 2025 13:10:58.
_ufunc_config.pyi File 1066 bytes April 17 2025 13:10:58.
_umath_tests.cpython-311-x86_64-linux-gnu.so File 41992 bytes April 17 2025 13:11:30.
arrayprint.py File 63608 bytes April 17 2025 13:10:58.
arrayprint.pyi File 4428 bytes April 17 2025 13:10:58.
cversions.py File 347 bytes April 17 2025 13:10:58.
defchararray.py File 73617 bytes April 17 2025 13:10:58.
defchararray.pyi File 9216 bytes April 17 2025 13:10:58.
einsumfunc.py File 51868 bytes April 17 2025 13:10:58.
einsumfunc.pyi File 4860 bytes April 17 2025 13:10:58.
fromnumeric.py File 128821 bytes April 17 2025 13:10:58.
fromnumeric.pyi File 23510 bytes April 17 2025 13:10:58.
function_base.py File 19836 bytes April 17 2025 13:10:58.
function_base.pyi File 4725 bytes April 17 2025 13:10:58.
generate_numpy_api.py File 7654 bytes April 17 2025 13:10:58.
getlimits.py File 25865 bytes April 17 2025 13:10:58.
getlimits.pyi File 82 bytes April 17 2025 13:10:58.
memmap.py File 11771 bytes April 17 2025 13:10:58.
memmap.pyi File 55 bytes April 17 2025 13:10:58.
multiarray.py File 56097 bytes April 17 2025 13:10:58.
multiarray.pyi File 24768 bytes April 17 2025 13:10:58.
numeric.py File 77014 bytes April 17 2025 13:10:58.
numeric.pyi File 14230 bytes April 17 2025 13:10:58.
numerictypes.py File 18098 bytes April 17 2025 13:10:58.
numerictypes.pyi File 3267 bytes April 17 2025 13:10:58.
overrides.py File 7093 bytes April 17 2025 13:10:58.
records.py File 37533 bytes April 17 2025 13:10:58.
records.pyi File 5692 bytes April 17 2025 13:10:58.
setup.py File 48182 bytes April 17 2025 13:10:58.
setup_common.py File 17085 bytes April 17 2025 13:10:58.
shape_base.py File 29743 bytes April 17 2025 13:10:58.
shape_base.pyi File 2774 bytes April 17 2025 13:10:58.
umath.py File 2040 bytes April 17 2025 13:10:58.
umath_tests.py File 389 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib64/python3.11//site-packages/numpy/core/__init__.py

"""
Contains the core of NumPy: ndarray, ufuncs, dtypes, etc.

Please note that this module is private.  All functions and objects
are available in the main ``numpy`` namespace - use that instead.

"""

from numpy.version import version as __version__

import os
import warnings

# disables OpenBLAS affinity setting of the main thread that limits
# python threads or processes to one core
env_added = []
for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']:
    if envkey not in os.environ:
        os.environ[envkey] = '1'
        env_added.append(envkey)

try:
    from . import multiarray
except ImportError as exc:
    import sys
    msg = """

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python%d.%d from "%s"
  * The NumPy version is: "%s"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: %s
""" % (sys.version_info[0], sys.version_info[1], sys.executable,
        __version__, exc)
    raise ImportError(msg)
finally:
    for envkey in env_added:
        del os.environ[envkey]
del envkey
del env_added
del os

from . import umath

# Check that multiarray,umath are pure python modules wrapping
# _multiarray_umath and not either of the old c-extension modules
if not (hasattr(multiarray, '_multiarray_umath') and
        hasattr(umath, '_multiarray_umath')):
    import sys
    path = sys.modules['numpy'].__path__
    msg = ("Something is wrong with the numpy installation. "
        "While importing we detected an older version of "
        "numpy in {}. One method of fixing this is to repeatedly uninstall "
        "numpy until none is found, then reinstall this version.")
    raise ImportError(msg.format(path))

from . import numerictypes as nt
multiarray.set_typeDict(nt.sctypeDict)
from . import numeric
from .numeric import *
from . import fromnumeric
from .fromnumeric import *
from . import defchararray as char
from . import records
from . import records as rec
from .records import record, recarray, format_parser
# Note: module name memmap is overwritten by a class with same name
from .memmap import *
from .defchararray import chararray
from . import function_base
from .function_base import *
from . import _machar
from . import getlimits
from .getlimits import *
from . import shape_base
from .shape_base import *
from . import einsumfunc
from .einsumfunc import *
del nt

from .numeric import absolute as abs

# do this after everything else, to minimize the chance of this misleadingly
# appearing in an import-time traceback
from . import _add_newdocs
from . import _add_newdocs_scalars
# add these for module-freeze analysis (like PyInstaller)
from . import _dtype_ctypes
from . import _internal
from . import _dtype
from . import _methods

__all__ = ['char', 'rec', 'memmap']
__all__ += numeric.__all__
__all__ += ['record', 'recarray', 'format_parser']
__all__ += ['chararray']
__all__ += function_base.__all__
__all__ += getlimits.__all__
__all__ += shape_base.__all__
__all__ += einsumfunc.__all__

# We used to use `np.core._ufunc_reconstruct` to unpickle. This is unnecessary,
# but old pickles saved before 1.20 will be using it, and there is no reason
# to break loading them.
def _ufunc_reconstruct(module, name):
    # The `fromlist` kwarg is required to ensure that `mod` points to the
    # inner-most module rather than the parent package when module name is
    # nested. This makes it possible to pickle non-toplevel ufuncs such as
    # scipy.special.expit for instance.
    mod = __import__(module, fromlist=[name])
    return getattr(mod, name)


def _ufunc_reduce(func):
    # Report the `__name__`. pickle will try to find the module. Note that
    # pickle supports for this `__name__` to be a `__qualname__`. It may
    # make sense to add a `__qualname__` to ufuncs, to allow this more
    # explicitly (Numba has ufuncs as attributes).
    # See also: https://github.com/dask/distributed/issues/3450
    return func.__name__


def _DType_reconstruct(scalar_type):
    # This is a work-around to pickle type(np.dtype(np.float64)), etc.
    # and it should eventually be replaced with a better solution, e.g. when
    # DTypes become HeapTypes.
    return type(dtype(scalar_type))


def _DType_reduce(DType):
    # As types/classes, most DTypes can simply be pickled by their name:
    if not DType._legacy or DType.__module__ == "numpy.dtypes":
        return DType.__name__

    # However, user defined legacy dtypes (like rational) do not end up in
    # `numpy.dtypes` as module and do not have a public class at all.
    # For these, we pickle them by reconstructing them from the scalar type:
    scalar_type = DType.type
    return _DType_reconstruct, (scalar_type,)


def __getattr__(name):
    # Deprecated 2022-11-22, NumPy 1.25.
    if name == "MachAr":
        warnings.warn(
            "The `np.core.MachAr` is considered private API (NumPy 1.24)",
            DeprecationWarning, stacklevel=2,
        )
        return _machar.MachAr
    raise AttributeError(f"Module {__name__!r} has no attribute {name!r}")


import copyreg

copyreg.pickle(ufunc, _ufunc_reduce)
copyreg.pickle(type(dtype), _DType_reduce, _DType_reconstruct)

# Unclutter namespace (must keep _*_reconstruct for unpickling)
del copyreg
del _ufunc_reduce
del _DType_reduce

from numpy._pytesttester import PytestTester
test = PytestTester(__name__)
del PytestTester

SILENT KILLER Tool