From 15bb697a7ddf718d6ab091455573c23f60ef2821 Mon Sep 17 00:00:00 2001 From: Hiran Wijesinghe Date: Fri, 16 Feb 2024 17:33:08 -0500 Subject: [PATCH] add `suid` to filename formatter --- src/srx_caproto_iocs/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/srx_caproto_iocs/base.py b/src/srx_caproto_iocs/base.py index cd9beab..7a463f3 100644 --- a/src/srx_caproto_iocs/base.py +++ b/src/srx_caproto_iocs/base.py @@ -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(" ", "_")