Apply suggestions from code review of branch img-name

Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
Joe Knapper 2025-07-31 14:52:21 +00:00
parent df918bf286
commit c00c027ab1

View file

@ -141,7 +141,11 @@ class CaptureInfo:
@property @property
def filename(self) -> str: def filename(self) -> str:
"""The filename for this image generated from the position, prepended with "img_".""" """The filename for this image generated from the position.
The file name is in the format ``img_{x}_{y}_{z}`` where x, y, and z are the
positions from the microscope stage.
"""
return ( return (
f"img_{self.position['x']}_{self.position['y']}_{self.position['z']}.jpeg" f"img_{self.position['x']}_{self.position['y']}_{self.position['z']}.jpeg"
) )