def METHOD_NAME(self, data_file):
    si, ei = data_file.start, data_file.end
    nhalos = data_file.header["num_halos"]
    if None not in (si, ei):
        nhalos = np.clip(nhalos - si, 0, ei - si)
    return {"halos": nhalos}