Skip to content

Commit

Permalink
Merge pull request #4802 from mtryan83/switch_to_ds_first
Browse files Browse the repository at this point in the history
Fix bug where race condition results in incorrect fields categorization when computing particle_trajectories
  • Loading branch information
matthewturk authored Feb 8, 2024
2 parents de5ff23 + 5af6943 commit c1bd57a
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 c1bd57a

Please sign in to comment.