fwks/dataset/dataset.py
def from_cache(self, k):
        """
        if possible: load from this if possible

        load
        # should be freed afterwards if not used
        """
        if not hasattr(self, "_clean_cache"):
            self._clean_cache = [None for i in range(len(self.rec_fnames))]
        if self._clean_cache[k]:
            sr, data = self._loader_adapter.loader_function(self.rec_fnames[k])
            assert sr == self.sr
            data = data.astype(np.float32) / 2**15
            self._clean_cache[k] = data
        return self._clean_cache[k]

        if possible: load from this if possible

        load
        # should be freed afterwards if not used
        
if possible: load from this if possible
load
should be freed afterwards if not used
if possible : load from this if possible load should be freed afterwards if not used
def from_cache(self, k):
        if not hasattr(self, "_clean_cache"):
            self._clean_cache = [None for i in range(len(self.rec_fnames))]
        if self._clean_cache[k]:
            sr, data = self._loader_adapter.loader_function(self.rec_fnames[k])
            assert sr == self.sr
            data = data.astype(np.float32) / 2**15
            self._clean_cache[k] = data
        return self._clean_cache[k]
def from_cache ( self , k ) : if not hasattr ( self , "_clean_cache" ) : self . _clean_cache = [ None for i in range ( len ( self . rec_fnames ) ) ] if self . _clean_cache [ k ] : sr , data = self . _loader_adapter . loader_function ( self . rec_fnames [ k ] ) assert sr == self . sr data = data . astype ( np . float32 ) / 2 ** 15 self . _clean_cache [ k ] = data return self . _clean_cache [ k ]
if possible: load from this if possible
load
 should be freed afterwards if not used
if possible : load from this if possible load should be freed afterwards if not used
"""
        if possible: load from this if possible

        load
        # should be freed afterwards if not used
        """
self
k