mirror of
https://github.com/Richard-Sti/csiborgtools_public.git
synced 2025-05-20 17:41:13 +00:00
Fix key bug
This commit is contained in:
parent
6eaeff2c7c
commit
637b31cf44
1 changed files with 2 additions and 2 deletions
|
@ -522,9 +522,9 @@ class QuijoteReader(BaseReader):
|
|||
vel = fof.GroupVel * (1 + self.read_info(nsnap, nsim)["redshift"])
|
||||
for i, p in enumerate(["x", "y", "z"]):
|
||||
data[p] = pos[:, i]
|
||||
data["fof_v" + p] = vel[:, i]
|
||||
data[f"v{p}"] = vel[:, i]
|
||||
data["group_mass"] = fof.GroupMass * 1e10
|
||||
data["fof_npart"] = fof.GroupLen
|
||||
data["npart"] = fof.GroupLen
|
||||
# We want to start indexing from 1. Index 0 is reserved for
|
||||
# particles unassigned to any FoF group.
|
||||
data["index"] = 1 + numpy.arange(data.size, dtype=numpy.int32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue