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.
2 parents ed0adde + a64b2a1 commit 42c1bc3Copy full SHA for 42c1bc3
yt/frontends/gamer/data_structures.py
@@ -108,7 +108,8 @@ def _parse_index(self):
108
# (see _read_particle_coords and _read_particle_fields in io.py)
109
self._particle_indices = np.zeros(self.num_grids + 1, dtype="int64")
110
np.add.accumulate(
111
- self.grid_particle_count.squeeze(), out=self._particle_indices[1:]
+ self.grid_particle_count.reshape(self.num_grids),
112
+ out=self._particle_indices[1:],
113
)
114
115
def _populate_grid_objects(self):
0 commit comments