Skip to content

Commit 599aa48

Browse files
committed
changed control flow logic
1 parent 1e15591 commit 599aa48

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

hvplot/converter.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,12 +2170,13 @@ def _process_tiles_without_geo(self, data, x, y):
21702170
elif not is_geodataframe(data) and (x is None or y is None):
21712171
return data, x, y
21722172

2173-
if is_geodataframe(data):
2173+
if is_lazy_data(data):
2174+
# To prevent eager evaluation: https://github.com/holoviz/hvplot/pull/1432
2175+
pass
2176+
elif is_geodataframe(data):
21742177
if getattr(data, 'crs', None) is not None:
21752178
data = data.to_crs(epsg=3857)
2176-
return data, x, y
2177-
elif not is_lazy_data(data):
2178-
# To prevent eager evaluation: https://github.com/holoviz/hvplot/pull/1432
2179+
else:
21792180
min_x = np.min(data[x])
21802181
max_x = np.max(data[x])
21812182
min_y = np.min(data[y])
@@ -2193,7 +2194,8 @@ def _process_tiles_without_geo(self, data, x, y):
21932194
data[new_y] = northing
21942195
if is_xarray(data):
21952196
data = data.swap_dims({x: new_x, y: new_y})
2196-
return data, new_x, new_y
2197+
x = new_x
2198+
y = new_y
21972199
return data, x, y
21982200

21992201
def chart(self, element, x, y, data=None):

0 commit comments

Comments
 (0)