Skip to content

Commit

Permalink
Promote explicitly to i8
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Sep 19, 2024
1 parent 88425d5 commit 3062806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/frontends/rockstar/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def __getitem__(self, key):
@cached_property
def ihalo(self):
halo_id = self.particle_identifier
halo_ids = list(self.halo_ds.r["halos", "particle_identifier"].astype(int))
halo_ids = list(self.halo_ds.r["halos", "particle_identifier"].astype("i8"))
ihalo = halo_ids.index(halo_id)

assert halo_ids[ihalo] == halo_id
Expand Down

0 comments on commit 3062806

Please sign in to comment.