Skip to content

Commit a729e5b

Browse files
author
Sean Sullivan
committed
fix lint
1 parent 98d9ca9 commit a729e5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elastic_datashader/tilegen.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1019,8 +1019,8 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
10191019
raise ValueError("invalid resolution value")
10201020

10211021
# don't allow geotile precision to be any worse than current zoom
1022-
MAXIMUM_PERCISION
1023-
geotile_precision = min(max(current_zoom, current_zoom + agg_zooms),MAXIMUM_PERCISION)
1022+
MAXIMUM_PERCISION = 29
1023+
geotile_precision = min(max(current_zoom, current_zoom + agg_zooms), MAXIMUM_PERCISION)
10241024

10251025
tile_s = copy.copy(base_s)
10261026
tile_s = tile_s.params(size=0, track_total_hits=False)
@@ -1154,7 +1154,7 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
11541154
elif resolution == "finest":
11551155
zoom = 7
11561156
spread = 1
1157-
geotile_precision = min(current_zoom+zoom,geotile_precision)
1157+
geotile_precision = min(current_zoom+zoom, MAXIMUM_PERCISION)
11581158
searches = []
11591159

11601160
if params.get("generated_params", {}).get('complete', False):

0 commit comments

Comments
 (0)