Created
October 12, 2018 14:24
-
-
Save sileht/51ed5e043218ab61928caa398358953d to your computer and use it in GitHub Desktop.
example clip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trinary_operations = { | |
u"clip": numpy.clip, | |
} | |
def handle_binary_operator(nodes, granularity, timestamps, | |
initial_values, is_aggregated, references): | |
op = nodes[0] | |
g1, t1, v1, is_a1 = evaluate(nodes[1], granularity, timestamps, | |
initial_values, is_aggregated, references) | |
g2, t2, v2, is_a2 = evaluate(nodes[2], granularity, timestamps, | |
initial_values, is_aggregated, references) | |
if op in trinary_operations: | |
g3, t3, v3, is_a3 = evaluate(nodes[3], granularity, timestamps, | |
initial_values, is_aggregated, references) | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for the clip operation, for say (array, min, max) type, what will be the values for g2/g3, t2/t3, v2/v3, is_a2/is_a3