Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 7, 2024
1 parent 5ae90d9 commit 99adbf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpublish_wms/wms/get_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ async def render(
if minmax_only:
logger.warning("Falling back to default minmax")
return {"min": float(da.min()), "max": float(da.max())}

try:
da = filter_data_within_bbox(da, self.bbox, self.BBOX_BUFFER)
except Exception as e:
Expand All @@ -301,7 +301,7 @@ async def render(
# da["x"] = da.x.persist()
# da["y"] = da.y.persist()

print(da.x[1].values -da.x[0].values)
print(da.x[1].values - da.x[0].values)
print(da.y[1].values - da.y[0].values)

print(f"dask compute: {time.time() - start_dask}")
Expand Down

0 comments on commit 99adbf1

Please sign in to comment.