summaryrefslogtreecommitdiff
path: root/networkx/readwrite
diff options
context:
space:
mode:
authorNeil <mistersheik@gmail.com>2020-06-22 16:32:39 -0400
committerGitHub <noreply@github.com>2020-06-22 16:32:39 -0400
commit207147ee179554a33f10f25032054d3e01f96188 (patch)
treede8b6001d237cf6e07d9c13d2c7dbfb5ebc30f28 /networkx/readwrite
parent4b59ae42d52980852f795811426254dd06d266b3 (diff)
downloadnetworkx-207147ee179554a33f10f25032054d3e01f96188.tar.gz
Fix typo: np.int -> np.int_ (#4013)
np.int is just int--it is not a numpy type, and is deprecated. Numpy has changed to np.int_
Diffstat (limited to 'networkx/readwrite')
-rw-r--r--networkx/readwrite/gexf.py2
-rw-r--r--networkx/readwrite/graphml.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/networkx/readwrite/gexf.py b/networkx/readwrite/gexf.py
index 647b8838..8fb3163a 100644
--- a/networkx/readwrite/gexf.py
+++ b/networkx/readwrite/gexf.py
@@ -218,7 +218,7 @@ class GEXF:
(np.float32, "float"),
(np.float16, "float"),
(np.float_, "float"),
- (np.int, "int"),
+ (np.int_, "int"),
(np.int8, "int"),
(np.int16, "int"),
(np.int32, "int"),
diff --git a/networkx/readwrite/graphml.py b/networkx/readwrite/graphml.py
index fdccca12..241cb9d4 100644
--- a/networkx/readwrite/graphml.py
+++ b/networkx/readwrite/graphml.py
@@ -330,7 +330,7 @@ class GraphML:
# prepend so that python types are created upon read (last entry wins)
types = [(np.float64, "float"), (np.float32, "float"),
(np.float16, "float"), (np.float_, "float"),
- (np.int, "int"), (np.int8, "int"),
+ (np.int_, "int"), (np.int8, "int"),
(np.int16, "int"), (np.int32, "int"),
(np.int64, "int"), (np.uint8, "int"),
(np.uint16, "int"), (np.uint32, "int"),