def nchunks_initialized(self):
        """The number of chunks that have been initialized with some data."""

        # key pattern for chunk keys
        prog = re.compile(r'\.'.join([r'\d+'] * min(1, self.ndim)))

        # count chunk keys
        return sum(1 for k in listdir(self.chunk_store, self._path) if prog.match(k))
def nchunks_initialized ( self ) : prog = re . compile ( r'\.' . join ( [ r'\d+' ] * min ( 1 , self . ndim ) ) ) return sum ( 1 for k in listdir ( self . chunk_store , self . _path ) if prog . match ( k ) )
The number of chunks that have been initialized with some data.