Skip to content

Commit 2dd20f8

Browse files
authored
Merge pull request #55 from spectriclabs/dev
Dev -> master
2 parents 9f0fa9e + 52b11a5 commit 2dd20f8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

elastic_datashader/elastic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ def scan(search, use_scroll=False, size=10000):
3535
search = search.sort("_doc")
3636
if use_scroll:
3737
for hit in search.scan():
38-
yield hit
38+
yield from hit
3939
else:
4040
_search = search.params(size=size).extra(track_total_hits=False)
4141
while _search is not None:
4242
hit = None
4343
for hit in _search:
44-
yield hit
44+
yield from hit
4545
if hit is not None:
4646
_search = search.extra(search_after=list(hit.meta.sort))
4747
else:
@@ -597,7 +597,7 @@ def run_search(**kwargs):
597597

598598
while response.aggregations.comp.buckets:
599599
for b in response.aggregations.comp.buckets:
600-
yield b
600+
yield from b
601601
if "after_key" in response.aggregations.comp:
602602
after = response.aggregations.comp.after_key
603603
else:

elastic_datashader/tilegen.py

+2
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,8 @@ def generate_nonaggregated_tile(
778778
# now for the points as well
779779
points_agg = None
780780

781+
points_color_key = None
782+
781783
if df_points is not None:
782784
df_points["c"] = df_points["c"].astype("category")
783785
# prevent memory explosion in datashader _colorize

0 commit comments

Comments
 (0)