1. Matthew Turk
  2. yt-3.0

Commits

Matthew Turk  committed 8f8cc60

Remove old data IO functions and select all cells in a grid selector.

  • Participants
  • Parent commits 3116db5
  • Branches yt-3.0

Comments (0)

Files changed (2)

File yt/frontends/enzo/io.py

View file
     _data_style = "enzo_packed_3d"
     _base = slice(None)
 
-    def _read_data_set(self, grid, field):
-        handle = h5py.File(grid.filename)
-        tr = handle["/Grid%08i/%s" % (grid.id, field)][:]
-        handle.close()
-        return tr.swapaxes(0, 2)
-
-    def _read_particle_data_by_type(self, grid, field):
-        handle = h5py.File(grid.filename)
-        ftype, fname = field
-        tr = handle["/Grid%08i/%s/%s/%s" % (grid.id, field, ftype, fname)][:]
-        handle.close()
-        return tr
-
     def _read_field_names(self, grid):
         return hdf5_light_reader.ReadListOfDatasets(
                     grid.filename, "/Grid%08i" % grid.id)

File yt/geometry/selection_routines.pyx

View file
         mask = np.ones(gobj.ActiveDimensions, dtype='uint8')
         return mask.astype("bool")
 
+    @cython.boundscheck(False)
+    @cython.wraparound(False)
+    @cython.cdivision(True)
+    cdef int select_cell(self, np.float64_t pos[3], np.float64_t dds[3],
+                         int eterm[3]) nogil:
+        return 1
+
+
 grid_selector = GridSelector