From ff6f0d0ebfc685b9a026d7870a5dabc8f5768a71 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Thu, 13 Apr 2023 18:34:41 +0200 Subject: [PATCH] revert --- rio_faux/cli.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rio_faux/cli.py b/rio_faux/cli.py index d75a662..d07dcf5 100644 --- a/rio_faux/cli.py +++ b/rio_faux/cli.py @@ -130,9 +130,11 @@ def faux( indexes = src_dst.indexes - for i, b in enumerate(indexes): - tmp_dst.set_band_description(i + 1, src_dst.descriptions[b - 1]) - if forward_band_tags: + if forward_band_tags: + for i, b in enumerate(indexes): + tmp_dst.set_band_description( + i + 1, src_dst.descriptions[b - 1] + ) tmp_dst.update_tags(i + 1, **src_dst.tags(b)) if forward_dataset_tags: