(self)
return new
Return a copy of self, except meta data.
Return a copy of self, except meta data.
Return a copy of self except meta data .
def copy(self):
    ''' Return a copy of self, except meta data. '''
    new = ChunkSampler(None, self.chunk_size)
    new.pad_chunks = self.pad_chunks
    new.add_random_offset = self.add_random_offset
    new.drop_short_chunks = self.drop_short_chunks
    new.single_chunk = self.single_chunk
    new.select_by_spk = self.select_by_spk
    return new
def copy ( self ) : new = ChunkSampler ( None , self . chunk_size ) new . pad_chunks = self . pad_chunks new . add_random_offset = self . add_random_offset new . drop_short_chunks = self . drop_short_chunks new . single_chunk = self . single_chunk new . select_by_spk = self . select_by_spk return new