def write_stats(self, new_stats):
        with open(self.stats_path, 'w') as stats_file:
            json.dump(new_stats, stats_file)

        return True
Writes the index-wide stats.
dataset/ETHPy150Open toastdriven/microsearch/microsearch.py/Microsearch.write_stats