Skip to content

Commit 6447dd4

Browse files
committed
DEBUG: printing position in file
1 parent edc602c commit 6447dd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

yt/frontends/rockstar/data_structures.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ def _read_member(
5959

6060
with open(self.filename, "rb") as f:
6161
f.seek(ipos, os.SEEK_SET)
62+
print(
63+
f"Reading {self._Npart[ind_halo]} particles for halo {ihalo}. position={f.tell()}"
64+
)
65+
# assert False
6266
ids = np.fromfile(f, dtype=np.int64, count=self._Npart[ind_halo])
6367
return ids
6468

0 commit comments

Comments
 (0)