Skip to content
Snippets Groups Projects
Commit ba3986e5 authored by keyis2's avatar keyis2
Browse files

checker

parent b6624fe4
No related branches found
No related tags found
2 merge requests!16Parallel,!21Arch2023 merged
......@@ -136,7 +136,8 @@ class AnalysisTreeNode:
# when considering error, a - b >= -error is trusted as a>=b
ge_other = np.subtract(trace, trace_other) + atol >= 0
le_other = np.subtract(trace, trace_other) - atol <= 0
if not ((np.all(le_other[0::2]) == False) and (np.all(ge_other[1::2]) == True)):
# exclude the time dim
if not ((np.all(le_other[0::2, 1:]) == False) and (np.all(ge_other[1::2, 1:]) == True)):
return False
else:
raise ValueError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment