Flush tables and arrays to disk

def flush(self):
        """Flush tables and arrays to disk"""
        self.log.info('Flushing tables and arrays to disk...')
        for tab in self._tables.values():
            tab.flush()
        self._write_ndarrays_cache_to_disk()