Skip to content

Commit

Permalink
add suid to filename formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperrealist committed Feb 16, 2024
1 parent 69d4306 commit 15bb697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/srx_caproto_iocs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def stage(self, instance, value):
file_name = self.file_name.value
uid = "" if "{uid" not in file_name else str(uuid.uuid4())
full_file_path = write_dir / file_name.format(
num=self.frame_num.value, uid=uid
num=self.frame_num.value, uid=uid, suid=uid[:8]
)
full_file_path = str(full_file_path)
full_file_path.replace(" ", "_")
Expand Down

0 comments on commit 15bb697

Please sign in to comment.