def reinitialize(self, idx, logical_size):
    if (idx >= logical_size):
        self.skip_flag = True
    else:
        self.skip_flag = False
        self.datax = self.datax[idx]
        self.datay = self.datay[idx]
def reinitialize(self, idx, logical_size):
    if (idx >= logical_size):
        self.skip_flag = True
    else:
        self.skip_flag = False
        self.datax = self.datax[idx]
        self.datay = self.datay[idx]