Skip to content

Commit

Permalink
MTN: lossless_combine_latest -> zip_latest to match streamz
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ-Wright committed Aug 17, 2017
1 parent 51f9f89 commit 6e1c140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shed/event_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ def update(self, x, who=None):
return self.emit(tup)


class lossless_combine_latest(EventStream):
class zip_latest(EventStream):
"""Combine multiple streams together to a stream of tuples
This will emit a new tuple of the elements from the lossless stream paired
Expand All @@ -1000,7 +1000,7 @@ class lossless_combine_latest(EventStream):
>>> gg = to_event_model(b, [('det', {'dtype': 'float'})])
>>> source = Stream()
>>> source2 = Stream()
>>> m = es.lossless_combine_latest(source, source2)
>>> m = es.zip_latest(source, source2)
>>> l = m.sink(print)
>>> L = m.sink_to_list()
>>> for doc1 in g: zz = source.emit(doc1)
Expand Down
4 changes: 2 additions & 2 deletions shed/tests/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def test_lossless_combine_latest(exp_db, start_uid1, start_uid3):
source = Stream()
source2 = Stream()

L = es.lossless_combine_latest(source, source2).sink_to_list()
L = es.zip_latest(source, source2).sink_to_list()
ih1 = exp_db[start_uid1]
ih2 = exp_db[start_uid3]
s = exp_db.restream(ih1)
Expand All @@ -665,7 +665,7 @@ def test_lossless_combine_latest_reverse(exp_db, start_uid1, start_uid3):
source = Stream()
source2 = Stream()

L = es.lossless_combine_latest(source, source2).sink_to_list()
L = es.zip_latest(source, source2).sink_to_list()
ih1 = exp_db[start_uid1]
ih2 = exp_db[start_uid3]
s = exp_db.restream(ih1)
Expand Down

0 comments on commit 6e1c140

Please sign in to comment.