Skip to content

Commit

Permalink
DEBUG: printing position in file
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Feb 21, 2024
1 parent ee45272 commit 499bb71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yt/frontends/rockstar/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def _read_member(

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

Expand Down

0 comments on commit 499bb71

Please sign in to comment.