def UseArchive(self, min=None, max=None): from klepto.archives import dict_archive as d if type(min) is bool: self._minarch = d(cached=False) if min else None elif min is not None: self._minarch = min if type(max) is bool: self._maxarch = d(cached=False) if max else None elif max is not None: self._maxarch = max return
def UseArchive(self, min=None, max=None): """track sampled points in an archive(s) Input: min: archive instance to store minima; if True, use a new archive max: archive instance to store maxima; if True, use a new archive Output: None """ from klepto.archives import dict_archive as d if type(min) is bool: self._minarch = d(cached=False) if min else None elif min is not None: self._minarch = min if type(max) is bool: self._maxarch = d(cached=False) if max else None elif max is not None: self._maxarch = max return