Reputation: 159
I am trying to compare the contents of two binary files. I use python 3.6 filecomp comparing same name files inside two directories.
results_dummy=filecmp.cmpfiles(dir1, dir2, common, shallow=True)
The above line works for *.bin file I have in both directories, but it does not work with h5 files.
When comparing two hdf5 files that contain exactly the same groups/datasets and numerical data, filecmp.cmpfiles finds them as mismatch.
Is there anyway to compare the contents of two hdf5 files from within Python script and without using h5diff?
Thanks in Advance,
Upvotes: 3
Views: 2460
Reputation: 159
I finally set with using h5diff. The user of the script would need to install hdf5/Tools to run the script though,
Thanks for your answers,
Upvotes: 1