MCPcopy Index your code
hub / github.com/pathwaycom/pathway / compute_expected

Function compute_expected

python/pathway/tests/test_persistence_iterate.py:904–910  ·  view source on GitHub ↗
(evts)

Source from the content-addressed store, hash-verified

902 """
903
904 def compute_expected(evts):
905 assignments = _compute_chunk_assignments(evts)
906 chunk_counts: dict = {}
907 for event_time, cs in assignments.items():
908 if cs is not None and cs > 10:
909 chunk_counts[cs] = chunk_counts.get(cs, 0) + 1
910 return {(cs, cnt) for cs, cnt in chunk_counts.items()}
911
912 def pipeline(t):
913 iterated = _build_chunk_propagation_pipeline(t)

Calls 6

sumFunction · 0.85
itemsMethod · 0.80
valuesMethod · 0.80
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected