Skip to content

Commit

Permalink
Added code to display data for comparison after changed the type of /…
Browse files Browse the repository at this point in the history
…entry/raw_frames from int32 to uint64. Refs #335.

git-svn-id: https://svn.nexusformat.org/code/trunk@1851 ff5d1e40-2be0-497f-93bd-dc18237bd3c7
  • Loading branch information
Marie Yao authored and Marie committed Nov 7, 2012
1 parent 344059d commit 934d2bb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions applications/nxdiff
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,17 @@ class Diff:

def __cmpData(self, left, right):
left = left.getData(self.path)
right = right.getData(self.path)
right = right.getData(self.path)
# display data after changed /entry/raw_frames from int32 to uint64
if left.type != right.type:
self.details.append("TYPE MISMATCH: %s != %s" \
if (left.type == "int32" and right.type == "uint64") or \
(left.type == "uint64" and right.type == "int32"):
self.details.append("IGNORED TYPE MISMATCH: %s != %s" \
% (left.type, right.type))
self.details.append("LEFT DATA: " + str(left.data))
self.details.append("RIGHT DATA: " + str(right.data))
else:
self.details.append("TYPE MISMATCH: %s != %s" \
% (left.type, right.type))
if left.attrs != right.attrs:
self.details.append("ATTRIBUTES MISMATCH: %s != %s" % \
Expand Down

0 comments on commit 934d2bb

Please sign in to comment.