pytc.solver.xtc_ccsd._get_slice

pytc.solver.xtc_ccsd._get_slice(dset, sl, axis=0)[source]

Helper to slice HDF5 dataset or numpy array safely.