Skip to content

Commit 90cf697

Browse files
improve warning messages
1 parent fb14029 commit 90cf697

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

datajoint/erd.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ERD:
5050
"""
5151

5252
def __init__(self, *args, **kwargs):
53-
warnings.warn('ERD functionality depends on matplotlib, networkx, and pygraphviz. '
53+
warnings.warn('ERD functionality depends on matplotlib and pygraphviz. '
5454
'Please install both of these libraries to enable the ERD feature.')
5555
else:
5656
class ERD(nx.DiGraph):
@@ -228,7 +228,6 @@ def _make_graph(self):
228228
return graph
229229

230230
def make_dot(self):
231-
import networkx as nx
232231

233232
graph = self._make_graph()
234233
graph.nodes()

0 commit comments

Comments
 (0)