Skip to content

Commit

Permalink
Make persisting useful (#96)
Browse files Browse the repository at this point in the history
persist does not work in-place.
  • Loading branch information
dcherian authored Nov 4, 2024
1 parent 4f6139a commit b8d19cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xpublish_wms/wms/get_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ def render(

start_dask = time.time()

da.persist()
da = da.persist()
if x is not None and y is not None:
x.persist()
y.persist()
x = x.persist()
y = y.persist()
else:
da.x.persist()
da.y.persist()
da["x"] = da.x.persist()
da["y"] = da.y.persist()

logger.debug(f"dask compute: {time.time() - start_dask}")

Expand Down

0 comments on commit b8d19cc

Please sign in to comment.