[yoda-svn] yoda: Make cmps mre efficient

YODA Mercurial yoda at projects.hepforge.org
Tue Mar 8 22:45:01 GMT 2016


details:   https://yoda.hepforge.org/hg/yoda/rev/3dbfc1620871
branches:  release-1-5
changeset: 1221:3dbfc1620871
user:      Andy Buckley <andy at insectnation.org>
date:      Tue Mar 08 22:42:41 2016 +0000
description:
Make cmps mre efficient

diffs (14 lines):

--- a/bin/yodadiff	Tue Mar 08 13:22:09 2016 +0000
+++ b/bin/yodadiff	Tue Mar 08 22:42:41 2016 +0000
@@ -100,9 +100,9 @@
         ok = True
         if p1.dim >= 1 and not (eq(p1.x, p2.x) and eq(p1.xErrs, p2.xErrs)):
             ok = False
-        if p1.dim >= 2 and not (eq(p1.y, p2.y) and eq(p1.yErrs, p2.yErrs)):
+        elif p1.dim >= 2 and not (eq(p1.y, p2.y) and eq(p1.yErrs, p2.yErrs)):
             ok = False
-        if p1.dim >= 3 and not (eq(p1.z, p2.z) and eq(p1.zErrs, p2.zErrs)):
+        elif p1.dim >= 3 and not (eq(p1.z, p2.z) and eq(p1.zErrs, p2.zErrs)):
             ok = False
         if not ok:
             msgs.append("  Point #%d: %s vs. %s" % (i, ptstr(p1), ptstr(p2)))


More information about the yoda-svn mailing list