From 5925d1d10168ef5d8c513052d08e13e81fd5d572 Mon Sep 17 00:00:00 2001 From: Jonah Miller Date: Fri, 27 Sep 2024 18:01:56 -0600 Subject: [PATCH] phdf diff --- .../packages/parthenon_tools/parthenon_tools/phdf_diff.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/python/packages/parthenon_tools/parthenon_tools/phdf_diff.py b/scripts/python/packages/parthenon_tools/parthenon_tools/phdf_diff.py index b7cb8b1d74c4..dd1ff9051d81 100644 --- a/scripts/python/packages/parthenon_tools/parthenon_tools/phdf_diff.py +++ b/scripts/python/packages/parthenon_tools/parthenon_tools/phdf_diff.py @@ -211,7 +211,8 @@ 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() @@ -219,6 +220,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" } f1_Info = { key: value @@ -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")