Skip to content

Commit

Permalink
ensure timelapse storage dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Dec 20, 2024
1 parent 052e5cd commit a18422a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rosys/analysis/timelapse_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def __init__(self, *, width: int = 800, height: int = 600, capture_rate: float =
:param height: height of the images to capture (default: 600)
:param capture_rate: images per second to capture (default: 1.0)
"""
STORAGE_PATH.mkdir(parents=True, exist_ok=True)
VIDEO_PATH.mkdir(parents=True, exist_ok=True)

self.log = logging.getLogger('rosys.timelapse_recorder')
self.width = width
self.height = height
Expand Down

0 comments on commit a18422a

Please sign in to comment.