Skip to content

Commit a06d2af

Browse files
committed
Rename staticmethods to pass flake8
1 parent efa3d90 commit a06d2af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datajoint/diagram.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _make_graph(self):
301301
return graph
302302

303303
@staticmethod
304-
def _stringify_and_encapsulate_edge_attributes(graph):
304+
def _encapsulate_edge_attributes(graph):
305305
"""
306306
Modifies the `nx.Graph`'s edge attribute `attr_map` to be a string representation
307307
of the attribute map, and encapsulates the string in double quotes.
@@ -315,7 +315,7 @@ def _stringify_and_encapsulate_edge_attributes(graph):
315315
graph.edges[u, v]["attr_map"] = '"{0}"'.format(edgedata["attr_map"])
316316

317317
@staticmethod
318-
def _stringify_and_encapsulate_node_names(graph):
318+
def _encapsulate_node_names(graph):
319319
"""
320320
Modifies the `nx.Graph`'s node names string representations encapsulated in
321321
double quotes.
@@ -398,8 +398,8 @@ def make_dot(self):
398398
for node, d in dict(graph.nodes(data=True)).items()
399399
}
400400

401-
self._stringify_and_encapsulate_node_names(graph)
402-
self._stringify_and_encapsulate_edge_attributes(graph)
401+
self._encapsulate_node_names(graph)
402+
self._encapsulate_edge_attributes(graph)
403403
dot = nx.drawing.nx_pydot.to_pydot(graph)
404404
for node in dot.get_nodes():
405405
node.set_shape("circle")

0 commit comments

Comments
 (0)