abreza commited on
Commit
b443e2a
·
verified ·
1 Parent(s): ff92963

Update visualization/logger.py

Browse files
Files changed (1) hide show
  1. visualization/logger.py +4 -2
visualization/logger.py CHANGED
@@ -107,8 +107,10 @@ class SimulationLogger:
107
  except Exception as e:
108
  print(f"Error logging camera trajectory: {str(e)}")
109
 
110
- def log_simulation(self, camera_frames: List[Dict[str, Any]], subjects: List[Dict[str, Any]]) -> None:
111
- """Main method to log both camera frames and subjects"""
 
 
112
  if not camera_frames:
113
  return
114
 
 
107
  except Exception as e:
108
  print(f"Error logging camera trajectory: {str(e)}")
109
 
110
+ def log_camera_frames(self, camera_frames: List[Dict[str, Any]], subjects: List[Dict[str, Any]] = None) -> None:
111
+ """Log camera frames and optionally their corresponding subjects"""
112
+ if subjects is None:
113
+ subjects = []
114
  if not camera_frames:
115
  return
116