Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change name of images recorded by the Camera Block #104

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/crappy/blocks/camera_processes/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ def loop(self) -> None:

# Only include the extension for the image file if applicable
if self._img_extension:
path = str(self._save_folder / f"{self.metadata['ImageUniqueID']}_"
path = str(self._save_folder / f"{self.metadata['ImageUniqueID']:06d}_"
f"{self.metadata['t(s)']:.3f}."
f"{self._img_extension}")
else:
path = str(self._save_folder / f"{self.metadata['ImageUniqueID']}_"
path = str(self._save_folder / f"{self.metadata['ImageUniqueID']:06d}_"
f"{self.metadata['t(s)']:.3f}")

# Saving the image at the destination path using the chosen backend
Expand Down
Loading