pytc.xtc._read_X_slice

pytc.xtc._read_X_slice(X, slice_r, slice_s)[source]

Read X[slice_r, slice_s], reusing a host-side cache when possible.

If X is an HDF5 dataset and the requested slice matches a recently read slice, the cached numpy array is returned directly — no I/O.