We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3036761 commit 635338cCopy full SHA for 635338c
yt/frontends/rockstar/tests/test_outputs.py
@@ -1,4 +1,5 @@
1
import os.path
2
+from subprocess import PIPE, Popen
3
4
from numpy.testing import assert_equal
5
@@ -44,6 +45,15 @@ def test_particle_selection():
44
45
def test_halo_loading():
46
ds = data_dir_load(r1)
47
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
+
57
for halo_id, Npart in zip(
58
ds.r["halos", "particle_identifier"],
59
ds.r["halos", "num_p"],
0 commit comments