Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main_feasible.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
1 change: 1 addition & 0 deletions main_omp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
1 change: 1 addition & 0 deletions main_sample_start_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion wzk/numpy2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down