Skip to content

Commit

Permalink
FIX: Fix window name with an underscore after it
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Oct 17, 2024
1 parent a957b6b commit ba304c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.21.5 (2024-mm-dd)

- FIX: Fix window's name coming from a vector with an underscore after it
- FIX: Allow to load numpy pickles stored in S3 buckets

## 0.21.4 (2024-10-08)
Expand Down
2 changes: 1 addition & 1 deletion eoreader/products/optical/optical_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def _get_clean_band_path(
if path.is_path(window):
win_suffix = path.get_filename(window)
elif isinstance(window, gpd.GeoDataFrame):
win_suffix = window.attrs.get("name")
win_suffix = f"{window.attrs.get('name')}_"

if not win_suffix:
win_suffix = f"win{files.hash_file_content(str(window))}_"
Expand Down

0 comments on commit ba304c7

Please sign in to comment.