Skip to content

Commit 05a6494

Browse files
committed
Update recording_manager.py
1 parent 8a88f74 commit 05a6494

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

dlclivegui/gui/recording_manager.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@ def stop_all(self) -> None:
291291
self._session_dir = None
292292
self._run_dir = None
293293

294-
def _write_frame_now(self, cam_id: str, frame: np.ndarray, timestamp: float | None = None, timestamp_metadata: object | None = None) -> None:
294+
def _write_frame_now(
295+
self, cam_id: str, frame: np.ndarray, timestamp: float | None = None, timestamp_metadata: object | None = None
296+
) -> None:
295297
with self._lock:
296298
rec = self._recorders.get(cam_id)
297299

@@ -323,7 +325,9 @@ def _write_frame_now(self, cam_id: str, frame: np.ndarray, timestamp: float | No
323325
except Exception:
324326
log.exception("Failed to stop recorder for %s after write error.", cam_id)
325327

326-
def write_frame(self, cam_id: str, frame: np.ndarray, timestamp: float | None = None, timestamp_metadata: object | None = None) -> None:
328+
def write_frame(
329+
self, cam_id: str, frame: np.ndarray, timestamp: float | None = None, timestamp_metadata: object | None = None
330+
) -> None:
327331
with self._lock:
328332
q = self._frame_queue
329333
active = cam_id in self._recorders

0 commit comments

Comments
 (0)