1. Matthew Turk
  2. yt

Commits

Stephen Skory  committed ee235fb

These Halo attachments need to go here, otherwise they're identical for all halos.

  • Participants
  • Parent commits 271a131
  • Branches yt

Comments (0)

Files changed (1)

File yt/analysis_modules/halo_finding/halo_objects.py

View file
  • Ignore whitespace
     dont_wrap = ["get_sphere", "write_particle_list"]
     extra_wrap = ["__getitem__"]
 
-    # Used for Loaded and RockstarHalos
-    _saved_fields = {}
-    _ds_sort = None
-    _particle_mask = None
-
     def __init__(self, halo_list, id, indices=None, size=None, CoM=None,
         max_dens_point=None, group_total_mass=None, max_radius=None,
         bulk_vel=None, tasks=None, rms_vel=None, supp=None):
             self.supp = {}
         else:
             self.supp = supp
+        self._saved_fields = {}
+        self._ds_sort = None
+        self._particle_mask = None
 
     @property
     def particle_mask(self):