Skip to content

Commit 712a0e0

Browse files
author
Sean Sullivan
committed
Fix Pyflakes
1 parent 8bfbf46 commit 712a0e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elastic_datashader/elastic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def get_field_type(elastic_hosts: str, headers: Optional[str], params: Dict[str,
168168
headers=get_es_headers(headers, user, x_opaque_id),
169169
)
170170
if idx.find("*:") != -1:
171-
idx = idx[idx.find("*:")+2:] #when you query for mappings if it is cross cluster you don't get a mapping
171+
idx = idx[idx.find("*:")+2:] # when you query for mappings if it is cross cluster you don't get a mapping
172172
mappings = es.indices.get_field_mapping(fields=field, index=idx)
173173
# {'foot_prints': {'mappings': {'foot_print': {'full_name': 'foot_print', 'mapping': {'foot_print': {'type': 'geo_shape'}}}}}}
174174
index = list(mappings.keys())[0] # if index is my_index* it comes back as my_index

elastic_datashader/tilegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
11171117
partial_data = False # TODO can we get partial data?
11181118
span = None
11191119
if field_type == "geo_point":
1120-
geo_tile_grid = A("geotile_grid", field=geopoint_field, precision=geotile_precision,size=max_bins)
1120+
geo_tile_grid = A("geotile_grid", field=geopoint_field, precision=geotile_precision, size=max_bins)
11211121
estimated_points_per_tile = get_estimated_points_per_tile(span_range, global_bounds, z, global_doc_cnt)
11221122
if params['bucket_min']>0 or params['bucket_max']<1:
11231123
if estimated_points_per_tile is None:

0 commit comments

Comments
 (0)