Skip to content

Commit

Permalink
phdf diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Sep 28, 2024
1 parent 69b767e commit 5925d1d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,17 @@ def compare_metadata(f0, f1, quiet=False, one=False, check_input=False, tol=1.0e
if one:
return ret_code

# Compare the names of attributes in /Info, except "Time"
# Compare the names of attributes in /Info, except those we know
# may vary safely
f0_Info = {
key: value
for key, value in f0.Info.items()
if key != "Time"
and key != "BlocksPerPE"
and key != "WallTime"
and key != "OutputFormatVersion"
and key != "BoundaryConditions"
and key != "SwarmBoundaryConditions"
}
f1_Info = {
key: value
Expand All @@ -227,6 +230,8 @@ def compare_metadata(f0, f1, quiet=False, one=False, check_input=False, tol=1.0e
and key != "BlocksPerPE"
and key != "WallTime"
and key != "OutputFormatVersion"
and key != "BoundaryConditions"
and key != "SwarmBoundaryConditions"
}
if sorted(f0_Info.keys()) != sorted(f1_Info.keys()):
print("Names of attributes in '/Info' of differ")
Expand Down

0 comments on commit 5925d1d

Please sign in to comment.