Skip to content

Commit ad7b896

Browse files
committed
fix World.show_network() file path error
1 parent 950130d commit ad7b896

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

uxsim/uxsim.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,6 +2524,9 @@ def show_network(W, width=1, left_handed=1, figsize=(6,6), network_font_size=10,
25242524
node_size : int, optional
25252525
The size of the nodes in the visualization. Default is 6.
25262526
"""
2527+
2528+
os.makedirs(f"out{W.name}", exist_ok=True)
2529+
25272530
plt.rcParams["font.family"] = get_font_for_matplotlib()
25282531

25292532
plt.figure(figsize=figsize)

0 commit comments

Comments
 (0)