From 970d2c4070559162bd46aeae2fdb79532d9a6be2 Mon Sep 17 00:00:00 2001 From: Wyatt Sieminski Date: Wed, 12 Aug 2026 19:31:27 +0000 Subject: [PATCH 1/2] Added .load() call on UxGrid.uxgrid.face_node_connectivity --- src/parcels/_core/uxgrid.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parcels/_core/uxgrid.py b/src/parcels/_core/uxgrid.py index 1b1e778ab0..f6ca09cd31 100644 --- a/src/parcels/_core/uxgrid.py +++ b/src/parcels/_core/uxgrid.py @@ -45,6 +45,7 @@ def __init__( self.z = z self._mesh = get_mesh(mesh) self._spatialhash = None + self.uxgrid.face_node_connectivity.load() @property def depth(self): From f15ac1d76ebf7667cccc897da17013303725ab45 Mon Sep 17 00:00:00 2001 From: Wyatt Sieminski Date: Thu, 13 Aug 2026 14:02:37 +0000 Subject: [PATCH 2/2] add dask collection check on face_node_connectivity --- src/parcels/_core/uxgrid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parcels/_core/uxgrid.py b/src/parcels/_core/uxgrid.py index f6ca09cd31..46cb2da037 100644 --- a/src/parcels/_core/uxgrid.py +++ b/src/parcels/_core/uxgrid.py @@ -4,6 +4,7 @@ import numpy as np import uxarray as ux +from dask import is_dask_collection from parcels._core.basegrid import BaseGrid from parcels._core.index_search import GRID_SEARCH_ERROR, _search_1d_array, uxgrid_point_in_cell @@ -45,7 +46,8 @@ def __init__( self.z = z self._mesh = get_mesh(mesh) self._spatialhash = None - self.uxgrid.face_node_connectivity.load() + if is_dask_collection(self.uxgrid.face_node_connectivity.data): + self.uxgrid.face_node_connectivity.load() @property def depth(self):