Skip to content

Commit

Permalink
Backport PR yt-project#4802: Fix bug where race condition results in …
Browse files Browse the repository at this point in the history
…incorrect fields categorization when computing particle_trajectories
  • Loading branch information
matthewturk authored and meeseeksmachine committed Feb 8, 2024
1 parent 3453ed3 commit 9be6120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/data_objects/particle_trajectories.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _get_data(self, fields):
fds[field] = dd_first._determine_fields(field)[0]
if field not in self.particle_fields:
ftype = fds[field][0]
if ftype in self.data_series[0].particle_types:
if ftype in ds_first.particle_types:
self.particle_fields.append(field)
new_particle_fields.append(field)

Expand Down

0 comments on commit 9be6120

Please sign in to comment.