Skip to content

Commit 635338c

Browse files
committed
DEBUG: print SHA256SUM of the files read
1 parent 3036761 commit 635338c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

yt/frontends/rockstar/tests/test_outputs.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os.path
2+
from subprocess import PIPE, Popen
23

34
from numpy.testing import assert_equal
45

@@ -44,6 +45,15 @@ def test_particle_selection():
4445
def test_halo_loading():
4546
ds = data_dir_load(r1)
4647

48+
# Compute sha256sum of the files
49+
for fname in ds.index.data_files:
50+
sha256sum = (
51+
Popen(["sha256sum", fname.filename], stdout=PIPE)
52+
.communicate()[0]
53+
.split()[0]
54+
)
55+
print(f"{fname.filename} has sha256sum {sha256sum}")
56+
4757
for halo_id, Npart in zip(
4858
ds.r["halos", "particle_identifier"],
4959
ds.r["halos", "num_p"],

0 commit comments

Comments
 (0)