Skip to content

Commit

Permalink
set fastapi limit to >=0.111.0 (#944)
Browse files Browse the repository at this point in the history
* set fastapi limit to >=0.111.0

* fix numpy overflow
  • Loading branch information
vincentsarago authored Jul 3, 2024
1 parent f7e7be3 commit 2056249
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 0.18.5 (2024-07-03)

* Set version requirement for FastAPI to `>=0.111.0`

## 0.18.4 (2024-06-26)

* fix Tiles URL encoding for WMTSCapabilities XML document
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"fastapi-slim",
"fastapi-slim>=0.111.0",
"geojson-pydantic>=1.0,<2.0",
"jinja2>=2.11.2,<4.0.0",
"numpy",
Expand Down
2 changes: 1 addition & 1 deletion src/titiler/core/titiler/core/algorithm/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Contours(BaseAlgorithm):

def __call__(self, img: ImageData) -> ImageData:
"""Add contours."""
data = img.data
data = img.data.astype("float64")

# Apply rescaling for minz,maxz to 1->255 and apply Terrain colormap
arr = linear_rescale(data, (self.minz, self.maxz), (1, 255)).astype(
Expand Down

0 comments on commit 2056249

Please sign in to comment.