rio-tiler 6.2.7__py3-none-any.whl → 6.2.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
rio_tiler/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """rio-tiler."""
2
2
 
3
- __version__ = "6.2.7"
3
+ __version__ = "6.2.8"
4
4
 
5
5
  from . import ( # noqa
6
6
  colormap,
rio_tiler/colormap.py CHANGED
@@ -103,11 +103,11 @@ def apply_cmap(data: numpy.ndarray, colormap: ColorMapType) -> DataMaskType:
103
103
  if isinstance(colormap, Sequence):
104
104
  return apply_intervals_cmap(data, colormap)
105
105
 
106
- # if colormap has more than 256 values OR its `max` key >= 256 we can't use
106
+ # if colormap has less or more than 256 values OR its `max` key >= 256 we can't use
107
107
  # rio_tiler.colormap.make_lut, because we don't want to create a `lookup table`
108
108
  # with more than 256 entries (256 x 4) array. In this case we use `apply_discrete_cmap`
109
109
  # which can work with arbitrary colormap dict.
110
- if len(colormap) > 256 or max(colormap) >= 256 or min(colormap) < 0:
110
+ if len(colormap) != 256 or max(colormap) >= 256 or min(colormap) < 0:
111
111
  return apply_discrete_cmap(data, colormap)
112
112
 
113
113
  lookup_table = make_lut(colormap)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rio-tiler
3
- Version: 6.2.7
3
+ Version: 6.2.8
4
4
  Summary: User friendly Rasterio plugin to read raster datasets.
5
5
  Project-URL: Homepage, https://cogeotiff.github.io/rio-tiler/
6
6
  Project-URL: Documentation, https://cogeotiff.github.io/rio-tiler/
@@ -1,5 +1,5 @@
1
- rio_tiler/__init__.py,sha256=BoiemHpXb4ZfgusO_Ku55UrOzOtEQqSsEZhZCUNYhAY,192
2
- rio_tiler/colormap.py,sha256=J1VH8R5YuZRerHqHp6Nd-n-ovPHslMizizdgM9wsTO4,9746
1
+ rio_tiler/__init__.py,sha256=a90ZWgtx8edevsNGt8ph3jtepX8cjRxAyIvZtS3YXy8,192
2
+ rio_tiler/colormap.py,sha256=hspVEbnvbRPGPEykWxV_PoqQpltbfSR7_g35mzd1d6s,9755
3
3
  rio_tiler/constants.py,sha256=55i-7JZDupTXZdLgxL03KsgM4lAzuGuIVP1zZKktzp0,426
4
4
  rio_tiler/errors.py,sha256=ag-wNr13JaQ4YcQzWWPFzjegeGdzJIMMrOrbb3coQ40,1733
5
5
  rio_tiler/expression.py,sha256=EVHWgjMqIn4TTPfqT_HV1RWCQlxqOj3OtEr1iUDiFHE,2282
@@ -233,8 +233,8 @@ rio_tiler/mosaic/reader.py,sha256=_YBwTJwHvXOzKwpNpOmmh0F4yicyxgWo9vHyof3w_Do,96
233
233
  rio_tiler/mosaic/methods/__init__.py,sha256=Q_jS2CwdFPP3ylJ78sUv41bc12hxrdlLC-Q4HSifP1U,571
234
234
  rio_tiler/mosaic/methods/base.py,sha256=9YZJWVRwH5Fk9KO9q5CW52Q8Mf60tAJ21oM4ixEDXBo,1424
235
235
  rio_tiler/mosaic/methods/defaults.py,sha256=foCdit5qE77IYefLWer0f-vI45tHBZRI5PqIZEYim-g,5744
236
- rio_tiler-6.2.7.dist-info/METADATA,sha256=hRPOJpRbe9Suh0ItjjfSH81-2lM64OCLOGs7b6STLw4,11869
237
- rio_tiler-6.2.7.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
238
- rio_tiler-6.2.7.dist-info/licenses/AUTHORS.txt,sha256=FCVd4Tjg-8syl0ZugCunpXER8X2-XonW2ZfllyTnRvE,158
239
- rio_tiler-6.2.7.dist-info/licenses/LICENSE,sha256=vq8Tt4KoYQT9JxAjQ4yXMmmhFYRTsBRgrOj-ao-bC5o,1517
240
- rio_tiler-6.2.7.dist-info/RECORD,,
236
+ rio_tiler-6.2.8.dist-info/METADATA,sha256=AVMFAm8dTfM1CIfYbs_5WEnaJOCX_AWXti7phIjp3eo,11869
237
+ rio_tiler-6.2.8.dist-info/WHEEL,sha256=Gw8jIuTWkPakxikG-6o91zOxTjpZNZ00Qw8KZLqAprY,87
238
+ rio_tiler-6.2.8.dist-info/licenses/AUTHORS.txt,sha256=FCVd4Tjg-8syl0ZugCunpXER8X2-XonW2ZfllyTnRvE,158
239
+ rio_tiler-6.2.8.dist-info/licenses/LICENSE,sha256=vq8Tt4KoYQT9JxAjQ4yXMmmhFYRTsBRgrOj-ao-bC5o,1517
240
+ rio_tiler-6.2.8.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.18.0
2
+ Generator: hatchling 1.19.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any