Skip to content
Snippets Groups Projects
Commit 3dbc0f08 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Tweak comparison formatting

parent 34555d71
No related branches found
No related tags found
1 merge request!933[Tests] clearer comparison of HDF5 files
......@@ -266,14 +266,15 @@ class ComparisonResult:
def show(self):
if not self.found_differences():
print(f"{self.filename} - ✓ no changes")
return
print(self.filename)
for ds in self.new_dsets:
print(f" + NEW {ds}")
print(f" + NEW: {ds}")
for ds in self.missing_dsets:
print(f" - DEL {ds}")
print(f" - MISSING: {ds}")
for ds in self.changed_dsets:
print(f" ~ DIF {ds}")
print(f" ~ CHANGED: {ds}")
def gather_dsets(f: h5py.File):
res = set()
......
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