Skip to content

Warning about Numpy import removed, cleanup in __init__.py #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions dpnp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@
# THE POSSIBILITY OF SUCH DAMAGE.
# *****************************************************************************

import sys
import warnings

# import os
# myvar=os.environ

# import pprint
# pp = pprint.PrettyPrinter(indent=4)
# pp.pprint(myvar)

# os.system("ldd ./dpnp/libdpnp_backend_c.so")
# subprocess.call("echo Hello 123", shell=True)

if "numpy" in sys.modules:
warnings.warn("\nDPNP: Module NumPy found. Please load DPNP module before NumPy.\n")


import os
mypath = os.path.dirname(os.path.realpath(__file__))

Expand All @@ -50,7 +33,6 @@
os.environ["PATH"] += os.pathsep + mypath + os.pathsep + dpctlpath


# from dpnp.dparray import dparray as ndarray
from dpnp.dpnp_array import dpnp_array as ndarray
from dpnp.dpnp_flatiter import flatiter as flatiter

Expand Down