diff --git a/terracotta/server/fields.py b/terracotta/server/fields.py index ee192506..401610af 100644 --- a/terracotta/server/fields.py +++ b/terracotta/server/fields.py @@ -39,7 +39,7 @@ def _deserialize( def validate_stretch_range(data: Any) -> None: """ - Validates that the stretch range is in the format `p<digits>` + Validates that the stretch range is in the format `p` when a string is used. """ if isinstance(data, str): diff --git a/terracotta/server/rgb.py b/terracotta/server/rgb.py index 7c297f13..fe9c7a1c 100644 --- a/terracotta/server/rgb.py +++ b/terracotta/server/rgb.py @@ -37,7 +37,7 @@ class Meta: description=( "Stretch range [min, max] to use for the red band as JSON array. " "Min and max may be numbers to use as absolute range, or strings " - "of the format `p<digits>` with an integer between 0 and 100 " + "of the format `p` with an integer between 0 and 100 " "to use percentiles of the image instead. " "Null values indicate global minimum / maximum." ), @@ -50,7 +50,7 @@ class Meta: description=( "Stretch range [min, max] to use for the gren band as JSON array. " "Min and max may be numbers to use as absolute range, or strings " - "of the format `p<digits>` with an integer between 0 and 100 " + "of the format `p` with an integer between 0 and 100 " "to use percentiles of the image instead. " "Null values indicate global minimum / maximum." ), @@ -63,7 +63,7 @@ class Meta: description=( "Stretch range [min, max] to use for the blue band as JSON array. " "Min and max may be numbers to use as absolute range, or strings " - "of the format `p<digits>` with an integer between 0 and 100 " + "of the format `p` with an integer between 0 and 100 " "to use percentiles of the image instead. " "Null values indicate global minimum / maximum." ), diff --git a/terracotta/server/singleband.py b/terracotta/server/singleband.py index 2dc83b83..642527e7 100644 --- a/terracotta/server/singleband.py +++ b/terracotta/server/singleband.py @@ -42,7 +42,7 @@ class Meta: description=( "Stretch range [min, max] to use as JSON array. " "Min and max may be numbers to use as absolute range, or strings " - "of the format `p<digits>` with an integer between 0 and 100 " + "of the format `p` with an integer between 0 and 100 " "to use percentiles of the image instead. " "Null values indicate global minimum / maximum." ),