Commits

Matthew Turk  committed a1af53a

get_data is not guaranteed to return a value. This adjusts particle IO to work
in some cases, specifically those where a ParticleIO handler is defined for a
frontend but not a 3D data object; I believe this is restricted exclusively to
Enzo and the Ellipsoid.

  • Participants
  • Parent commits d0bc82a

Comments (0)

Files changed (1)

File yt/data_objects/particle_io.py

 
     def get_data(self, fields):
         fields = ensure_list(fields)
-        rvs = self.source.get_data(fields, force_particle_read=True)
+        self.source.get_data(fields, force_particle_read=True)
+        rvs = [self.source[field] for field in fields]
         if len(fields) == 1: return rvs[0]
         return rvs