def save_pickle(self, flo, protocol=0, compact=False): """Save data set as pickle, removing empty space if desired.""" if compact: # remove padding of zeros for each field for field in self.getFieldNames(): temp = self[field][0:self.endmarker[field] + 1, :] self.setField(field, temp) Serializable.save_pickle(self, flo, protocol)
def save_pickle(self, flo, protocol=0, compact=False): """Save data set as pickle, removing empty space if desired.""" if compact: # remove padding of zeros for each field for field in self.getFieldNames(): temp = self[field][0:self.endmarker[field] + 1, :] self.setField(field, temp) Serializable.save_pickle(self, flo, protocol)