Commit c5ffd6e9 authored by Anton Pershin's avatar Anton Pershin

Добавил поддержку композитного предиката в edge.py

parent 13297d87
......@@ -318,6 +318,14 @@ def make_composite_func(*funcs):
func(d)
return _composite
def make_composite_predicate(*preds):
def _composite(d):
for pred in preds:
if not pred(d):
return False
return True
return _composite
def create_local_data_from_global_data(global_data, keys_mapping):
if keys_mapping is None:
return global_data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment