Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Sullivan committed Oct 2, 2023
1 parent 98d9ca9 commit a729e5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elastic_datashader/tilegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,8 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
raise ValueError("invalid resolution value")

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

tile_s = copy.copy(base_s)
tile_s = tile_s.params(size=0, track_total_hits=False)
Expand Down Expand Up @@ -1154,7 +1154,7 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
elif resolution == "finest":
zoom = 7
spread = 1
geotile_precision = min(current_zoom+zoom,geotile_precision)
geotile_precision = min(current_zoom+zoom, MAXIMUM_PERCISION)
searches = []

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

0 comments on commit a729e5b

Please sign in to comment.