Skip to content

Commit 5d65a33

Browse files
Warning about Numpy import removed, cleanup in __init__.py (#1135)
1 parent 4a19646 commit 5d65a33

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

dpnp/__init__.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,6 @@
2424
# THE POSSIBILITY OF SUCH DAMAGE.
2525
# *****************************************************************************
2626

27-
import sys
28-
import warnings
29-
30-
# import os
31-
# myvar=os.environ
32-
33-
# import pprint
34-
# pp = pprint.PrettyPrinter(indent=4)
35-
# pp.pprint(myvar)
36-
37-
# os.system("ldd ./dpnp/libdpnp_backend_c.so")
38-
# subprocess.call("echo Hello 123", shell=True)
39-
40-
if "numpy" in sys.modules:
41-
warnings.warn("\nDPNP: Module NumPy found. Please load DPNP module before NumPy.\n")
42-
43-
4427
import os
4528
mypath = os.path.dirname(os.path.realpath(__file__))
4629

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

5235

53-
# from dpnp.dparray import dparray as ndarray
5436
from dpnp.dpnp_array import dpnp_array as ndarray
5537
from dpnp.dpnp_flatiter import flatiter as flatiter
5638

0 commit comments

Comments
 (0)