Skip to content

Commit 843ffae

Browse files
authored
TGIS: fix semantic label (#2215)
* fix detection of a shortcut or band identifier * do not modify the provided semantic label if it contains `_`
1 parent b441deb commit 843ffae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/grass/temporal/abstract_space_time_dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ def leading_zero(value):
15381538
else:
15391539
return "{0:02d}".format(int(value))
15401540
except ValueError:
1541-
return value
1541+
return None
15421542

15431543
return None
15441544

@@ -1550,8 +1550,8 @@ def leading_zero(value):
15501550

15511551
# be case-insensitive
15521552
if "_" in self.semantic_label:
1553-
# fully-qualified semantic label
1554-
where += "semantic_label IN ('{}'".format(self.semantic_label.upper())
1553+
# fully-qualified semantic label, do not modify
1554+
where += "semantic_label IN ('{}'".format(self.semantic_label)
15551555

15561556
# be zero-padding less sensitive
15571557
shortcut, identifier = self.semantic_label.split("_", -1)

0 commit comments

Comments
 (0)