rsax commited on
Commit
3301936
·
verified ·
1 Parent(s): 55e1296

Update visualization/plot_3d_global.py

Browse files
Files changed (1) hide show
  1. visualization/plot_3d_global.py +5 -2
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
- print(f"Saved frame {index} to {frame_path}")
 
 
 
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