Skip to content

Commit c6c092d

Browse files
authored
Merge pull request #174 from toruseo/hotfix-World_show_network
Fix `World.show_network()` file path bug
2 parents 3af5673 + ade3bab commit c6c092d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

uxsim/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from .analyzer import *
44
from .scenario_reader_writer import *
55

6-
__version__ = "1.7.1"
6+
__version__ = "1.7.2"
77
__author__ = "Toru Seo"
88
__copyright__ = "Copyright (c) 2023 Toru Seo"
99
__license__ = "MIT License"

uxsim/uxsim.py

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

25272530
plt.figure(figsize=figsize)

0 commit comments

Comments
 (0)