From 9a9c072860ae2eebfebe20cc0027c6e8abf7fd3d Mon Sep 17 00:00:00 2001 From: jgostick Date: Fri, 15 Sep 2023 17:45:06 +0900 Subject: [PATCH] pep8 errors --- .../generators/_voronoi_delaunay_dual.py | 50 ++++--------------- 1 file changed, 11 insertions(+), 39 deletions(-) diff --git a/openpnm/_skgraph/generators/_voronoi_delaunay_dual.py b/openpnm/_skgraph/generators/_voronoi_delaunay_dual.py index 1b709b8d81..440b3c3263 100644 --- a/openpnm/_skgraph/generators/_voronoi_delaunay_dual.py +++ b/openpnm/_skgraph/generators/_voronoi_delaunay_dual.py @@ -168,49 +168,21 @@ def voronoi_delaunay_dual( shape=[1, 1, 0], trim=True, reflect=True, - relaxation=0, f=0.2, + relaxation=0, node_prefix='pore', edge_prefix='throat', ) net = op.network.Network() net.update(pn) h = None - h = op.visualization.plot_connections(net, throats=pn['throat.delaunay'], c='b', ax=h) - h = op.visualization.plot_connections(net, throats=pn['throat.voronoi'], c='g', ax=h) - h = op.visualization.plot_connections(net, throats=pn['throat.interconnect'], c='r', ax=h) - h = op.visualization.plot_coordinates(net, pores=pn['pore.voronoi'], c='g', markersize=150, ax=h) - h = op.visualization.plot_coordinates(net, pores=pn['pore.delaunay'], c='b', markersize=150, ax=h) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + h = op.visualization.plot_connections( + net, throats=pn['throat.delaunay'], c='b', ax=h) + h = op.visualization.plot_connections( + net, throats=pn['throat.voronoi'], c='g', ax=h) + h = op.visualization.plot_connections( + net, throats=pn['throat.interconnect'], c='r', ax=h) + h = op.visualization.plot_coordinates( + net, pores=pn['pore.voronoi'], c='g', markersize=150, ax=h) + h = op.visualization.plot_coordinates( + net, pores=pn['pore.delaunay'], c='b', markersize=150, ax=h)