Skip to content
Open
Changes from 1 commit
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
5 changes: 4 additions & 1 deletion scripts/demos/sensors/cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def save_images_grid(
ncol = int(np.ceil(n_images / nrow))

fig, axes = plt.subplots(nrow, ncol, figsize=(ncol * 2, nrow * 2))
axes = axes.flatten()
if isinstance(axes, np.ndarray):
axes = axes.flatten()
else:
axes = np.array([axes]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: Missing closing parenthesis - this will cause a syntax error

Suggested change
axes = np.array([axes]
axes = np.array([axes])


# plot images
for idx, (img, ax) in enumerate(zip(images, axes)):
Expand Down