'Convert the input rows to the sliced coordinate system.
Parameters
rows : list
Rows in the original coordinate system
Returns
sliced_rows : list
Rows in the sliced coordinate system'

def sliced_coords(self, rows):

    if self.original:
        return rows
    else:
        rows = np.array(rows)
        row0 = (rows - self.start)
        if (self.step != 1):
            correct_mod = (np.mod(row0, self.step) == 0)
            row0 = row0[correct_mod]
        if (self.step > 0):
            ok = ((row0 >= 0) & (row0 < (self.stop - self.start)))
        else:
            ok = ((row0 <= 0) & (row0 > (self.stop - self.start)))
        return (row0[ok] // self.step)
