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))}"