From ad7b896e5caacb6737c9c9bce0c1a00be58f42d2 Mon Sep 17 00:00:00 2001 From: Toru Seo <34780089+toruseo@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:33:37 +0900 Subject: [PATCH 1/2] fix `World.show_network()` file path error --- uxsim/uxsim.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uxsim/uxsim.py b/uxsim/uxsim.py index bed6878..80b1894 100644 --- a/uxsim/uxsim.py +++ b/uxsim/uxsim.py @@ -2524,6 +2524,9 @@ def show_network(W, width=1, left_handed=1, figsize=(6,6), network_font_size=10, node_size : int, optional The size of the nodes in the visualization. Default is 6. """ + + os.makedirs(f"out{W.name}", exist_ok=True) + plt.rcParams["font.family"] = get_font_for_matplotlib() plt.figure(figsize=figsize) From ade3bab7698c44efbc966643323ff6dbfc5b6f31 Mon Sep 17 00:00:00 2001 From: Toru Seo <34780089+toruseo@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:37:39 +0900 Subject: [PATCH 2/2] Update __init__.py --- uxsim/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uxsim/__init__.py b/uxsim/__init__.py index a6a9d04..e7e382f 100644 --- a/uxsim/__init__.py +++ b/uxsim/__init__.py @@ -3,7 +3,7 @@ from .analyzer import * from .scenario_reader_writer import * -__version__ = "1.7.1" +__version__ = "1.7.2" __author__ = "Toru Seo" __copyright__ = "Copyright (c) 2023 Toru Seo" __license__ = "MIT License" \ No newline at end of file