Update visualization/plot_3d_global.py
Browse files
visualization/plot_3d_global.py
CHANGED
|
@@ -117,9 +117,12 @@ def plot_3d_motion(args, figsize=(10, 10), fps=120, radius=4):
|
|
| 117 |
plt.close()
|
| 118 |
|
| 119 |
# Save individual frames for verification
|
| 120 |
-
frame_path = f"animation/frame_{index}.png"
|
| 121 |
plt.imsave(frame_path, arr)
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
return arr
|
| 125 |
|
|
|
|
| 117 |
plt.close()
|
| 118 |
|
| 119 |
# Save individual frames for verification
|
| 120 |
+
frame_path = f"/workspace/animation/frame_{index}.png"
|
| 121 |
plt.imsave(frame_path, arr)
|
| 122 |
+
if not os.path.exists(frame_path):
|
| 123 |
+
print(f"Error: Frame {index} not saved to {frame_path}")
|
| 124 |
+
else:
|
| 125 |
+
print(f"Saved frame {index} to {frame_path}")
|
| 126 |
|
| 127 |
return arr
|
| 128 |
|