From 3a2d3ff79b125e4555fff624f6c5af862a0a5125 Mon Sep 17 00:00:00 2001 From: BRAUN REMI Date: Mon, 4 Nov 2024 09:17:52 +0100 Subject: [PATCH] Remove useless str conversion --- eoreader/products/optical/optical_product.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eoreader/products/optical/optical_product.py b/eoreader/products/optical/optical_product.py index b13fb373..51b19d0d 100644 --- a/eoreader/products/optical/optical_product.py +++ b/eoreader/products/optical/optical_product.py @@ -665,10 +665,9 @@ def _get_clean_band_path( win_suffix = "" if window is not None: if path.is_path(window): - win_suffix = f"{path.get_filename(window)}" + win_suffix = path.get_filename(window) elif isinstance(window, gpd.GeoDataFrame): - win_suffix = f"{window.attrs.get('name')}" - + win_suffix = window.attrs.get("name") if not win_suffix: win_suffix = f"win{files.hash_file_content(str(window))}"