From 4829950fb5c6d70bc8988546cbc669e99e8b91c3 Mon Sep 17 00:00:00 2001 From: Lennard Stoellger Date: Thu, 26 Sep 2024 12:07:46 +0200 Subject: [PATCH 1/4] Fix bracing --- wzk/numpy2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wzk/numpy2.py b/wzk/numpy2.py index 2f3356f..c1b23c0 100644 --- a/wzk/numpy2.py +++ b/wzk/numpy2.py @@ -267,7 +267,7 @@ def __fill_index_with(idx, axis, shape, mode='slice'): idx_with_ = [slice(None) for _ in range(len(shape)-len(axis))] elif mode == 'orange': - idx_with_ = np.ogrid[*[range(s) for i, s in enumerate(shape) if i not in axis]] + idx_with_ = np.ogrid(*[range(s) for i, s in enumerate(shape) if i not in axis]) else: raise ValueError(f"Unknown mode {mode}") From c72de290a788859049eccb283ea78eb9d8b9fdb1 Mon Sep 17 00:00:00 2001 From: Lennard Stoellger Date: Thu, 26 Sep 2024 12:21:22 +0200 Subject: [PATCH 2/4] Added plt.show() --- main_feasible.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main_feasible.py b/main_feasible.py index 2a734df..0c7d256 100644 --- a/main_feasible.py +++ b/main_feasible.py @@ -32,3 +32,4 @@ plotting.plot_img_patch_w_outlines(img=par.oc.img, limits=par.world.limits, ax=ax) for qq in q: plotting.plot_x_path(x=qq, r=par.robot.spheres_rad, ax=ax, marker='o', alpha=0.5, color='k') +plotting.plt.show() \ No newline at end of file From e165959d2885921a8fe7fe14e656868c61d738d1 Mon Sep 17 00:00:00 2001 From: Lennard Stoellger Date: Thu, 26 Sep 2024 12:25:58 +0200 Subject: [PATCH 3/4] Added plt.show() --- main_omp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main_omp.py b/main_omp.py index 52df192..8d4f7c3 100644 --- a/main_omp.py +++ b/main_omp.py @@ -67,3 +67,4 @@ plotting.plot_x_path(x=q, r=par.robot.spheres_rad, ax=ax, marker='o', alpha=0.5) plotting.plot_x_path(x=q_opt, r=par.robot.spheres_rad, ax=ax, marker='o', color='k') +plotting.plt.show() \ No newline at end of file From 04fc136e449eb10f3725d5adb134529f836864c5 Mon Sep 17 00:00:00 2001 From: Lennard Stoellger Date: Thu, 26 Sep 2024 12:27:07 +0200 Subject: [PATCH 4/4] Added plt.show() --- main_sample_start_end.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main_sample_start_end.py b/main_sample_start_end.py index d5b75d3..133c042 100644 --- a/main_sample_start_end.py +++ b/main_sample_start_end.py @@ -18,3 +18,4 @@ plotting.plot_circles(x=q[status == +1], r=radius, ax=ax, color='blue', alpha=0.5) plotting.plot_circles(x=q[status == -1], r=radius, ax=ax, color='red', alpha=0.5) +plotting.plt.show() \ No newline at end of file