From 6d05f5b27e05fb871b7319317a31592416e2970c Mon Sep 17 00:00:00 2001 From: filipstrand Date: Fri, 6 Sep 2024 19:51:28 +0200 Subject: [PATCH] Fix saving bug --- src/flux_1/post_processing/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flux_1/post_processing/image.py b/src/flux_1/post_processing/image.py index adf1e2e..674fbfc 100644 --- a/src/flux_1/post_processing/image.py +++ b/src/flux_1/post_processing/image.py @@ -55,7 +55,7 @@ class Image: # Optionally save json metadata file if export_json_metadata: - with open(f"{file_path.with_suffix(".json")}", 'w') as json_file: + with open(f"{file_path.with_suffix('.json')}", 'w') as json_file: json.dump(self._get_metadata(), json_file, indent=4) # Embed metadata