From b8d19ccb634f1b0b817294c7ea28f3df6bdb6526 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Mon, 4 Nov 2024 13:06:11 -0700 Subject: [PATCH] Make persisting useful (#96) persist does not work in-place. --- xpublish_wms/wms/get_map.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xpublish_wms/wms/get_map.py b/xpublish_wms/wms/get_map.py index d386dbe..8f09f38 100644 --- a/xpublish_wms/wms/get_map.py +++ b/xpublish_wms/wms/get_map.py @@ -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}")