Skip to content

Commit be5103a

Browse files
author
Sean Sullivan
committed
Fix pylint errors
1 parent 996d1fa commit be5103a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

elastic_datashader/elastic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ def chunk_iter(iterable, chunk_size):
572572
yield (False, chunks[0:last_written_idx+1])
573573

574574
def bucket_noop(bucket,search):
575+
# pylint: disable=unused-argument
575576
return bucket
576577
class Scan:
577578
def __init__(self, searches, inner_aggs=None,field=None,precision=None, size=10, timeout=None,bucket_callback=bucket_noop):
@@ -591,7 +592,7 @@ def __init__(self, searches, inner_aggs=None,field=None,precision=None, size=10,
591592
self.bucket_callback = bucket_callback
592593
if self.bucket_callback is None:
593594
self.bucket_callback = bucket_noop
594-
595+
595596
def execute(self):
596597
"""
597598
Helper function used to iterate over all possible bucket combinations of

elastic_datashader/tilegen.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
11251125
timeout=config.query_timeout_seconds
11261126
)
11271127

1128-
1128+
11291129
df = pd.DataFrame(
11301130
convert_composite(
11311131
resp.execute(),
@@ -1138,7 +1138,6 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
11381138
)
11391139
estimated_points_per_tile = get_estimated_points_per_tile(span_range, global_bounds, z, global_doc_cnt)
11401140
elif field_type == "geo_shape":
1141-
shape_s = copy.copy(tile_s)
11421141
searches = []
11431142
estimated_points_per_tile = 10000
11441143
zoom = 0
@@ -1196,7 +1195,7 @@ def calc_aggregation(bucket,search):
11961195
)
11971196
)
11981197
if len(df)/resp.num_searches == composite_agg_size:
1199-
logger.warn("clipping on tile %s",[x,y,z])
1198+
logger.warning("clipping on tile %s",[x,y,z])
12001199

12011200
s2 = time.time()
12021201
logger.info("ES took %s (%s) for %s with %s searches", (s2 - s1), resp.total_took, len(df), resp.num_searches)

0 commit comments

Comments
 (0)