Skip to content

Commit f53003a

Browse files
Fix reference to _source_grid._mesh attribute
1 parent ca426cd commit f53003a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parcels/spatialhash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(
3030
self._source_grid = grid
3131
self.reconstruct = reconstruct
3232

33-
if self._source_grid.mesh == "spherical":
33+
if self._source_grid._mesh == "spherical":
3434
# Boundaries of the hash grid are the unit cube
3535
self._xmin = -1.0
3636
self._ymin = -1.0
@@ -172,7 +172,7 @@ def query(
172172

173173
y = np.asarray(y)
174174
x = np.asarray(x)
175-
if self._source_grid.mesh == "spherical":
175+
if self._source_grid._mesh == "spherical":
176176
# Convert coords to Cartesian coordinates (x, y, z)
177177
lat = np.deg2rad(y)
178178
lon = np.deg2rad(x)

0 commit comments

Comments
 (0)