Skip to content

Commit 21e7dcf

Browse files
revert unwanted change (#804)
1 parent e95c493 commit 21e7dcf

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11

22
# Unreleased
33

4-
# 7.7.3 (2025-05-22)
4+
# 7.7.3.post1
5+
6+
* remove unwanted breaking change
7+
8+
# 7.7.3 (2025-05-22) **YANKED**
59

610
* fix Boundless `part` read when using GCPs dataset
711

rio_tiler/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def read(
308308
data,
309309
bounds=out_bounds,
310310
crs=dataset.crs,
311-
band_names=[dataset.descriptions[ix - 1] or f"b{idx}" for idx in indexes],
311+
band_names=[f"b{idx}" for idx in indexes],
312312
dataset_statistics=dataset_statistics,
313313
metadata=dataset.tags(),
314314
)

tests/test_io_rasterio.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,10 @@ def test_metadata_img():
10091009
img = src.preview()
10101010
assert img.dataset_statistics
10111011
assert img.metadata
1012+
assert img.band_names == ["b1"]
1013+
1014+
stats = src.statistics()
1015+
assert "b1" in stats
10121016

10131017

10141018
def test_feature_statistics():

0 commit comments

Comments
 (0)